diff --git a/rocclr/device/rocm/rocprintf.cpp b/rocclr/device/rocm/rocprintf.cpp index b9e2b3dfec..1e684516c1 100644 --- a/rocclr/device/rocm/rocprintf.cpp +++ b/rocclr/device/rocm/rocprintf.cpp @@ -47,7 +47,7 @@ bool PrintfDbg::allocate(bool realloc) { // Double the buffer size if it's not big enough dev().hostFree(dbgBuffer_, dbgBuffer_size_); dbgBuffer_size_ = dbgBuffer_size_ << 1; - dbgBuffer_ = reinterpret_cast
(dbgBuffer_size_, sizeof(void*)); + dbgBuffer_ = reinterpret_cast(dev().hostAlloc(dbgBuffer_size_, sizeof(void*))); } return (nullptr != dbgBuffer_) ? true : false;