From a4b38979b65cd0ecb6ba0108813b51330063d817 Mon Sep 17 00:00:00 2001 From: Vladislav Sytchenko Date: Thu, 5 Mar 2020 13:58:37 -0500 Subject: [PATCH] Fix typos in ihipMemcpy3D() Change-Id: I8720f113642f00bb013cf46284e9b13cc932bf4a [ROCm/clr commit: aa490c96a101c3a6b5e10219e6a327a5a7b9bd5f] --- projects/clr/hipamd/vdi/hip_memory.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/projects/clr/hipamd/vdi/hip_memory.cpp b/projects/clr/hipamd/vdi/hip_memory.cpp index 33f3e150d3..07bbb7f71c 100644 --- a/projects/clr/hipamd/vdi/hip_memory.cpp +++ b/projects/clr/hipamd/vdi/hip_memory.cpp @@ -1570,7 +1570,7 @@ hipError_t ihipMemcpy3D(const hipMemcpy3DParms* p, pCopy.srcMemoryType = hipMemoryTypeArray; pCopy.srcArray = p->srcArray; // When reffering to array memory, hipPos::x is in elements. - pCopy.srcXInBytes *= hip::getElementSize(p->dstArray->Format); + pCopy.srcXInBytes *= hip::getElementSize(p->srcArray->Format); } if (p->srcPtr.ptr != nullptr) { @@ -1585,7 +1585,7 @@ hipError_t ihipMemcpy3D(const hipMemcpy3DParms* p, pCopy.dstMemoryType = hipMemoryTypeArray; pCopy.dstArray = p->dstArray; // When reffering to array memory, hipPos::x is in elements. - pCopy.srcXInBytes *= hip::getElementSize(p->dstArray->Format); + pCopy.dstXInBytes *= hip::getElementSize(p->dstArray->Format); } if (p->dstPtr.ptr != nullptr) {