From 1c45f257b9093c55337d2c968dc3d72fdb29d878 Mon Sep 17 00:00:00 2001 From: Maneesh Gupta Date: Thu, 17 Nov 2022 01:04:34 -0500 Subject: [PATCH] Revert "SWDEV-363069 - Disable sync force for MT" This reverts commit 52ff4368e58ae25139413acb9b7c425e542a3b81. Reason for revert: SWDEV-365075, SWDEV-367163, SWDEV-367164, SWDEV-367173 Change-Id: Id2924c60e46e9879038ded358f777c71cd95b2c1 --- hipamd/src/hip_memory.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/hipamd/src/hip_memory.cpp b/hipamd/src/hip_memory.cpp index 73d6204242..8d9bf1c5ad 100644 --- a/hipamd/src/hip_memory.cpp +++ b/hipamd/src/hip_memory.cpp @@ -446,13 +446,9 @@ hipError_t ihipMemcpy(void* dst, const void* src, size_t sizeBytes, hipMemcpyKin return hipErrorInvalidValue; } } else if ((srcMemory == nullptr) && (dstMemory != nullptr)) { - if (AMD_DIRECT_DISPATCH) { - isAsync = false; - } + isAsync = false; } else if ((srcMemory != nullptr) && (dstMemory == nullptr)) { - if (AMD_DIRECT_DISPATCH) { - isAsync = false; - } + isAsync = false; } amd::Command* command = nullptr; status = ihipMemcpyCommand(command, dst, src, sizeBytes, kind, queue);