Skip to content

Commit

Permalink
NVHPC has been installed on the self-hosted runner, so we can skip that
Browse files Browse the repository at this point in the history
  • Loading branch information
christopherwharrop-noaa committed Aug 12, 2024
1 parent 16207c5 commit fcd0cfb
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions .github/workflows/gpu_nvhpc.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Linux NVHPC
name: Linux NVHPC GPU
# triggered events (push, pull_request) for the master branch
on:
pull_request:
Expand All @@ -22,22 +22,22 @@ jobs:

steps:

# Install Lmod
- name: Install Lmod
run: |
sudo apt-get update -y
sudo apt-get install -y lmod
echo "source /usr/share/lmod/lmod/init/bash" >> ~/.bash_profile
source /usr/share/lmod/lmod/init/bash
module list
# Install NVIDIA HPC SDK
- name: Install 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-24-7
## Install Lmod
#- name: Install Lmod
# run: |
# sudo apt-get update -y
# sudo apt-get install -y lmod
# echo "source /usr/share/lmod/lmod/init/bash" >> ~/.bash_profile
# source /usr/share/lmod/lmod/init/bash
# module list
#
## Install NVIDIA HPC SDK
#- name: Install 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-24-7

# Check location of installed NVHPC compilers
- name: Check compiler install
Expand Down

0 comments on commit fcd0cfb

Please sign in to comment.