KFDTest: remove the usage global g_TestGPUFamilyId

Adjust the KFDTest for multi-gou support

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


[ROCm/ROCR-Runtime commit: b4e834ab61]
This commit is contained in:
shaoyunl
2019-07-16 16:46:39 -04:00
parent 6f29801c64
commit db09beaa08
16 changed files with 47 additions and 18 deletions
@@ -63,7 +63,7 @@ unsigned int SDMAQueue::RptrWhenConsumed() {
void SDMAQueue::SubmitPacket() {
// m_pending Wptr is in dwords
if (g_TestGPUFamilyId < FAMILY_AI) {
if (m_FamilyId < FAMILY_AI) {
// Pre-Vega10 uses 32-bit wptr and doorbell
unsigned int wPtrInBytes = m_pendingWptr * sizeof(unsigned int);
MemoryBarrier();