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

@ -33,6 +33,9 @@ struct ApiFixture {
DebugManager.flags.CreateMultipleRootDevices.set(numRootDevices);
executionEnvironment = new ClExecutionEnvironment();
prepareDeviceEnvironments(*executionEnvironment);
for (auto i = 0u; i < executionEnvironment->rootDeviceEnvironments.size(); i++) {
executionEnvironment->rootDeviceEnvironments[i]->initGmm();
}
auto rootDevice = MockDevice::createWithExecutionEnvironment<MockDevice>(defaultHwInfo.get(), executionEnvironment, rootDeviceIndex);
if (rootDeviceIndex != 0u) {
rootDeviceEnvironmentBackup.swap(executionEnvironment->rootDeviceEnvironments[0]);