File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -108,36 +108,24 @@ jobs:
108108 fi
109109
110110 # Run a simple driver-probe command (nvidia-smi / rocm-smi)
111+ docker rm -f "${CONTAINER_BASENAME}" 2>/dev/null || true
111112 docker run ${{ matrix.flags }} "${DOCKER_IMAGE}" ${{ matrix.test_drive_cmd }}
112113
113114 - name : Test with pytest
114115 env :
115116 # Exported earlier in the job; needed inside the container for codecov
116117 CODECOV_TOKEN : ${{ env.CODECOV_TOKEN }}
117118 run : |
118- # 1. Add Codecov’s environment variables (GITHUB_SHA, etc.)
119+ # Add Codecov’s environment variables (GITHUB_SHA, etc.)
119120 ci_env=$(bash <(curl -s https://codecov.io/env))
120121
121- # 2. For NVIDIA, make sure the runner gave us a GPU mask
122- # Default to empty
123- NVIDIA_ENV_FLAGS=""
124- # For NVIDIA, check for device mask AND set specific env vars
125- if [[ "${{ matrix.runner_label }}" == "nvidiagpu" ]]; then
126- : "${CUDA_VISIBLE_DEVICES:?CUDA_VISIBLE_DEVICES not set on NVIDIA runner}"
127- NVIDIA_ENV_FLAGS=" \
128- -e CUDA_LAUNCH_BLOCKING=1 \
129- -e NV_ACC_NOTIFY=3 \
130- -e NV_ACC_DEBUG=1"
131- fi
132-
133- # 3. Run the test suite using the matrix-defined flags
122+ # Run the test suite using the matrix-defined flags
134123 docker run ${{ matrix.flags }} \
135124 ${ci_env} \
136125 -e CI=true \
137126 -e PYTHONFAULTHANDLER=1 \
138127 -e DEVITO_LOGGING=DEBUG \
139128 -e CODECOV_TOKEN \
140- ${NVIDIA_ENV_FLAGS} \
141129 "${DOCKER_IMAGE}" \
142130 pytest -vvv --capture=no --showlocals \
143131 --log-cli-level=DEBUG -o log_cli=true \
You can’t perform that action at this time.
0 commit comments