libhsakmt: Expose device Unique Id

Read device unique id from sysfs and expose it in HsaNodeProperties.
For devices not supported the value will be 0

Signed-off-by: Divya Shikre <DivyaUday.Shikre@amd.com>
Change-Id: I97b8689dfa090971c6876de6feaa97652e28c03d


[ROCm/ROCR-Runtime commit: ebe7de1f99]
이 커밋은 다음에 포함됨:
Divya Shikre
2020-03-05 14:49:49 -05:00
커밋한 사람 Divya Uday Shikre
부모 fbec350744
커밋 b54a23f31a
2개의 변경된 파일과 4개의 추가작업 그리고 1개의 파일을 삭제
+2 -1
파일 보기
@@ -308,7 +308,8 @@ typedef struct _HsaNodeProperties
HSAuint8 Reserved2;
HSAuint32 Domain; // PCI domain of the GPU
HSAuint8 Reserved[28];
HSAuint64 UniqueID; // Globally unique immutable id
HSAuint8 Reserved[20];
} HsaNodeProperties;