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:
Dominik Dabek
2025-05-23 13:47:41 +00:00
committed by Compute-Runtime-Automation
parent 19361031fe
commit ad4d7a2ce8
6 changed files with 228 additions and 71 deletions

View File

@@ -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;
}