File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed
Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change 1111
1212#if defined(__cplusplus)
1313 #if defined(SYCL_LANGUAGE_VERSION)
14- #include < CL/sycl.hpp>
14+ #include < sycl/sycl.hpp>
15+ #define OIDN_SYCL_HPP
16+ #elif defined(SYCL_FEATURE_SET_FULL) || defined(SYCL_FEATURE_SET_REDUCED)
17+ #define OIDN_SYCL_HPP // not using a SYCL compiler but SYCL headers are included
1518 #else
1619 namespace sycl
1720 {
Original file line number Diff line number Diff line change @@ -519,7 +519,7 @@ OIDN_NAMESPACE_BEGIN
519519 oidnExecuteFilterAsync (handle);
520520 }
521521
522- #if defined(SYCL_LANGUAGE_VERSION )
522+ #if defined(OIDN_SYCL_HPP )
523523 // Executes the filter of a SYCL device using the specified dependent events asynchronously, and
524524 // optionally returns an event for completion.
525525 sycl::event executeAsync (const std::vector<sycl::event>& depEvents)
@@ -840,10 +840,12 @@ OIDN_NAMESPACE_BEGIN
840840 }
841841
842842 // Returns whether the specified SYCL device is supported.
843+ #if defined(OIDN_SYCL_HPP)
843844 inline bool isSYCLDeviceSupported (const sycl::device& device)
844845 {
845846 return oidnIsSYCLDeviceSupported (&device);
846847 }
848+ #endif
847849
848850 // Returns whether the specified CUDA device is supported.
849851 inline bool isCUDADeviceSupported (int deviceID)
@@ -893,7 +895,7 @@ OIDN_NAMESPACE_BEGIN
893895 return DeviceRef (oidnNewDeviceByPCIAddress (pciDomain, pciBus, pciDevice, pciFunction));
894896 }
895897
896- #if defined(SYCL_LANGUAGE_VERSION )
898+ #if defined(OIDN_SYCL_HPP )
897899 // Creates a device from the specified SYCL queue.
898900 inline DeviceRef newSYCLDevice (const sycl::queue& queue)
899901 {
You can’t perform that action at this time.
0 commit comments