From 1e93451b687cb2615565df57243e2b76553408ea Mon Sep 17 00:00:00 2001 From: "Chase J. Shyu" Date: Wed, 1 Nov 2023 10:21:05 +0800 Subject: [PATCH] add path of nvc++ --- .github/workflows/nvc-build.yml | 27 +++++++++------------------ 1 file changed, 9 insertions(+), 18 deletions(-) diff --git a/.github/workflows/nvc-build.yml b/.github/workflows/nvc-build.yml index 49c72cc..e252e65 100644 --- a/.github/workflows/nvc-build.yml +++ b/.github/workflows/nvc-build.yml @@ -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/cuda-toolkit@v0.2.11 - 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