Browse Source

Make STARPU_OPENCL_REPORT_ERROR abort the program, just like STARPU_CUDA_REPORT_ERROR.

Cyril Roelandt 13 years ago
parent
commit
d5a4e0c455
1 changed files with 2 additions and 2 deletions
  1. 2 2
      include/starpu_opencl.h

+ 2 - 2
include/starpu_opencl.h

@@ -41,10 +41,10 @@ static inline void starpu_opencl_report_error(const char *func, const char *file
         assert(0);
 }
 #define STARPU_OPENCL_REPORT_ERROR(status)			\
-	starpu_opencl_display_error(__starpu_func__, __FILE__, __LINE__, NULL, status)
+	starpu_opencl_report_error(__starpu_func__, __FILE__, __LINE__, NULL, status)
 
 #define STARPU_OPENCL_REPORT_ERROR_WITH_MSG(msg, status)			\
-	starpu_opencl_display_error(__starpu_func__, __FILE__, __LINE__, msg, status)
+	starpu_opencl_report_error(__starpu_func__, __FILE__, __LINE__, msg, status)
 
 struct starpu_opencl_program
 {