diff --git a/hipamd/samples/1_Utils/hipBusBandwidth/hipBusBandwidth.cpp b/hipamd/samples/1_Utils/hipBusBandwidth/hipBusBandwidth.cpp index c5e66d3c4d..6181c49afe 100644 --- a/hipamd/samples/1_Utils/hipBusBandwidth/hipBusBandwidth.cpp +++ b/hipamd/samples/1_Utils/hipBusBandwidth/hipBusBandwidth.cpp @@ -813,6 +813,7 @@ void RunBenchmark_P2P_Bidir(ResultDatabase& resultDB) { hipSetDevice(currentGpu); hipMalloc((void**)¤tGpuMem[0], sizeof(float) * numMaxFloats); hipMalloc((void**)¤tGpuMem[1], sizeof(float) * numMaxFloats); + enablePeer2Peer(peerGpu,currentGpu); hipSetDevice(peerGpu); hipMalloc((void**)&peerGpuMem[0], sizeof(float) * numMaxFloats); @@ -900,6 +901,7 @@ void RunBenchmark_P2P_Bidir(ResultDatabase& resultDB) { } disablePeer2Peer(currentGpu, peerGpu); + disablePeer2Peer(peerGpu, currentGpu); hipEventDestroy(start); hipEventDestroy(stop);