SWDEV-492049 - Remove the handle of Phy Mem from Memobj
The hipGraph will use VMM by default when allocating memory.
However, the handle of Phy mem has been added to Memobj by default.
Since the Memobj will track the whole address range from handle to
handle + size, this needs the system to reserve the whole address
range. If the system range have not reserved by the system, then it
will have the potential issue that clr finds the Memobj incorrectly.
This patch removes the handle from the Memobj to fix this potential
issue.
Change-Id: I2da38e6b2d11d0d48e1afe66c46899500c290624
[ROCm/clr commit: 231b2410a0]
Αυτή η υποβολή περιλαμβάνεται σε:
1 γονέας
7d7aa8b69c
υποβολή
dabe311bd8
2 files changed
+6
No files matched your search
@@ -216,6 +216,8 @@ void* MemoryPool::AllocateMemory(size_t size, Stream* stream, void* dptr) {
|
||||
}
|
||||
} else {
|
||||
dev_ptr = memory->getSvmPtr();
|
||||
if (!amd::MemObjMap::FindMemObj(dev_ptr))
|
||||
amd::MemObjMap::AddMemObj(dev_ptr, memory);
|
||||
}
|
||||
// Place the allocated memory into the busy heap
|
||||
ts.AddSafeStream(stream);
|
||||
|
||||
Reference in new issue
Block a user