From 8daacf94bf20b3406b0382f82dcb633ba67d4cf2 Mon Sep 17 00:00:00 2001
From: Yifan Zhao <yifanz16@illinois.edu>
Date: Tue, 27 Apr 2021 14:49:07 -0500
Subject: [PATCH] ERROR() should print to stderr so it's always seen

---
 hpvm/projects/hpvm-tensor-rt/tensor_runtime/src/debug.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/hpvm/projects/hpvm-tensor-rt/tensor_runtime/src/debug.cpp b/hpvm/projects/hpvm-tensor-rt/tensor_runtime/src/debug.cpp
index 8e5e1fe968..2fdeb2f55b 100644
--- a/hpvm/projects/hpvm-tensor-rt/tensor_runtime/src/debug.cpp
+++ b/hpvm/projects/hpvm-tensor-rt/tensor_runtime/src/debug.cpp
@@ -32,8 +32,8 @@ void ERROR(const char *format, ...) {
     return;
   va_list args;
   va_start(args, format);
-  printf("ERROR!: ");
-  vprintf(format, args);
+  fprintf(stderr, "ERROR!: ");
+  vfprintf(stderr, format, args);
   va_end(args);
 
   abort();
-- 
GitLab