소스 검색

Make STARPU_OPENCL_REPORT_ERROR abort the program, just like STARPU_CUDA_REPORT_ERROR.

Cyril Roelandt 13 년 전
부모
커밋
d5a4e0c455
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  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);
         assert(0);
 }
 }
 #define STARPU_OPENCL_REPORT_ERROR(status)			\
 #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)			\
 #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
 struct starpu_opencl_program
 {
 {