-
Notifications
You must be signed in to change notification settings - Fork 54
68 lines (65 loc) · 1.89 KB
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
on:
push:
branches-ignore:
- 'ci/**'
- '!ci/gha**'
- 'dependabot/**'
pull_request:
branches:
- 'master'
concurrency:
group: build-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: false
jobs:
check-generated-files:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Regenerate files
working-directory: test
run: make generate
- name: Check for changes
run: git diff --exit-code
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
- "21.2"
- "21.3"
- "21.5"
- "21.7"
- "21.9"
- "21.11"
- "22.1"
- "22.2"
- "22.3"
- "22.5"
- "22.7"
- "22.9"
- "22.11"
- "23.1"
- "23.3"
- "23.5"
- "23.7"
- "23.9"
- "23.11"
- "24.1"
- "24.3"
- "24.7"
steps:
- uses: actions/checkout@v2
- 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