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 586d0da commit a733408Copy full SHA for a733408
sycl/source/detail/ur.cpp
@@ -241,6 +241,11 @@ static void initializeAdapters(std::vector<adapter_impl *> &Adapters,
241
auto syclBackend = UrToSyclBackend(adapterBackend);
242
Adapters.emplace_back(new adapter_impl(UrAdapter, syclBackend));
243
244
+ if (Adapters.back()->getUrPlatforms().empty()) {
245
+ // If the adapter has no platforms, we skip it.
246
+ Adapters.pop_back();
247
+ }
248
+
249
const char *env_value = std::getenv("UR_LOG_CALLBACK");
250
if (env_value == nullptr || std::string(env_value) != "disabled") {
251
CHECK_UR_SUCCESS(adapterSetLoggerCallback(UrAdapter, urLoggerCallback,
0 commit comments