浏览代码

src/drivers/cuda/driver_cuda.c: use fprintf when printing error message

Nathalie Furmento 13 年之前
父节点
当前提交
70ea706e6a
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/drivers/cuda/driver_cuda.c

+ 1 - 1
src/drivers/cuda/driver_cuda.c

@@ -507,7 +507,7 @@ void starpu_cublas_report_error(const char *func, const char *file, int line, cu
 			errormsg = "unknown error";
 			break;
 	}
-	printf("oops in %s (%s:%u)... %d: %s \n", func, file, line, status, errormsg);
+	fprintf(stderr, "oops in %s (%s:%u)... %d: %s \n", func, file, line, status, errormsg);
 	STARPU_ASSERT(0);
 }