Skip to content

Commit

Permalink
ci: add GitHub Action for testing NVidia C/C++ compilers
Browse files Browse the repository at this point in the history
  • Loading branch information
nemequ committed Sep 13, 2024
1 parent b295153 commit da8df52
Showing 1 changed file with 48 additions and 1 deletion.
49 changes: 48 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:

concurrency:
group: build-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: false
cancel-in-progress: true

jobs:
check-generated-files:
Expand All @@ -22,3 +22,50 @@ jobs:
run: make generate
- name: Check for changes
run: git diff --exit-code

- name: Disk Usage
run: du -ch / | tail -n100

nvhpc:
runs-on: ubuntu-latest
strategy:
matrix:
version:
# For available versions, see https://developer.download.nvidia.com/hpc-sdk/ubuntu/amd64/Packages
# - "20.11"
# - "21.1" ## BROKEN. File size mismatch.
# - "21.2"
# - "21.3"
- "21.5"
- "21.7"
- "21.9"
# - "21.11"
# - "22.1" ## BROKEN. Not enough storage space on runner.
# - "22.2" ## BROKEN. Not enough storage space on runner.
# - "22.3" ## BROKEN. Not enough storage space on runner.
- "22.5"
- "22.7"
- "22.9"
# - "22.11"
# - "23.1" ## BROKEN. Not enough storage space on runner.
# - "23.3"
# - "23.5"
# - "23.7"
# - "23.9"
# - "23.11"
# - "24.1"
# - "24.3"
# - "24.7"]
steps:
- uses: actions/checkout@v4
- 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-$(echo "${{ matrix.version }}" | tr '.' '-')
- name: Compile
env:
CC: /opt/nvidia/hpc_sdk/Linux_x86_64/"${{ matrix.version }}"/compilers/bin/nvcc
working-directory: test
run: make

0 comments on commit da8df52

Please sign in to comment.