From f47c40d2ff74bebfb2eb2a2b90d6cc8b862e9391 Mon Sep 17 00:00:00 2001 From: Ben Sander Date: Sat, 21 Oct 2017 07:47:32 -0500 Subject: [PATCH] Use 2X for bidir memory bandwidth calc [ROCm/hip commit: 0d1ad06458cc6b8a4953b1fb5bc8f6083d8330f6] --- .../hip/samples/1_Utils/hipBusBandwidth/hipBusBandwidth.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/hip/samples/1_Utils/hipBusBandwidth/hipBusBandwidth.cpp b/projects/hip/samples/1_Utils/hipBusBandwidth/hipBusBandwidth.cpp index b3b0b3e4a6..2d67b04441 100644 --- a/projects/hip/samples/1_Utils/hipBusBandwidth/hipBusBandwidth.cpp +++ b/projects/hip/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);