Quellcode durchsuchen

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 vor 12 Jahren
Ursprung
Commit
18b1f16e45
1 geänderte Dateien mit 3 neuen und 3 gelöschten Zeilen
  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());