We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8bd083f commit bd75133Copy full SHA for bd75133
dpctl-capi/source/dpctl_sycl_device_selector_interface.cpp
@@ -82,8 +82,13 @@ __dpctl_give DPCTLSyclDeviceSelectorRef DPCTLCPUSelector_Create()
82
__dpctl_give DPCTLSyclDeviceSelectorRef
83
DPCTLFilterSelector_Create(__dpctl_keep const char *filter_str)
84
{
85
+#if __SYCL_COMPILER_VERSION < 20210925
86
+ using filter_selector_t = sycl::ONEAPI::filter_selector;
87
+#else
88
+ using filter_selector_t = sycl::ext::oneapi::filter_selector;
89
+#endif
90
try {
- auto Selector = new ext::oneapi::filter_selector(filter_str);
91
+ auto Selector = new filter_selector_t(filter_str);
92
return wrap(Selector);
93
} catch (std::bad_alloc &ba) {
94
std::cerr << ba.what() << '\n';
0 commit comments