Skip to content

Commit 76bc00f

Browse files
committed
Add CI test
1 parent a70cbc7 commit 76bc00f

File tree

1 file changed

+44
-19
lines changed

1 file changed

+44
-19
lines changed

.github/workflows/test.yml

Lines changed: 44 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -13,81 +13,98 @@ jobs:
1313
device-build-test:
1414
name: device-build-test
1515
runs-on: ${{ matrix.setup.runner }}
16-
container: ${{ matrix.setup.container }}
16+
container:
17+
image: ${{ matrix.setup.container }}
18+
options: ${{ matrix.setup.container-options }}
1719
strategy:
1820
fail-fast: false
1921
matrix:
2022
arch:
21-
- snb # <-- needed for the self-hosted CI node for now :/
23+
- hsw
2224
build_type:
2325
- Release
2426
- Debug
2527
setup:
26-
- arch: sm_60
28+
- arch: sm_86
2729
backend: cuda
2830
cc: gcc-13
2931
cxx: g++-13
3032
fc: gfortran-13
3133
container: seissol/gha-gpu-nv:davschneller-gpu-image
32-
runner: ubuntu-24.04
34+
runner: self-hosted
35+
container-options: --runtime=nvidia --gpus=all
3336
pythonbreak: true
34-
- arch: sm_60
37+
test: true
38+
- arch: sm_86
3539
backend: acpp
3640
cc: gcc-13
3741
cxx: g++-13
3842
fc: gfortran-13
3943
container: seissol/gha-gpu-nv:davschneller-gpu-image
40-
runner: ubuntu-24.04
44+
runner: self-hosted
45+
container-options: --runtime=nvidia --gpus=all
4146
pythonbreak: true
42-
- arch: sm_60
47+
test: true
48+
- arch: sm_86
4349
backend: cuda
4450
cc: clang-18
4551
cxx: clang++-18
4652
fc: gfortran-13 # TODO?
4753
container: seissol/gha-gpu-nv:davschneller-gpu-image
48-
runner: ubuntu-24.04
54+
runner: self-hosted
55+
container-options: --runtime=nvidia --gpus=all
56+
pythonbreak: true
57+
test: true
58+
- arch: sm_86
59+
backend: cuda
60+
cc: nvc
61+
cxx: nvc++
62+
fc: nvfortran
63+
container: seissol/gha-gpu-nvhpc:davschneller-gpu-image
64+
runner: self-hosted
65+
container-options: --runtime=nvidia --gpus=all
4966
pythonbreak: true
50-
# TODO: needs a working GPU runner
51-
#- arch: sm_60
52-
# backend: cuda
53-
# cc: nvc
54-
# cxx: nvc++
55-
# fc: nvfortran
56-
# container: seissol/gha-gpu-nvhpc:davschneller-gpu-image
57-
# runner: sccs-ci-nv-sm60
58-
# pythonbreak: true
67+
test: true
5968
- arch: gfx906
6069
backend: hip
6170
cc: gcc-13
6271
cxx: g++-13
6372
fc: gfortran-13
6473
container: seissol/gha-gpu-amd:davschneller-gpu-image
6574
runner: ubuntu-24.04
75+
container-options: ~
6676
pythonbreak: true
77+
test: false
6778
- arch: gfx906
6879
backend: acpp
6980
cc: gcc-13
7081
cxx: g++-13
7182
fc: gfortran-13
7283
container: seissol/gha-gpu-amd:davschneller-gpu-image
7384
runner: ubuntu-24.04
85+
container-options: ~
7486
pythonbreak: true
87+
test: false
7588
- arch: gfx906
7689
backend: hip
7790
cc: clang-18
7891
cxx: clang++-18
7992
fc: gfortran-13 # TODO?
8093
container: seissol/gha-gpu-amd:davschneller-gpu-image
8194
runner: ubuntu-24.04
95+
container-options: ~
8296
pythonbreak: true
97+
test: false
8398
- arch: skl
8499
backend: oneapi
85100
cc: icx
86101
cxx: icpx
87102
fc: ifx
88103
container: seissol/gha-gpu-intel:davschneller-gpu-image
89-
runner: ubuntu-24.04
104+
runner: self-hosted
105+
container-options: ~
90106
pythonbreak: false
107+
test: true
91108
steps:
92109
- name: install-gtest
93110
run: |
@@ -98,7 +115,7 @@ jobs:
98115
cd ../..
99116
100117
- name: checkout-device
101-
uses: actions/checkout@v4
118+
uses: actions/checkout@v6
102119
with:
103120
submodules: recursive
104121

@@ -121,3 +138,11 @@ jobs:
121138
122139
cmake .. -GNinja -DDEVICE_BACKEND=${{matrix.setup.backend}} -DSM=${{matrix.setup.arch}}
123140
ninja
141+
142+
- id: test
143+
name: test-device
144+
run: |
145+
cd tests
146+
cd build
147+
148+
./tests

0 commit comments

Comments
 (0)