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>
Este commit está contenido en:
shaoyunl
2019-07-16 16:46:39 -04:00
padre e9882daf11
commit b4e834ab61
Se han modificado 16 ficheros con 47 adiciones y 18 borrados
+2
Ver fichero
@@ -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;