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 7ac97fd commit 5440c83Copy full SHA for 5440c83
level_zero/core/source/cmdqueue/cmdqueue_hw.inl
@@ -311,7 +311,9 @@ ze_result_t CommandQueueHw<gfxCoreFamily>::executeCommandLists(
311
}
312
313
if (performMigration) {
314
- for (auto alloc : static_cast<DriverHandleImp *>(device->getDriverHandle())->sharedMakeResidentAllocations) {
+ DriverHandleImp *driverHandleImp = static_cast<DriverHandleImp *>(device->getDriverHandle());
315
+ std::lock_guard<std::mutex> lock(driverHandleImp->sharedMakeResidentAllocationsLock);
316
+ for (auto alloc : driverHandleImp->sharedMakeResidentAllocations) {
317
pageFaultManager->moveAllocationToGpuDomain(reinterpret_cast<void *>(alloc.second->getGpuAddress()));
318
319
0 commit comments