Skip to content
This repository was archived by the owner on Aug 15, 2025. It is now read-only.

Commit 987dcb0

Browse files
authored
Don't run cuda check on xpu devices (#1918)
1 parent 21680fd commit 987dcb0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

check_binary.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,7 @@ if [[ "$OSTYPE" == "msys" ]]; then
375375
fi
376376

377377
# Test that CUDA builds are setup correctly
378-
if [[ "$DESIRED_CUDA" != 'cpu' && "$DESIRED_CUDA" != 'cpu-cxx11-abi' && "$DESIRED_CUDA" != *"rocm"* && "$(uname -m)" != "s390x" ]]; then
378+
if [[ "$DESIRED_CUDA" != 'cpu' && "$DESIRED_CUDA" != 'xpu' && "$DESIRED_CUDA" != 'cpu-cxx11-abi' && "$DESIRED_CUDA" != *"rocm"* && "$(uname -m)" != "s390x" ]]; then
379379
if [[ "$PACKAGE_TYPE" == 'libtorch' ]]; then
380380
build_and_run_example_cpp check-torch-cuda
381381
else

0 commit comments

Comments
 (0)