Skip to content

Merge pull request #760 from RRZE-HPC/clang-format-2 #22

Merge pull request #760 from RRZE-HPC/clang-format-2

Merge pull request #760 from RRZE-HPC/clang-format-2 #22

name: LIKWID Build Tests for Nvidia GPU support
on:
push:
branches: [ master ]
paths:
- '**/nvmon*'
- '**/libnvctr*'
- 'src/topology_cuda.c'
- 'src/sysFeatures_nvml.c'
- 'src/includes/likwid*.h'
- 'src/meta.c'
- 'src/devstring.c'
- 'src/perfgroup.c'
- 'src/sysFeatures.c'
- 'src/likwid_device.c'
- 'src/affinity.c'
- 'src/luawid.c'
- 'src/cpustring.c'
- '.github/workflows/buildtests-nvidia.yml'
pull_request:
branches: [ master ]
paths:
- '**/nvmon*'
- '**/libnvctr*'
- 'src/topology_cuda.c'
- 'src/sysFeatures_nvml.c'
- 'src/includes/likwid*.h'
- 'src/meta.c'
- 'src/devstring.c'
- 'src/perfgroup.c'
- 'src/sysFeatures.c'
- 'src/likwid_device.c'
- 'src/affinity.c'
- 'src/luawid.c'
- 'src/cpustring.c'
- '.github/workflows/buildtests-nvidia.yml'
jobs:
build-x86-cuda:
runs-on: ubuntu-${{matrix.version.os-maj}}.${{matrix.version.os-min}}
strategy:
fail-fast: false
matrix:
# You can find the available versions here:
# https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2404/x86_64/
version:
# ubuntu 22.04
- os-maj: "22"
os-min: "04"
cuda: 11-7
- os-maj: "22"
os-min: "04"
cuda: 11-8
- os-maj: "22"
os-min: "04"
cuda: 12-0
- os-maj: "22"
os-min: "04"
cuda: 12-1
- os-maj: "22"
os-min: "04"
cuda: 12-2
- os-maj: "22"
os-min: "04"
cuda: 12-3
- os-maj: "22"
os-min: "04"
cuda: 12-4
- os-maj: "22"
os-min: "04"
cuda: 12-5
- os-maj: "22"
os-min: "04"
cuda: 12-6
- os-maj: "22"
os-min: "04"
cuda: 12-8
- os-maj: "22"
os-min: "04"
cuda: 12-9
- os-maj: "22"
os-min: "04"
cuda: 13-0
- os-maj: "22"
os-min: "04"
cuda: 13-1
- os-maj: "22"
os-min: "04"
cuda: 13-2
# ubuntu 24.04
- os-maj: "24"
os-min: "04"
cuda: 12-5
- os-maj: "24"
os-min: "04"
cuda: 12-6
- os-maj: "24"
os-min: "04"
cuda: 12-8
- os-maj: "24"
os-min: "04"
cuda: 12-9
- os-maj: "24"
os-min: "04"
cuda: 13-0
- os-maj: "24"
os-min: "04"
cuda: 13-1
- os-maj: "24"
os-min: "04"
cuda: 13-2
steps:
- uses: actions/checkout@v7
- name: Install CUDA ${{matrix.version.cuda}}
run: |
sudo apt update
sudo apt install wget
wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu${{matrix.version.os-maj}}${{matrix.version.os-min}}/x86_64/cuda-keyring_1.1-1_all.deb
sudo dpkg -i cuda-keyring_1.1-1_all.deb
sudo apt update
sudo apt install cuda-toolkit-${{matrix.version.cuda}} cuda-cupti-dev-${{matrix.version.cuda}}
- name: make -j$(nproc)
run: CUDA_HOME=/usr/local/cuda make ACCESSMODE=accessdaemon NVIDIA_INTERFACE=true