diff --git a/runtime/hsa-runtime/core/runtime/amd_gpu_agent.cpp b/runtime/hsa-runtime/core/runtime/amd_gpu_agent.cpp index ba4d804482..3c3a7ebc5f 100644 --- a/runtime/hsa-runtime/core/runtime/amd_gpu_agent.cpp +++ b/runtime/hsa-runtime/core/runtime/amd_gpu_agent.cpp @@ -896,6 +896,7 @@ hsa_status_t GpuAgent::DmaCopy(void* dst, core::Agent& dst_agent, if (dst_agent.public_handle().handle == peer_info.first.public_handle().handle) { tmp_gang_factor = peer_info.second; + break; } }