소스 검색

mpi/src/starpu_mpi.c: add more information to debug message and TODO

Nathalie Furmento 12 년 전
부모
커밋
f32f3e7125
1개의 변경된 파일4개의 추가작업 그리고 1개의 파일을 삭제
  1. 4 1
      mpi/src/starpu_mpi.c

+ 4 - 1
mpi/src/starpu_mpi.c

@@ -254,7 +254,10 @@ static void _starpu_mpi_irecv_size_callback(void *arg)
 
 	starpu_data_unregister(callback->handle);
 	callback->req->ptr = malloc(callback->req->count);
-	STARPU_ASSERT(callback->req->ptr);
+#ifdef STARPU_DEVEL
+#warning TODO: in some cases, callback->req->count is incorrect, we need to fix that
+#endif
+	STARPU_ASSERT_MSG(callback->req->ptr, "cannot allocate message of size %ld\n", callback->req->count);
 	_starpu_mpi_irecv_data_func(callback->req);
 	free(callback);
 }