From 61cb0370441fcc0dd32ef36d074a2a7f811d2a22 Mon Sep 17 00:00:00 2001 From: Yong Zhao Date: Mon, 20 Apr 2020 18:09:16 -0400 Subject: [PATCH] kfdtest: Improve the message when CWSR basic test does not pass This will give out more info. Change-Id: I407422b84bebdf39a886c57736093a035ff02118 Signed-off-by: Yong Zhao [ROCm/ROCR-Runtime commit: 8881075ab2a3d547474dd92687e640a492d23029] --- projects/rocr-runtime/tests/kfdtest/src/KFDCWSRTest.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/projects/rocr-runtime/tests/kfdtest/src/KFDCWSRTest.cpp b/projects/rocr-runtime/tests/kfdtest/src/KFDCWSRTest.cpp index 5a4dbb4340..da2ad9bbd8 100644 --- a/projects/rocr-runtime/tests/kfdtest/src/KFDCWSRTest.cpp +++ b/projects/rocr-runtime/tests/kfdtest/src/KFDCWSRTest.cpp @@ -188,11 +188,13 @@ TEST_F(KFDCWSRTest, BasicTest) { int i; for (i = 0 ; i < wave_number; ++i) { if (result1[i] != count1) { - LOG() << "Dispatch 1, work item " << i << ' ' << result1[i] << std::endl; + LOG() << "Dispatch 1, work item [" << std::dec << i << "] " + << result1[i] << " != " << count1 << std::endl; break; } if (result2[i] != count2) { - LOG() << "Dispatch 2, work item " << i << ' ' << result2[i] << std::endl; + LOG() << "Dispatch 2, work item [" << std::dec << i << "] " + << result2[i] << " != " << count2 << std::endl; break; } }