From 774a10201ffaa80dca940312f927985b26253e45 Mon Sep 17 00:00:00 2001 From: Jaydeep Patel Date: Wed, 5 Jun 2024 06:47:49 +0000 Subject: [PATCH] SWDEV-465461 - Use command's queue instead as it might be changed while constructing memcpy command on MGPU. Change-Id: Ia6ac40289e1eea320925203cbd52b30f3b64ad2b --- hipamd/src/hip_memory.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hipamd/src/hip_memory.cpp b/hipamd/src/hip_memory.cpp index be6ab458d1..dcf79badb2 100644 --- a/hipamd/src/hip_memory.cpp +++ b/hipamd/src/hip_memory.cpp @@ -548,7 +548,7 @@ hipError_t ihipMemcpy(void* dst, const void* src, size_t sizeBytes, hipMemcpyKin } command->enqueue(); if (!isHostAsync) { - stream.finish(); + command->queue()->finish(); } else if (!isGPUAsync) { hip::Stream* pStream = hip::getNullStream(dstMemory->GetDeviceById()->context()); amd::Command::EventWaitList waitList;