Skip to content

Commit

Permalink
add path of nvc++
Browse files Browse the repository at this point in the history
  • Loading branch information
chaseshyu committed Nov 1, 2023
1 parent 4bcc326 commit 1e93451
Showing 1 changed file with 9 additions and 18 deletions.
27 changes: 9 additions & 18 deletions .github/workflows/nvc-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1e93451

Please sign in to comment.