mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-09 22:43:00 +08:00
refactor: flush L3 after post sync
Related-To: NEO-13163 Signed-off-by: Kamil Kopryk <kamil.kopryk@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
51c0057622
commit
1f862b3ee7
@@ -29,7 +29,7 @@ void CpuPageFaultManager::transferToGpu(void *ptr, void *cmdQ) {
|
||||
memoryData[ptr].unifiedMemoryManager->insertSvmMapOperation(ptr, memoryData[ptr].size, ptr, 0, false);
|
||||
auto retVal = commandQueue->enqueueSVMUnmap(ptr, 0, nullptr, nullptr, false);
|
||||
UNRECOVERABLE_IF(retVal);
|
||||
retVal = commandQueue->finish();
|
||||
retVal = commandQueue->finish(false);
|
||||
UNRECOVERABLE_IF(retVal);
|
||||
|
||||
auto allocData = memoryData[ptr].unifiedMemoryManager->getSVMAlloc(ptr);
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2021-2023 Intel Corporation
|
||||
* Copyright (C) 2021-2025 Intel Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
||||
@@ -70,7 +70,7 @@ void MigrationController::migrateMemory(Context &context, MemoryManager &memoryM
|
||||
auto pBuffer = static_cast<Buffer *>(memObj);
|
||||
srcCmdQ->enqueueReadBuffer(pBuffer, CL_TRUE, 0u, pBuffer->getSize(), hostPtr, nullptr, 0, nullptr, nullptr);
|
||||
}
|
||||
srcCmdQ->finish();
|
||||
srcCmdQ->finish(false);
|
||||
}
|
||||
|
||||
if (dstMemory->isAllocationLockable()) {
|
||||
@@ -91,7 +91,7 @@ void MigrationController::migrateMemory(Context &context, MemoryManager &memoryM
|
||||
auto pBuffer = static_cast<Buffer *>(memObj);
|
||||
dstCmdQ->enqueueWriteBuffer(pBuffer, CL_TRUE, 0u, pBuffer->getSize(), hostPtr, nullptr, 0, nullptr, nullptr);
|
||||
}
|
||||
dstCmdQ->finish();
|
||||
dstCmdQ->finish(false);
|
||||
}
|
||||
migrationSyncData->setCurrentLocation(targetRootDeviceIndex);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user