diff --git a/projects/clr/rocclr/runtime/device/gpu/gpuprintf.cpp b/projects/clr/rocclr/runtime/device/gpu/gpuprintf.cpp index ee4d41bf02..03cafde33b 100644 --- a/projects/clr/rocclr/runtime/device/gpu/gpuprintf.cpp +++ b/projects/clr/rocclr/runtime/device/gpu/gpuprintf.cpp @@ -659,6 +659,7 @@ PrintfDbgHSA::output( if (offsetSize == 0) { LogError("\n The printf buffer is empty!"); + dev().xferRead().release(gpu, *xferBufRead_); return false; } diff --git a/projects/clr/rocclr/runtime/device/pal/palprintf.cpp b/projects/clr/rocclr/runtime/device/pal/palprintf.cpp index 1d81036668..3b0f1d4b14 100644 --- a/projects/clr/rocclr/runtime/device/pal/palprintf.cpp +++ b/projects/clr/rocclr/runtime/device/pal/palprintf.cpp @@ -652,6 +652,7 @@ PrintfDbgHSA::output( if (offsetSize == 0) { LogError("\n The printf buffer is empty!"); + dev().xferRead().release(gpu, *xferBufRead_); return false; }