mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-27 07:44:16 +08:00
fix: l0 usm pooling, ipc handling
Move getting usm pool for ptr to its own method. Move trying to free via pooling to its own method. Use base ptr of pool for tracking in IPCHandleMap. Track ipc handle refcount in freeMem. Return error when trying to use a not allocated ptr within pool. Related-To: NEO-6893 Signed-off-by: Dominik Dabek <dominik.dabek@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
19361031fe
commit
ad4d7a2ce8
@@ -167,6 +167,10 @@ size_t UsmMemAllocPool::getOffsetInPool(const void *ptr) const {
|
||||
return 0u;
|
||||
}
|
||||
|
||||
uint64_t UsmMemAllocPool::getPoolAddress() const {
|
||||
return castToUint64(this->pool);
|
||||
}
|
||||
|
||||
bool UsmMemAllocPoolsManager::PoolInfo::isPreallocated() const {
|
||||
return 0u != preallocateSize;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user