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>
Этот коммит содержится в:
Lan Xiao
2016-08-19 11:42:05 -04:00
родитель 70b1b5b17e
Коммит 9cbbf30be7
6 изменённых файлов: 43 добавлений и 16 удалений
+3 -1
Просмотреть файл
@@ -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;