KFDTest : Add gfx1xxx release_mem and acquire_mem packet support

use family ID as parameter when construct the packets

Change-Id: I6c1706954ab7b8cbb8bef2aab16edf21f5e1abf0
Signed-off-by: shaoyunl <shaoyun.liu@amd.com>


[ROCm/ROCR-Runtime commit: e9882daf11]
This commit is contained in:
shaoyunl
2019-07-17 14:25:02 -04:00
committed by Shaoyun Liu
parent c2d5d06c43
commit 6f29801c64
9 changed files with 196 additions and 113 deletions
@@ -103,7 +103,7 @@ class AsyncMPSQ {
if (m_queueType == HSA_QUEUE_SDMA)
return SDMATimePacket(0).SizeInBytes();
else if (m_queueType == HSA_QUEUE_COMPUTE)
return PM4ReleaseMemoryPacket(0, 0, 0, 0, 0).SizeInBytes();
return PM4ReleaseMemoryPacket(g_TestGPUFamilyId, 0, 0, 0, 0, 0).SizeInBytes();
return 0;
}
@@ -126,7 +126,7 @@ class AsyncMPSQ {
PlacePacket(SDMATimePacket(addr));
else if (m_queueType == HSA_QUEUE_COMPUTE)
PlacePacket(
PM4ReleaseMemoryPacket(true, (HSAuint64)addr, 0, true, true));
PM4ReleaseMemoryPacket(g_TestGPUFamilyId, true, (HSAuint64)addr, 0, true, true));
else
WARN() << "Unsupported queue type!" << std::endl;
}