add path in each run #8
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
name: nvc build | |
on: | |
push: | |
branches: [ "master", "merge_openacc" ] | |
paths-ignore: | |
- '**/README.md' | |
pull_request: | |
branches: [ "master" ] | |
paths-ignore: | |
- '**/README.md' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- 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 | |
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 | |
echo $PATH | |
make clean; make ndims=2 nprof=1 | |
- 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 | |
echo $PATH | |
make clean; make ndims=3 nprof=1 | |