Skip to content

Commit c47b0d3

Browse files
committed
Add CI test
1 parent a70cbc7 commit c47b0d3

File tree

1 file changed

+47
-26
lines changed

1 file changed

+47
-26
lines changed

.github/workflows/test.yml

Lines changed: 47 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -13,81 +13,94 @@ 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
31-
container: seissol/gha-gpu-nv:davschneller-gpu-image
32-
runner: ubuntu-24.04
33+
container: seissol/gha-gpu-nv:davschneller-ci-merge
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
39-
container: seissol/gha-gpu-nv:davschneller-gpu-image
40-
runner: ubuntu-24.04
43+
container: seissol/gha-gpu-nv:davschneller-ci-merge
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?
47-
container: seissol/gha-gpu-nv:davschneller-gpu-image
48-
runner: ubuntu-24.04
53+
container: seissol/gha-gpu-nv:davschneller-ci-merge
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-ci-merge
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
64-
container: seissol/gha-gpu-amd:davschneller-gpu-image
73+
container: seissol/gha-gpu-amd:davschneller-ci-merge
6574
runner: ubuntu-24.04
6675
pythonbreak: true
76+
test: false
6777
- arch: gfx906
6878
backend: acpp
6979
cc: gcc-13
7080
cxx: g++-13
7181
fc: gfortran-13
72-
container: seissol/gha-gpu-amd:davschneller-gpu-image
82+
container: seissol/gha-gpu-amd:davschneller-ci-merge
7383
runner: ubuntu-24.04
7484
pythonbreak: true
85+
test: false
7586
- arch: gfx906
7687
backend: hip
7788
cc: clang-18
7889
cxx: clang++-18
7990
fc: gfortran-13 # TODO?
80-
container: seissol/gha-gpu-amd:davschneller-gpu-image
91+
container: seissol/gha-gpu-amd:davschneller-ci-merge
8192
runner: ubuntu-24.04
8293
pythonbreak: true
94+
test: false
8395
- arch: skl
8496
backend: oneapi
8597
cc: icx
8698
cxx: icpx
8799
fc: ifx
88-
container: seissol/gha-gpu-intel:davschneller-gpu-image
89-
runner: ubuntu-24.04
100+
container: seissol/gha-gpu-intel-2025:davschneller-ci-merge
101+
runner: self-hosted
90102
pythonbreak: false
103+
test: true
91104
steps:
92105
- name: install-gtest
93106
run: |
@@ -98,7 +111,7 @@ jobs:
98111
cd ../..
99112
100113
- name: checkout-device
101-
uses: actions/checkout@v4
114+
uses: actions/checkout@v6
102115
with:
103116
submodules: recursive
104117

@@ -121,3 +134,11 @@ jobs:
121134
122135
cmake .. -GNinja -DDEVICE_BACKEND=${{matrix.setup.backend}} -DSM=${{matrix.setup.arch}}
123136
ninja
137+
138+
- id: test
139+
name: test-device
140+
run: |
141+
cd tests
142+
cd build
143+
144+
./tests

0 commit comments

Comments
 (0)