mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-30 09:58:55 +08:00
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:
committed by
sys_ocldev
parent
89824aa848
commit
18982bd016
@@ -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];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user