Преглед на файлове

Call STARPU_CUBLAS_REPORT_ERROR upon failure of a function from the CUBLAS library

The Coccinelle script could not catch these, because the functions they are found in are named using a macro: Coccinelle still has trouble parsing these functions.
Cyril Roelandt преди 12 години
родител
ревизия
18b1f16e45
променени са 1 файла, в които са добавени 3 реда и са изтрити 3 реда
  1. 3 3
      mpi/examples/mpi_lu/pxlu_kernels.c

+ 3 - 3
mpi/examples/mpi_lu/pxlu_kernels.c

@@ -68,7 +68,7 @@ static inline void STARPU_PLU(common_u22)(void *descr[],
 
 			status = cublasGetError();
 			if (STARPU_UNLIKELY(status != CUBLAS_STATUS_SUCCESS))
-				STARPU_ABORT();
+				STARPU_CUBLAS_REPORT_ERROR(status);
 
 			if (STARPU_UNLIKELY((cures = cudaStreamSynchronize(starpu_cuda_get_local_stream())) != cudaSuccess))
 				STARPU_CUDA_REPORT_ERROR(cures);
@@ -173,7 +173,7 @@ static inline void STARPU_PLU(common_u12)(void *descr[],
 
 			status = cublasGetError();
 			if (STARPU_UNLIKELY(status != CUBLAS_STATUS_SUCCESS))
-				STARPU_ABORT();
+				STARPU_CUBLAS_REPORT_ERROR(status);
 
 			if (STARPU_UNLIKELY((cures = cudaStreamSynchronize(starpu_cuda_get_local_stream())) != cudaSuccess))
 				STARPU_CUDA_REPORT_ERROR(cures);
@@ -280,7 +280,7 @@ static inline void STARPU_PLU(common_u21)(void *descr[],
 
 			status = cublasGetError();
 			if (status != CUBLAS_STATUS_SUCCESS)
-				STARPU_ABORT();
+				STARPU_CUBLAS_REPORT_ERROR(status);
 
 			cudaStreamSynchronize(starpu_cuda_get_local_stream());