Skip to content

Commit f52cf7b

Browse files
Merge pull request #2710 from devitocodes/fix_id
CI: Cannot set `--env CUDA_VISIBLE_DEVICES` for `docker run` when using ng `--gpus "device=${CUDA_VISIBLE_DEVICES:-all}"` - dropping --env arg.
2 parents 70c3ed1 + b0d3c60 commit f52cf7b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/docker-devito.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ jobs:
2222
- base: 'bases:nvidia-nvc'
2323
tag: 'nvidia-nvc'
2424
# Respect CUDA_VISIBLE_DEVICES set by the runner and hard-limit docker to that device.
25-
# (--env without value forwards host var; --gpus maps only that device)
26-
flag: --init --env CUDA_VISIBLE_DEVICES --gpus "device=${CUDA_VISIBLE_DEVICES:-all}"
25+
# (--gpus maps only the selected device from CUDA_VISIBLE_DEVICES)
26+
flag: --init --gpus "device=${CUDA_VISIBLE_DEVICES:-all}"
2727
test: 'tests/test_gpu_openacc.py tests/test_gpu_common.py'
2828
runner: ["self-hosted", "nvidiagpu"]
2929

0 commit comments

Comments
 (0)