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
rodzic 6f29801c64
commit db09beaa08
16 zmienionych plików z 47 dodań i 18 usunięć
@@ -87,6 +87,7 @@ class BaseQueue {
HSAuint64 GetPendingWptr64() { return m_pendingWptr64; }
virtual _HSA_QUEUE_TYPE GetQueueType() = 0;
unsigned int GetNodeId() { return m_Node; }
unsigned int GetFamilyId() { return m_FamilyId; }
protected:
static const unsigned int CMD_NOP_TYPE_2 = 0x80000000;
@@ -98,6 +99,7 @@ class BaseQueue {
HsaQueueResource m_Resources;
HsaMemoryBuffer *m_QueueBuf;
unsigned int m_Node;
unsigned int m_FamilyId;
// @return Write pointer modulo queue size in dwords
virtual unsigned int Wptr() = 0;