Add HSA signal global tracking logic.

Implement the global class for signals tracking per device queue.
Switch to the new tracking mechanism.

Change-Id: I3c4dda04b34e6d18d6a95510d84102909633b415


[ROCm/clr commit: 8698aeef0d]
This commit is contained in:
German Andryeyev
2021-01-07 16:41:30 -05:00
parent a962e2d0b3
commit 30cf81fc93
6 changed files with 284 additions and 289 deletions
@@ -199,8 +199,9 @@ void Memory::cpuUnmap(device::VirtualDevice& vDev) {
amd::Coord3D(size()), true)) {
LogError("[OCL] Fail sync the device memory on cpuUnmap");
}
// Wait on CPU for the transfer
static_cast<roc::VirtualGPU&>(vDev).releaseGpuMemoryFence();
}
decIndMapCount();
}