SWDEV-336024 - Clear device heap to 0
The heap must be cleared once per device, but ROCclr doesn't create a queue per device in HIP. Hence, the clear operation will be performed during the first queue creation. Change-Id: I52ceb06d67d11cde6d019c5ab510059f426a9bfb
This commit is contained in:
@@ -883,7 +883,8 @@ bool Buffer::create(bool alloc_local) {
|
||||
const_cast<Device&>(dev()).updateFreeMemory(size(), false);
|
||||
}
|
||||
}
|
||||
else {
|
||||
// Hide private allocations from memory tracking
|
||||
else if (owner()->getContext() != dev().context()) {
|
||||
const_cast<Device&>(dev()).updateFreeMemory(size(), false);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user