Skip to content

Commit a578c81

Browse files
authored
[SYCL][CUDA] Add missing macro to interop-backend-traits.cpp (#7603)
This test generally uses traits of different backends when compiling using the default spirv triple. It seems this means that the test manually defines some macros that are usually defined by the backend. For the ext_oneapi_cuda case a macro was missing leading to the test failure. I have added this missing required macro. Fixes this post-commit windows failure: https://github.com/intel/llvm/actions/runs/3585225542/jobs/6032932018 Signed-off-by: JackAKirk <[email protected]>
1 parent ca10db9 commit a578c81

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

sycl/test/basic_tests/interop-backend-traits.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ constexpr auto Backend = sycl::backend::ext_oneapi_hip;
3333
#endif
3434

3535
#ifdef USE_CUDA_EXPERIMENTAL
36+
#define SYCL_EXT_ONEAPI_BACKEND_CUDA 1
3637
#define SYCL_EXT_ONEAPI_BACKEND_CUDA_EXPERIMENTAL 1
3738
#include <sycl/ext/oneapi/experimental/backend/backend_traits_cuda.hpp>
3839
#include <sycl/ext/oneapi/experimental/backend/cuda.hpp>

0 commit comments

Comments
 (0)