rocr: Reverse host-device copy engines on GFX94x

GFX 9.4.x has better performance for CPU-GPU copies when using
engines in reverse order from other devices.

Change-Id: I1eaebf0e837bb7f44712f40d5115df618f6a73d7


[ROCm/ROCR-Runtime commit: 509e8d863a]
This commit is contained in:
Jonathan Kim
2024-09-05 11:16:34 -04:00
orang tua 9e58f63b9f
melakukan 2ecc057548
@@ -825,6 +825,10 @@ void GpuAgent::InitDma() {
*blits_[BlitHostToDev];
}
// gfx94x is more efficient with reverse order of SDMA0/1 for host<->device copies
if (!use_xgmi && isa_->GetMajorVersion() == 9 && isa_->GetMinorVersion() >= 4)
rec_eng = (rec_eng + 1) % properties_.NumSdmaEngines;
// Check support for targeted SDMA engines
auto kfd_version = core::Runtime::runtime_singleton_->KfdVersion().version;
if (!(kfd_version.KernelInterfaceMajorVersion > 1 ||