SWDEV-353281 - Change pool type for graphs

Under ROCr physical allocations don't have initial VA and require extra
flag in ROCclr. Add an option to have a mempool of physical allocations.

Change-Id: I4d062fe0dd8113d4eaf6e8b51749ed56d8701d1e
Dieser Commit ist enthalten in:
German Andryeyev verfasst und Julia Jiang committed 2024-03-25 10:21:05 -04:00
1 Ursprung 51926b6b6b
Commit f296159f62
5 Dateien geändert
+13 -6

Keine Dateien entsprechen Ihrer Suche

+3
Datei anzeigen
@@ -2615,6 +2615,9 @@ void VirtualGPU::submitVirtualMap(amd::VirtualMapCommand& vcmd) {
LogError("HSA Command: hsa_amd_vmem_map failed!");
}
} else {
dispatchBarrierPacket(kBarrierPacketHeader, false);
Barriers().WaitCurrent();
// Unmap the object, since the physical addr is set.
if ((hsa_status = hsa_amd_vmem_unmap(vaddr_mem_obj->getSvmPtr(), vcmd.size()))
== HSA_STATUS_SUCCESS) {