Adjust GmmHelper to be HW aware

Related-To: NEO-6523
Signed-off-by: Krzysztof Gibala <krzysztof.gibala@intel.com>
This commit is contained in:
Krzysztof Gibala
2022-06-08 08:23:02 +00:00
committed by Compute-Runtime-Automation
parent 6d43e96dee
commit c229ace4df
77 changed files with 264 additions and 31 deletions

View File

@ -1792,6 +1792,7 @@ TEST(MemoryManager, givenBufferHostMemoryAndHostPtrTrackingDisabledWhenAllocatin
HardwareInfo hwInfoLocal = *defaultHwInfo;
hwInfoLocal.capabilityTable.hostPtrTrackingEnabled = false;
executionEnvironment->rootDeviceEnvironments[0u]->setHwInfo(&hwInfoLocal);
executionEnvironment->rootDeviceEnvironments[0u]->initGmm();
MockMemoryManager memoryManager(false, true, *executionEnvironment);
char bufferData[4096]{};
@ -1814,6 +1815,7 @@ TEST(MemoryManager, givenBufferHostMemoryAndHostPtrTrackingDisabledAndForce32bit
HardwareInfo hwInfoLocal = *defaultHwInfo;
hwInfoLocal.capabilityTable.hostPtrTrackingEnabled = false;
executionEnvironment->rootDeviceEnvironments[0u]->setHwInfo(&hwInfoLocal);
executionEnvironment->rootDeviceEnvironments[0u]->initGmm();
MockMemoryManager memoryManager(false, true, *executionEnvironment);
memoryManager.setForce32BitAllocations(true);