mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 14:55:24 +08:00
performance: Reuse GPU timestamp instead of KMD escape
Resolves: NEO-10615 Signed-off-by: Morek, Szymon <szymon.morek@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
15d7a31148
commit
9ca2091725
@@ -50,11 +50,11 @@ const char *MockDevice::getProductAbbrev() const {
|
||||
MockDevice::MockDevice(ExecutionEnvironment *executionEnvironment, uint32_t rootDeviceIndex)
|
||||
: RootDevice(executionEnvironment, rootDeviceIndex) {
|
||||
UltDeviceFactory::initializeMemoryManager(*executionEnvironment);
|
||||
|
||||
auto &hwInfo = getHardwareInfo();
|
||||
if (!getOSTime()) {
|
||||
getRootDeviceEnvironmentRef().osTime = MockOSTime::create();
|
||||
getRootDeviceEnvironmentRef().osTime->setDeviceTimerResolution(hwInfo);
|
||||
}
|
||||
auto &hwInfo = getHardwareInfo();
|
||||
executionEnvironment->rootDeviceEnvironments[rootDeviceIndex]->setHwInfoAndInitHelpers(&hwInfo);
|
||||
executionEnvironment->rootDeviceEnvironments[rootDeviceIndex]->initGmm();
|
||||
if (!executionEnvironment->rootDeviceEnvironments[rootDeviceIndex]->memoryOperationsInterface) {
|
||||
|
||||
Reference in New Issue
Block a user