rocr: Set rec_sdma_eng_override_ for all gpus

Set the rec_sdma_eng_override_ for other gpus, or DmaCopyOnEngine
will use sdma for D<->D copy, which will trigger invalid argument.
Этот коммит содержится в:
Shane Xiao
2025-05-08 18:19:59 +08:00
коммит произвёл Xiao, Shane
родитель 5cc61b714d
Коммит 82a88f2e2b
+6 -4
Просмотреть файл
@@ -386,6 +386,12 @@ bool BuildTopology() {
for (auto& src_gpu : rt->gpu_agents()) {
uint32_t src_id = src_gpu->node_id();
// Set RecSdmaEngOverride to true for all gpus
if (rec_sdma_engine_override) {
((AMD::GpuAgent*)src_gpu)->SetRecSdmaEngOverride(rec_sdma_engine_override);
continue;
}
// skip the pre-loop if NumSdmaXgmiEngines != 6
if (((AMD::GpuAgent*)src_gpu)->properties().NumSdmaXgmiEngines != 6)
break;
@@ -401,10 +407,6 @@ bool BuildTopology() {
}
}
}
// skip the pre-loop if RecSdmaEngOverride is true
if (rec_sdma_engine_override)
break;
}
// Register destination agents that can SDMA gang copy for source agents