rocr: Fix backwards compatible host-device copies on target engines

If the KFD doesn't support targeting SDMA engines, ensure that ROCr
selects the correct downstream queue type by using an invalid engine.

Change-Id: Ia6848126f67f3d35ab37248633e8e0e6e2d77fff


[ROCm/ROCR-Runtime commit: 24b25003b0]
This commit is contained in:
Jonathan Kim
2024-09-05 09:53:07 -04:00
والد 9d797771b5
کامیت 9e58f63b9f
@@ -825,6 +825,13 @@ void GpuAgent::InitDma() {
*blits_[BlitHostToDev];
}
// Check support for targeted SDMA engines
auto kfd_version = core::Runtime::runtime_singleton_->KfdVersion().version;
if (!(kfd_version.KernelInterfaceMajorVersion > 1 ||
(kfd_version.KernelInterfaceMajorVersion == 1 &&
kfd_version.KernelInterfaceMinorVersion >= 17)))
rec_eng = -1;
auto ret = CreateBlitSdma(use_xgmi, rec_eng);
if (ret != nullptr) return ret;
}