forked from tan2/DynEarthSol-old
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
9 additions
and
18 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 |
---|---|---|
|
@@ -14,24 +14,15 @@ jobs: | |
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
# You may pin to the exact commit or the version. | ||
# uses: Jimver/cuda-toolkit@acce010762576d6d7eafccf022b5e1e808f210b7 | ||
- uses: Jimver/[email protected] | ||
id: cuda-toolkit | ||
with: | ||
# Cuda version | ||
cuda: 10.2.89 # optional, default is 12.2.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: # 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: # optional, default is ["--toolkit", "--samples"] | ||
# Use GitHub cache to cache downloaded installer on GitHub servers | ||
# use-github-cache: # optional, default is true | ||
# - uses: actions/checkout@v3 | ||
- uses: actions/checkout@v3 | ||
- name: get nvidia hpc-sdk | ||
run: | | ||
curl https://developer.download.nvidia.com/hpc-sdk/ubuntu/DEB-GPG-KEY-NVIDIA-HPC-SDK | sudo gpg --dearmor -o /usr/share/keyrings/nvidia-hpcsdk-archive-keyring.gpg | ||
echo 'deb [signed-by=/usr/share/keyrings/nvidia-hpcsdk-archive-keyring.gpg] https://developer.download.nvidia.com/hpc-sdk/ubuntu/amd64 /' | sudo tee /etc/apt/sources.list.d/nvhpc.list | ||
sudo apt-get update -y | ||
sudo apt-get install -y nvhpc-23-9 | ||
PATH=${PATH}:/opt/nvidia/hpc_sdk/Linux_x86_64/23.9/compilers/bin | ||
export PATH | ||
- name: get boost | ||
run: sudo apt install libboost-program-options-dev | ||
- name: make 2d with nvidia profiling tools | ||
|