-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add move_pos and update cuda demo
- Loading branch information
1 parent
0248ead
commit 575b54b
Showing
10 changed files
with
128 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -122,40 +122,41 @@ jobs: | |
files: build/coverage/coverage.info | ||
verbose: true | ||
|
||
|
||
check_nvidia_gpu: | ||
runs-on: ubuntu-latest # use own runner with NVIDIA GPU | ||
outputs: | ||
has_gpu: ${{ steps.check_gpu.outputs.has_gpu }} | ||
steps: | ||
- name: Check for NVIDIA GPU | ||
id: check_gpu | ||
run: | | ||
if lspci | grep -i nvidia; then | ||
echo "NVIDIA GPU found." | ||
echo "::set-output name=has_gpu::true" | ||
else | ||
echo "No NVIDIA GPU found." | ||
echo "::set-output name=has_gpu::false" | ||
fi | ||
build_ubuntu_with_cuda: | ||
runs-on: ubuntu-latest | ||
runs-on: ubuntu-latest # use own runner with NVIDIA GPU | ||
needs: check_nvidia_gpu | ||
if: needs.check_nvidia_gpu.outputs.has_gpu == 'true' | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- uses: Jimver/[email protected] | ||
- name: Set up CUDA | ||
uses: Jimver/[email protected] # https://github.com/marketplace/actions/cuda-toolkit | ||
with: | ||
# Cuda version | ||
cuda: 11.7.0 # optional, default is 12.5.0 | ||
# Only installs specified subpackages, must be in the form of a JSON array. For example, if you only want to install nvcc and visual studio integration: ["nvcc", "visual_studio_integration"] double quotes required! Note that if you want to use this on Linux, 'network' method MUST be used. | ||
sub-packages: '[]' # optional, default is [] | ||
# Only installs specified subpackages that do not have the cuda prefix, must be in the form of a JSON array. For example, if you only want to install libcublas and libcufft: ["libcublas", "libcufft"] double quotes required! Note that this only works with 'network' method on only on Linux. | ||
non-cuda-sub-packages: '[]' # optional, default is [] | ||
# Installation method, can be either 'local' or 'network'. 'local' downloads the entire installer with all packages and runs that (you can still only install certain packages with sub-packages on Windows). 'network' downloads a smaller executable which only downloads necessary packages which you can define in subPackages | ||
method: network # optional, default is local | ||
# (Linux and 'local' method only) override arguments for the linux .run installer. For example if you don't want samples use ["--toolkit"] double quotes required! | ||
linux-local-args: '["--toolkit", "--samples"]' # optional, default is ["--toolkit", "--samples"] | ||
# Use GitHub cache to cache downloaded installer on GitHub servers | ||
use-github-cache: true # optional, default is true | ||
# Use local cache to cache downloaded installer on the local runner | ||
use-local-cache: true # optional, default is true | ||
# Suffix of log file name in artifact | ||
log-file-suffix: log.txt # optional, default is log.txt | ||
|
||
- name: Check for CUDA | ||
id: check_cuda | ||
run: | | ||
if command -v nvcc &> /dev/null; then | ||
echo "CUDA is installed." | ||
echo "has_cuda=true" >> $GITHUB_ENV | ||
else | ||
echo "CUDA is not installed." | ||
echo "has_cuda=false" >> $GITHUB_ENV | ||
fi | ||
cuda: 11.7.0 | ||
sub-packages: '[]' | ||
non-cuda-sub-packages: '[]' | ||
method: network | ||
linux-local-args: '["--toolkit", "--samples"]' | ||
use-github-cache: true | ||
use-local-cache: true | ||
log-file-suffix: log.txt | ||
|
||
- name: Install dependencies | ||
run: | | ||
|
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters