Skip to content

Commit 68c0961

Browse files
committed
CI: Delay CUDA_HOME variable expansion
1 parent f27e1f4 commit 68c0961

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/test-wheel-linux.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,8 @@ jobs:
7575
fi
7676
7777
if [[ "${{ inputs.python-version }}" == "3.12" && "${{ inputs.local-ctk }}" == 1 ]]; then
78-
COMPUTE_SANITIZER=${CUDA_HOME}/bin/compute-sanitizer
78+
# Use single quotes to delay expansion of $CUDA_HOME until after mini-CTK step is complete
79+
COMPUTE_SANITIZER='${CUDA_HOME}/bin/compute-sanitizer'
7980
COMPUTE_SANITIZER_VERSION=$(${COMPUTE_SANITIZER} --version | grep -Eo "[0-9]{4}\.[0-9]\.[0-9]" | sed -e 's/\.//g')
8081
SANITIZER_CMD="${COMPUTE_SANITIZER} --target-processes=all --launch-timeout=0 --tool=memcheck --error-exitcode=1"
8182
if [[ "$COMPUTE_SANITIZER_VERSION" -ge 202111 ]]; then

0 commit comments

Comments
 (0)