SWDEV-441603 - Correct dst device

Signed-off-by: sdashmiz <shadi.dashmiz@amd.com>
Change-Id: Ie60aa598dd73df66cdf02c1d96daf2dfccba7a59
This commit is contained in:
sdashmiz
2024-03-25 15:06:02 -04:00
committed by Shadi Dashmiz
parent d7b0d78fad
commit d511e57257
+1 -1
View File
@@ -2263,7 +2263,7 @@ void ihipCopyMemParamSet(const HIP_MEMCPY3D* pCopy, hipMemoryType& srcMemType,
hipMemoryTypeHost;
if (dstMemoryType == hipMemoryTypeDevice) {
const_cast<HIP_MEMCPY3D*>(pCopy)->dstDevice = const_cast<void*>(pCopy->dstDevice);
const_cast<HIP_MEMCPY3D*>(pCopy)->dstDevice = const_cast<void*>(pCopy->dstHost);
}
}
srcMemType = srcMemoryType;