Skip to content

Commit 24f719d

Browse files
committed
docker: Add separate Devito images for the new CUDA versioned bases
1 parent 60b8b5b commit 24f719d

1 file changed

Lines changed: 35 additions & 6 deletions

File tree

.github/workflows/docker-devito.yml

Lines changed: 35 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,28 @@ jobs:
4444
test: ''
4545
runner: ubuntu-24.04-arm
4646

47+
- base: 'bases:nvidia-nvc12'
48+
tag: 'nvidia-nvc12'
49+
arch: amd64
50+
platform: linux/amd64
51+
run_tests: false
52+
tag_suffix: '-amd64'
53+
# Respect CUDA_VISIBLE_DEVICES set by the runner and hard-limit docker to that device.
54+
# (--gpus maps only the selected device from CUDA_VISIBLE_DEVICES)
55+
flag: --init --gpus "device=${CUDA_VISIBLE_DEVICES:-all}"
56+
test: 'tests/test_gpu_openacc.py tests/test_gpu_common.py'
57+
runner: ["self-hosted", "nvidiagpu"]
58+
59+
- base: 'bases:nvidia-nvc12'
60+
tag: 'nvidia-nvc12'
61+
arch: arm64
62+
platform: linux/arm64
63+
run_tests: false
64+
tag_suffix: '-arm64'
65+
flag: --init --gpus "device=${CUDA_VISIBLE_DEVICES:-all}"
66+
test: ''
67+
runner: ubuntu-24.04-arm
68+
4769
# Runtime gpu flags from https://hub.docker.com/r/rocm/tensorflow/
4870
- base: 'bases:amd'
4971
tag: 'amd'
@@ -127,9 +149,9 @@ jobs:
127149
type=raw,value=latest,enable=${{ matrix.base == 'bases:cpu-gcc' }},suffix=${{ matrix.tag_suffix }}
128150
type=semver,pattern={{raw}},prefix=${{ matrix.tag }}-,enable=${{ github.event_name == 'release' }},suffix=${{ matrix.tag_suffix }}
129151
# Legacy "gpu" tag
130-
type=raw,value=gpu-dev,enable=${{ matrix.base == 'bases:nvidia-nvc' }},suffix=${{ matrix.tag_suffix }}
131-
type=semver,pattern={{raw}},prefix=gpu-,enable=${{ github.event_name == 'release' && matrix.base == 'bases:nvidia-nvc' }},suffix=${{ matrix.tag_suffix }}
132-
type=semver,pattern={{raw}},value=gpu-latest,enable=${{ github.event_name == 'release' && matrix.base == 'bases:nvidia-nvc' }},suffix=${{ matrix.tag_suffix }}
152+
type=raw,value=gpu-dev,enable=${{ contains(matrix.base, 'bases:nvidia-nvc') }},suffix=${{ matrix.tag_suffix }}
153+
type=semver,pattern={{raw}},prefix=gpu-,enable=${{ github.event_name == 'release' && contains(matrix.base, 'bases:nvidia-nvc') }},suffix=${{ matrix.tag_suffix }}
154+
type=semver,pattern={{raw}},value=gpu-latest,enable=${{ github.event_name == 'release' && contains(matrix.base, 'bases:nvidia-nvc') }},suffix=${{ matrix.tag_suffix }}
133155
# Legacy "cpu" tag
134156
type=raw,value=cpu-dev,enable=${{ matrix.base == 'bases:cpu-gcc' }},suffix=${{ matrix.tag_suffix }}
135157
type=semver,pattern={{raw}},prefix=cpu-,enable=${{ github.event_name == 'release' && matrix.base == 'bases:cpu-gcc' }},suffix=${{ matrix.tag_suffix }}
@@ -170,6 +192,9 @@ jobs:
170192
- tag: 'nvidia-nvc'
171193
base: 'bases:nvidia-nvc'
172194
arches: "amd64 arm64"
195+
- tag: 'nvidia-nvc12'
196+
base: 'bases:nvidia-nvc12'
197+
arches: "amd64 arm64"
173198
- tag: 'gcc'
174199
base: 'bases:cpu-gcc'
175200
arches: "amd64 arm64"
@@ -198,9 +223,9 @@ jobs:
198223
type=raw,value=latest,enable=${{ matrix.base == 'bases:cpu-gcc' }}
199224
type=semver,pattern={{raw}},prefix=${{ matrix.tag }}-,enable=${{ github.event_name == 'release' }}
200225
# Legacy "gpu" tag
201-
type=raw,value=gpu-dev,enable=${{ matrix.base == 'bases:nvidia-nvc' }}
202-
type=semver,pattern={{raw}},prefix=gpu-,enable=${{ github.event_name == 'release' && matrix.base == 'bases:nvidia-nvc' }}
203-
type=semver,pattern={{raw}},value=gpu-latest,enable=${{ github.event_name == 'release' && matrix.base == 'bases:nvidia-nvc' }}
226+
type=raw,value=gpu-dev,enable=${{ contains(matrix.base, 'bases:nvidia-nvc') }}
227+
type=semver,pattern={{raw}},prefix=gpu-,enable=${{ github.event_name == 'release' && contains(matrix.base, 'bases:nvidia-nvc') }}
228+
type=semver,pattern={{raw}},value=gpu-latest,enable=${{ github.event_name == 'release' && contains(matrix.base, 'bases:nvidia-nvc') }}
204229
# Legacy "cpu" tag
205230
type=raw,value=cpu-dev,enable=${{ matrix.base == 'bases:cpu-gcc' }}
206231
type=semver,pattern={{raw}},prefix=cpu-,enable=${{ github.event_name == 'release' && matrix.base == 'bases:cpu-gcc' }}
@@ -239,6 +264,10 @@ jobs:
239264
flag: --init --gpus "device=${CUDA_VISIBLE_DEVICES:-all}"
240265
test: 'tests/test_gpu_openacc.py tests/test_gpu_common.py'
241266
runner: ["self-hosted", "nvidiagpu"]
267+
- tag: 'nvidia-nvc12'
268+
flag: --init --gpus "device=${CUDA_VISIBLE_DEVICES:-all}"
269+
test: 'tests/test_gpu_openacc.py tests/test_gpu_common.py'
270+
runner: ["self-hosted", "nvidiagpu"]
242271
- tag: 'gcc'
243272
flag: '--init -t'
244273
test: 'tests/test_operator.py'

0 commit comments

Comments
 (0)