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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user