Move memory for slm window to memory manager

remove redundant methods from MockDevice

Related-To: NEO-3007

Change-Id: I9cc819b9c9118dbb667f5bf87d1bf15787f9b67f
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
Mateusz Jablonski
2019-08-27 15:26:30 +02:00
committed by sys_ocldev
parent 89824aa848
commit 18982bd016
15 changed files with 94 additions and 126 deletions

View File

@@ -72,8 +72,6 @@ Device::~Device() {
}
executionEnvironment->memoryManager->waitForDeletions();
alignedFree(this->slmWindowStartAddress);
executionEnvironment->decRefInternal();
}
@@ -175,17 +173,6 @@ const DeviceInfo &Device::getDeviceInfo() const {
return deviceInfo;
}
void *Device::getSLMWindowStartAddress() {
prepareSLMWindow();
return this->slmWindowStartAddress;
}
void Device::prepareSLMWindow() {
if (this->slmWindowStartAddress == nullptr) {
this->slmWindowStartAddress = executionEnvironment->memoryManager->allocateSystemMemory(MemoryConstants::slmWindowSize, MemoryConstants::slmWindowAlignment);
}
}
const char *Device::getProductAbbrev() const {
return hardwarePrefix[getHardwareInfo().platform.eProductFamily];
}