Correct the SDMA engine mask reported on apu

There is only one SDMA instance on small APUs.

Change-Id: I9d4dda511c40fc78f002be720e5f1909dc5b91e4


[ROCm/ROCR-Runtime commit: 557da77c4e]
This commit is contained in:
Xiaomeng Hou
2023-06-02 19:10:08 +08:00
والد 9c54cdaaf1
کامیت 381ea164ba
@@ -926,7 +926,9 @@ hsa_status_t GpuAgent::DmaCopyStatus(core::Agent& dst_agent, core::Agent& src_ag
}
if (!!!blits_[BlitDevToHost]->PendingBytes()) {
*engine_ids_mask |= HSA_AMD_SDMA_ENGINE_1;
*engine_ids_mask |= properties_.NumSdmaEngines > 1 ?
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++) {