Use user requested engine ID when forcing SDMA copies

When forcing SDMA copies, engine ID specified by the requester should
still be used since the requester has hint of engine availability.

Change-Id: Idefa9494e407e31da510aa4c7c1fa283c85a4f6e


[ROCm/ROCR-Runtime commit: a36856b02a]
This commit is contained in:
Jonathan Kim
2023-10-12 15:03:49 -04:00
والد dc0cfa8a54
کامیت 9a0c51ae92
@@ -1043,8 +1043,7 @@ hsa_status_t GpuAgent::DmaCopyOnEngine(void* dst, core::Agent& dst_agent,
return HSA_STATUS_ERROR_INVALID_ARGUMENT;
}
engine_offset = is_same_gpu ?(force_copy_on_sdma ? BlitDevToHost :
BlitDevToDev) : engine_offset;
engine_offset = is_same_gpu && !force_copy_on_sdma ? BlitDevToDev : engine_offset;
}
SetCopyRequestRefCount(true);