diff --git a/projects/hip/samples/1_Utils/hipBusBandwidth/hipBusBandwidth.cpp b/projects/hip/samples/1_Utils/hipBusBandwidth/hipBusBandwidth.cpp index bbeddf2f48..9e61e018e8 100644 --- a/projects/hip/samples/1_Utils/hipBusBandwidth/hipBusBandwidth.cpp +++ b/projects/hip/samples/1_Utils/hipBusBandwidth/hipBusBandwidth.cpp @@ -812,6 +812,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); @@ -899,6 +900,7 @@ void RunBenchmark_P2P_Bidir(ResultDatabase& resultDB) { } disablePeer2Peer(currentGpu, peerGpu); + disablePeer2Peer(peerGpu, currentGpu); hipEventDestroy(start); hipEventDestroy(stop);