From e3f6a5fa0da7a709c1d385251c8e2c7df8756b3f Mon Sep 17 00:00:00 2001 From: German Date: Fri, 21 Oct 2022 15:55:23 -0400 Subject: [PATCH] SWDEV-363069 - Disable sync force for MT hipMemcpyAsync doesn't require any forced sync even for sysmem Change-Id: I83951f6118e84d79c74d5671df62678c5db085a8 [ROCm/clr commit: 52ff4368e58ae25139413acb9b7c425e542a3b81] --- projects/clr/hipamd/src/hip_memory.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/projects/clr/hipamd/src/hip_memory.cpp b/projects/clr/hipamd/src/hip_memory.cpp index 80e605ba4f..02ff675544 100644 --- a/projects/clr/hipamd/src/hip_memory.cpp +++ b/projects/clr/hipamd/src/hip_memory.cpp @@ -446,9 +446,13 @@ hipError_t ihipMemcpy(void* dst, const void* src, size_t sizeBytes, hipMemcpyKin return hipErrorInvalidValue; } } else if ((srcMemory == nullptr) && (dstMemory != nullptr)) { - isAsync = false; + if (AMD_DIRECT_DISPATCH) { + isAsync = false; + } } else if ((srcMemory != nullptr) && (dstMemory == nullptr)) { - isAsync = false; + if (AMD_DIRECT_DISPATCH) { + isAsync = false; + } } amd::Command* command = nullptr; status = ihipMemcpyCommand(command, dst, src, sizeBytes, kind, queue);