From 855a801ae7096522e8f9938cccce163d6a453c71 Mon Sep 17 00:00:00 2001 From: Evgeny Date: Sat, 27 Jul 2019 03:06:10 -0500 Subject: [PATCH] adding gfx908 namespace Change-Id: Ifd45385777be5066c8bfef23ee24bbabadf4dffa --- src/core/metrics.h | 2 ++ test/run.sh | 4 +++- test/tool/metrics.xml | 2 ++ 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/core/metrics.h b/src/core/metrics.h index f1532dcfb2..5c9f358082 100644 --- a/src/core/metrics.h +++ b/src/core/metrics.h @@ -186,6 +186,8 @@ class MetricsDict { ImportMetrics(agent_info, "const"); if (std::string("gfx906") == agent_info->name) { ImportMetrics(agent_info, agent_info->name); + } else if (std::string("gfx908") == agent_info->name) { + ImportMetrics(agent_info, agent_info->name); } else { ImportMetrics(agent_info, agent_info->gfxip); } diff --git a/test/run.sh b/test/run.sh index 0ab72799b5..ede510bc28 100755 --- a/test/run.sh +++ b/test/run.sh @@ -30,6 +30,7 @@ fi # test check routin test_status=0 +test_runnum=0 test_number=0 xeval_test() { test_number=$test_number @@ -39,6 +40,7 @@ eval_test() { cmdline=$2 if [ $test_filter = -1 -o $test_filter = $test_number ] ; then echo "$label: \"$cmdline\"" + test_runnum=$((test_runnum + 1)) eval "$cmdline" if [ $? != 0 ] ; then echo "$label: FAILED" @@ -131,5 +133,5 @@ eval_test "libtool test, counter sets" ./test/ctrl #valgrind --tool=massif $tbin #ms_print massif.out. -echo "$test_number tests total / $test_status tests failed" +echo "$test_number tests total / $test_runnum tests run / $test_status tests failed" exit $test_status diff --git a/test/tool/metrics.xml b/test/tool/metrics.xml index 2b8fdd3c38..74d2ac62d5 100644 --- a/test/tool/metrics.xml +++ b/test/tool/metrics.xml @@ -55,6 +55,8 @@ + + # GPUBusy The percentage of time GPU was busy.