Skip to content

Commit fe763c3

Browse files
committed
[SYCL] fix include issue
1 parent ef0c989 commit fe763c3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22
// RUN: %if any-device-is-cuda %{ %{build} -isystem %sycl_include -DBUILD_FOR_CUDA -o %t-cuda.out %}
33
// RUN: %if any-device-is-hip %{ %{build} -DBUILD_FOR_HIP -o %t-hip.out %}
44

5-
#include <sycl/backend.hpp>
65
#include <sycl/detail/core.hpp>
76
#include <sycl/properties/all_properties.hpp>
87
#include <sycl/usm.hpp>
98
using namespace sycl;
109

1110
#ifdef BUILD_FOR_CUDA
11+
#include <sycl/ext/oneapi/experimental/backend/cuda.hpp>
1212
constexpr auto BACKEND = backend::ext_oneapi_cuda;
1313
using nativeDevice = CUdevice;
1414
using nativeQueue = CUstream;
@@ -20,6 +20,7 @@ using nativeDevice = device;
2020
using nativeQueue = ihipStream_t;
2121
using nativeEvent = ihipEvent_t;
2222
#else
23+
#include <sycl/backend.hpp>
2324
constexpr auto BACKEND = backend::opencl;
2425
using nativeDevice = cl_device_id;
2526
using nativeQueue = cl_command_queue;

0 commit comments

Comments
 (0)