소스 검색

Print msg when Init fails

Corentin Salingue 8 년 전
부모
커밋
69ba48ac8e
1개의 변경된 파일4개의 추가작업 그리고 1개의 파일을 삭제
  1. 4 1
      src/drivers/mpi/driver_mpi_common.c

+ 4 - 1
src/drivers/mpi/driver_mpi_common.c

@@ -80,7 +80,10 @@ int _starpu_mpi_common_mp_init()
 #endif
 #endif
 
 
                 int thread_support;
                 int thread_support;
-                STARPU_ASSERT(MPI_Init_thread(_starpu_get_argc(), _starpu_get_argv(), required, &thread_support) == MPI_SUCCESS);
+                if (MPI_Init_thread(_starpu_get_argc(), _starpu_get_argv(), required, &thread_support) != MPI_SUCCESS);
+		{
+			STARPU_ABORT_MSG("Cannot Initialize MPI !");
+		}
 
 
                 if (thread_support != required)
                 if (thread_support != required)
                 {
                 {