From af0eadcee6525d361f2e140e0d5458ab2c7c2b33 Mon Sep 17 00:00:00 2001 From: Harish Kasiviswanathan Date: Thu, 6 Sep 2018 11:38:53 -0400 Subject: [PATCH] kfdtest: GetNodeIoLinkProperties: Display NodeFrom Use the NodeFrom returned by hsaKmtGetNodeIoLinkProperties() to check its correctness. Change-Id: I6ce436dc7c5d5b192bee21156292bd3eff77f916 Signed-off-by: Harish Kasiviswanathan [ROCm/ROCR-Runtime commit: 1fda42972615d17a08609f2166cd17e935ab09fc] --- projects/rocr-runtime/tests/kfdtest/src/KFDTopologyTest.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/projects/rocr-runtime/tests/kfdtest/src/KFDTopologyTest.cpp b/projects/rocr-runtime/tests/kfdtest/src/KFDTopologyTest.cpp index 16fe8cec99..ac9960bffb 100644 --- a/projects/rocr-runtime/tests/kfdtest/src/KFDTopologyTest.cpp +++ b/projects/rocr-runtime/tests/kfdtest/src/KFDTopologyTest.cpp @@ -203,7 +203,9 @@ TEST_F(KFDTopologyTest, GetNodeIoLinkProperties) { for (linkId = 0; linkId < pNodeProperties->NumIOLinks; linkId++) { if (linkId == 0) { // First io_link. Print Parent Node and io_link Node - LOG() << "[" << node << "]--(" << IolinkProperties[linkId].Weight << ")-->" << + EXPECT_EQ(node, IolinkProperties[linkId].NodeFrom); + LOG() << "[" << IolinkProperties[linkId].NodeFrom << "]--(" << + IolinkProperties[linkId].Weight << ")-->" << "[" << IolinkProperties[linkId].NodeTo << "]" << std::endl; continue; }