mirror of
https://github.com/intel/compute-runtime.git
synced 2025-09-15 13:01:45 +08:00
Adjust GmmHelper to be HW aware
Related-To: NEO-6523 Signed-off-by: Krzysztof Gibala <krzysztof.gibala@intel.com>
This commit is contained in:

committed by
Compute-Runtime-Automation

parent
6d43e96dee
commit
c229ace4df
@ -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);
|
||||
|
Reference in New Issue
Block a user