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 1f9be1d commit 8751ad8Copy full SHA for 8751ad8
sycl/source/detail/pi.cpp
@@ -652,12 +652,12 @@ void fillPlatformAndDeviceCache(plugin &Plugin) {
652
filterDeviceFilter(PiDevices, PiPlatform, Plugin, DeviceNum);
653
654
if (PiDevices.size() != 0) {
655
- const std::lock_guard<std::mutex> Guard(
656
- GlobalHandler::instance().getPlatformMapMutex());
657
std::vector<DeviceImplPtr> DeviceCache;
658
for (const RT::PiDevice &PiDevice : PiDevices) {
659
std::shared_ptr<device_impl> Device =
660
PlatformImpl->getOrMakeDeviceImpl(PiDevice, PlatformImpl);
+ const std::lock_guard<std::mutex> Guard(
+ GlobalHandler::instance().getPlatformMapMutex());
661
DeviceCache.emplace_back(Device);
662
}
663
0 commit comments