libhsakmt: Add MarketingName and AMDName for all nodes - CPU & GPU
HSA thunk API is currently reporting engineering name to MarketingName and returning NULL when querying for AMDName. -Change current name reporting from MarketingName to AMDName. -Use libpci to get MarketingName Change-Id: I819a6de7b067a2e724a6695e7d800274b83a71f8 Signed-off-by: Lan Xiao <Lan.Xiao@amd.com>
Этот коммит содержится в:
@@ -195,7 +195,7 @@ typedef union
|
||||
// of throughput compute units (= SIMDs) associated with a H-NUMA node.
|
||||
//
|
||||
|
||||
#define HSA_PUBLIC_NAME_SIZE 128
|
||||
#define HSA_PUBLIC_NAME_SIZE 64 // Marketing name string size
|
||||
|
||||
typedef struct _HsaNodeProperties
|
||||
{
|
||||
@@ -248,6 +248,8 @@ typedef struct _HsaNodeProperties
|
||||
|
||||
HSAuint16 MarketingName[HSA_PUBLIC_NAME_SIZE]; // Public name of the "device" on the node (board or APU name).
|
||||
// Unicode string
|
||||
HSAuint8 AMDName[HSA_PUBLIC_NAME_SIZE]; //CAL Name of the "device", ASCII
|
||||
HSAuint8 Reserved[64];
|
||||
} HsaNodeProperties;
|
||||
|
||||
|
||||
|
||||
Ссылка в новой задаче
Block a user