kfdtest: Provide Unique ID information.

Signed-off-by: Divya Shikre <DivyaUday.Shikre@amd.com>
Change-Id: I9a837a3d1ab38f5ad05673406874d862c9e97541
This commit is contained in:
Divya Shikre
2020-03-06 11:10:31 -05:00
committed by Divya Uday Shikre
parent 9efefe6d52
commit 96259b5830
+7
View File
@@ -37,6 +37,13 @@ TEST_F(KFDTopologyTest , BasicTest) {
for (unsigned node = 0; node < m_SystemProperties.NumNodes; node++) {
pNodeProperties = m_NodeInfo.GetNodeProperties(node);
if (pNodeProperties != NULL) {
HSAuint64 uniqueid;
if (!pNodeProperties->UniqueID)
uniqueid = 0;
else
uniqueid = pNodeProperties->UniqueID;
LOG() << "UniqueID : " << std::dec << uniqueid <<
" Node index: " << node << std::endl;
// Checking for cpu core only if it's a cpu only node or if its KAVERI apu.
if (pNodeProperties->DeviceId == 0 || FamilyIdFromNode(pNodeProperties) == FAMILY_KV) {
EXPECT_GT(pNodeProperties->NumCPUCores, HSAuint32(0)) << "Node index: " << node