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 4b93e5f commit ca28a05Copy full SHA for ca28a05
sycl/source/detail/platform_impl.cpp
@@ -266,8 +266,10 @@ platform_impl::get_devices(info::device_type DeviceType) const {
266
[&Platform = MPlatform](plugin &Plugin) {
267
return Plugin.containsPiPlatform(Platform);
268
});
269
- if (It != Plugins.end())
+ if (It != Plugins.end()) {
270
+ std::lock_guard<std::mutex> Guard(*(It->getPluginMutex()));
271
(*It).adjustLastDeviceId(MPlatform);
272
+ }
273
return Res;
274
}
275
0 commit comments