Skip to content

Commit

Permalink
add CUDA_DIR to test make command
Browse files Browse the repository at this point in the history
  • Loading branch information
chaseshyu committed Nov 1, 2023
1 parent 57e56f0 commit 1f24139
Showing 1 changed file with 6 additions and 12 deletions.
18 changes: 6 additions & 12 deletions .github/workflows/nvc-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,29 +22,23 @@ jobs:
sudo apt-get update -y
echo Install nvhpc-23-9 ====================
sudo apt-get install -y nvhpc-23-9
echo Export hpc-sdk path ====================
PATH=$PATH:/opt/nvidia/hpc_sdk/Linux_x86_64/23.9/compilers/bin
export PATH
echo $PATH
- name: get boost
run: |
echo Install boost-program-options ====================
sudo apt install libboost-program-options-dev
- name: make 2d with nvidia profiling tools
run: |
echo $PATH
ls -l /opt/nvidia/hpc_sdk/Linux_x86_64/23.9/compilers/bin
echo Export hpc-sdk path ====================
PATH=$PATH:/opt/nvidia/hpc_sdk/Linux_x86_64/23.9/compilers/bin
export PATH
NVHPC_PATH=/opt/nvidia/hpc_sdk/Linux_x86_64/23.9
export $PATH:$NVHPC_PATH/compilers/bin
echo $PATH
make clean; make ndims=2 nprof=1
make clean; make ndims=2 nprof=1 CUDA_DIR=$NVHPC_PATH/cuda
- name: make 3d with nvidia profiling tools
run: |
echo $PATH
echo Export hpc-sdk path ====================
PATH=$PATH:/opt/nvidia/hpc_sdk/Linux_x86_64/23.9/compilers/bin
export PATH
NVHPC_PATH=/opt/nvidia/hpc_sdk/Linux_x86_64/23.9
export $PATH:$NVHPC_PATH/compilers/bin
echo $PATH
make clean; make ndims=3 nprof=1
make clean; make ndims=3 nprof=1 CUDA_DIR=$NVHPC_PATH/cuda

0 comments on commit 1f24139

Please sign in to comment.