From f56a052243013d6a4294342fa1f437e2aa9f37a6 Mon Sep 17 00:00:00 2001 From: German Andryeyev Date: Fri, 15 May 2020 16:17:14 -0400 Subject: [PATCH] Add missing memory allocation in printf Change-Id: I452b676612b54f70106e7ef1bcb5ce2baf7b3ffc --- rocclr/device/rocm/rocprintf.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;