Skip to content

Commit 6c162ca

Browse files
authored
[SYCL][E2E] Fix interop_all_backends for CUDA (#17643)
The CUDA backend has two different versions of the interop. A legacy version and a newer experimental version. Using the experimental version requires defining a macro before including the SYCL headers. This test uses the experimental version so it should define the macro. Fixes: #16070
1 parent c3601c2 commit 6c162ca

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

sycl/test-e2e/Basic/interop/interop_all_backends.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
1-
// XFAIL: target-nvidia
2-
// XFAIL-TRACKER: https://github.com/intel/llvm/issues/16070
31
// RUN: %if target-spir %{ %{build} -o %t-opencl.out %}
4-
// RUN: %if target-nvidia %{ %{build} -isystem %sycl_include -DBUILD_FOR_CUDA -o %t-cuda.out %}
2+
// RUN: %if target-nvidia %{ %{build} -DBUILD_FOR_CUDA -DSYCL_EXT_ONEAPI_BACKEND_CUDA_EXPERIMENTAL -o %t-cuda.out %}
53
// RUN: %if target-amd %{ %{build} -DBUILD_FOR_HIP -o %t-hip.out %}
64

75
#include <sycl/backend.hpp>

0 commit comments

Comments
 (0)