diff --git a/projects/hip/rocclr/hip_memory.cpp b/projects/hip/rocclr/hip_memory.cpp index 235574fedb..826183a59a 100755 --- a/projects/hip/rocclr/hip_memory.cpp +++ b/projects/hip/rocclr/hip_memory.cpp @@ -1687,7 +1687,7 @@ hipError_t ihipMemset(void* dst, int64_t value, size_t valueSize, size_t sizeByt size_t offset = 0; auto aligned_dst = amd::alignUp(reinterpret_cast
(dst), sizeof(uint64_t)); - amd::Memory* memory = getMemoryObject(aligned_dst, offset); + amd::Memory* memory = getMemoryObject(dst, offset); if (memory == nullptr) { // Host alloced memory memset(dst, value, sizeBytes); @@ -1703,6 +1703,7 @@ hipError_t ihipMemset(void* dst, int64_t value, size_t valueSize, size_t sizeByt if (sizeBytes/sizeof(int64_t) > 0) { n_head_bytes = static_cast