Skip to content

Commit 757b22a

Browse files
committed
CI: Only run compute-sanitzer when testing against local ctk
There is no compute-sanitizer wheel, so we can only run when the ctk is installed system-wide
1 parent 7f782dc commit 757b22a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ jobs:
7474
fi
7575
fi
7676
77-
if [[ "${{ inputs.python-version }}" == "3.12" ]]; then
77+
if [[ "${{ inputs.python-version }}" == "3.12" && "${{ inputs.local-ctk }}" == 1 ]]; then
7878
COMPUTE_SANITIZER=${CUDA_HOME}/bin/compute-sanitizer
7979
COMPUTE_SANITIZER_VERSION=$(${COMPUTE_SANITIZER} --version | grep -Eo "[0-9]{4}\.[0-9]\.[0-9]" | sed -e 's/\.//g')
8080
SANITIZER_CMD="${COMPUTE_SANITIZER} --target-processes=all --launch-timeout=0 --tool=memcheck --error-exitcode=1"

0 commit comments

Comments
 (0)