From 6f51b49ef8b5a29845d09ad92a0b26c33445a67c Mon Sep 17 00:00:00 2001 From: Peter Boyle Date: Mon, 22 Jan 2024 17:41:09 -0500 Subject: [PATCH] Use stderr --- Grid/threads/Accelerator.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Grid/threads/Accelerator.h b/Grid/threads/Accelerator.h index f36bb5b1..c52afebc 100644 --- a/Grid/threads/Accelerator.h +++ b/Grid/threads/Accelerator.h @@ -478,7 +478,7 @@ inline void *acceleratorAllocShared(size_t bytes) auto err = hipMallocManaged((void **)&ptr,bytes); if( err != hipSuccess ) { ptr = (void *) NULL; - printf(" hipMallocManaged failed for %ld %s \n",bytes,hipGetErrorString(err)); + fprintf(stderr," hipMallocManaged failed for %ld %s \n",bytes,hipGetErrorString(err)); fflush(stderr); } return ptr; }; @@ -490,7 +490,7 @@ inline void *acceleratorAllocDevice(size_t bytes) auto err = hipMalloc((void **)&ptr,bytes); if( err != hipSuccess ) { ptr = (void *) NULL; - printf(" hipMalloc failed for %ld %s \n",bytes,hipGetErrorString(err)); + fprintf(stderr," hipMalloc failed for %ld %s \n",bytes,hipGetErrorString(err)); fflush(stderr); } return ptr; };