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 782340f commit fd9924bCopy full SHA for fd9924b
dpctl-capi/source/dpctl_sycl_device_manager.cpp
@@ -91,7 +91,13 @@ struct DeviceCacheBuilder
91
for (const auto &D : Devices) {
92
if (mRanker(D) < 0)
93
continue;
94
+#if defined(SYCL_EXT_ONEAPI_DEFAULT_CONTEXT)
95
+ auto P = D.get_platform();
96
+ auto DefaultCtx = P.ext_oneapi_get_default_context();
97
+ auto entry = cache_l.emplace(D, DefaultCtx);
98
+#else
99
auto entry = cache_l.emplace(D, D);
100
+#endif
101
if (!entry.second) {
102
std::cerr << "Fatal Error during device cache "
103
"construction.\n";
0 commit comments