From 96259b5830c59a6fd2b1307def31039af05ffe2d Mon Sep 17 00:00:00 2001 From: Divya Shikre Date: Fri, 6 Mar 2020 11:10:31 -0500 Subject: [PATCH] kfdtest: Provide Unique ID information. Signed-off-by: Divya Shikre Change-Id: I9a837a3d1ab38f5ad05673406874d862c9e97541 --- tests/kfdtest/src/KFDTopologyTest.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/kfdtest/src/KFDTopologyTest.cpp b/tests/kfdtest/src/KFDTopologyTest.cpp index ac9960bffb..334317e943 100644 --- a/tests/kfdtest/src/KFDTopologyTest.cpp +++ b/tests/kfdtest/src/KFDTopologyTest.cpp @@ -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