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
@ -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]);
|
||||
|
Reference in New Issue
Block a user