From 21689e87106ee45f05b7d0c16cf7f88880d31632 Mon Sep 17 00:00:00 2001 From: Ben Sander Date: Sat, 21 Oct 2017 07:47:32 -0500 Subject: [PATCH 1/2] Use 2X for bidir memory bandwidth calc --- hipamd/samples/1_Utils/hipBusBandwidth/hipBusBandwidth.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hipamd/samples/1_Utils/hipBusBandwidth/hipBusBandwidth.cpp b/hipamd/samples/1_Utils/hipBusBandwidth/hipBusBandwidth.cpp index b3b0b3e4a6..2d67b04441 100644 --- a/hipamd/samples/1_Utils/hipBusBandwidth/hipBusBandwidth.cpp +++ b/hipamd/samples/1_Utils/hipBusBandwidth/hipBusBandwidth.cpp @@ -594,7 +594,7 @@ void RunBenchmark_Bidir(ResultDatabase &resultDB) " ms\n"; } - double speed = (double(sizeToBytes(thisSize)) / (1000*1000)) / t; + double speed = (double(sizeToBytes(2*thisSize)) / (1000*1000)) / t; char sizeStr[256]; sprintf(sizeStr, "%9s", sizeToString(thisSize).c_str()); resultDB.AddResult(std::string("Bidir_Bandwidth") + "_" + mallocModeString(p_malloc_mode), sizeStr, "GB/sec", speed); From 4090c82936328643b8e45edd6fc464ea7d7bd2e0 Mon Sep 17 00:00:00 2001 From: Rahul Garg Date: Mon, 23 Oct 2017 21:57:20 +0530 Subject: [PATCH 2/2] Use 2X for bidir p2p memory bandwidth calc --- hipamd/samples/1_Utils/hipBusBandwidth/hipBusBandwidth.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hipamd/samples/1_Utils/hipBusBandwidth/hipBusBandwidth.cpp b/hipamd/samples/1_Utils/hipBusBandwidth/hipBusBandwidth.cpp index 2d67b04441..4bd1bc0163 100644 --- a/hipamd/samples/1_Utils/hipBusBandwidth/hipBusBandwidth.cpp +++ b/hipamd/samples/1_Utils/hipBusBandwidth/hipBusBandwidth.cpp @@ -922,7 +922,7 @@ void RunBenchmark_P2P_Bidir(ResultDatabase &resultDB) { std::cerr << "size " << sizeToString(thisSize) << " took " << t << " ms\n"; } - double speed = (double(sizeToBytes(thisSize) * p_beatsperiteration) / (1000*1000)) / t; + double speed = (double(sizeToBytes(2*thisSize) * p_beatsperiteration) / (1000*1000)) / t; char sizeStr[256]; if (p_beatsperiteration>1) { sprintf(sizeStr, "%9sx%d", sizeToString(thisSize).c_str(), p_beatsperiteration);