diff --git a/runtime/hsa-runtime/core/runtime/amd_gpu_agent.cpp b/runtime/hsa-runtime/core/runtime/amd_gpu_agent.cpp index f4ac5ca7cc..692ec8ba03 100644 --- a/runtime/hsa-runtime/core/runtime/amd_gpu_agent.cpp +++ b/runtime/hsa-runtime/core/runtime/amd_gpu_agent.cpp @@ -930,8 +930,8 @@ hsa_status_t GpuAgent::DmaCopyStatus(core::Agent& dst_agent, core::Agent& src_ag if (!!!blits_[BlitDevToHost]->PendingBytes()) { *engine_ids_mask |= properties_.NumSdmaEngines > 1 ? - HSA_AMD_SDMA_ENGINE_1 : - HSA_AMD_SDMA_ENGINE_0; + HSA_AMD_SDMA_ENGINE_1 : + HSA_AMD_SDMA_ENGINE_0; } // Find a free xGMI SDMA engine for H2D/D2H though it may be lower bandwidth for (int i = 0; i < properties_.NumSdmaXgmiEngines; i++) {