diff --git a/rocclr/runtime/device/rocm/rocblit.cpp b/rocclr/runtime/device/rocm/rocblit.cpp index ba8cf926fd..fe3851b163 100644 --- a/rocclr/runtime/device/rocm/rocblit.cpp +++ b/rocclr/runtime/device/rocm/rocblit.cpp @@ -2063,7 +2063,7 @@ KernelBlitManager::fillBuffer( if (gpuCB == NULL) { return false; } - void* constBuf = gpuCB->getDeviceMemory(); + void* constBuf = constantBuffer_->getHostMem(); memcpy(constBuf, pattern, patternSize); mem = as_cl(gpuCB->owner());