소스 검색

mpi/examples/user_datatype/my_interface.c: improve error message

Nathalie Furmento 9 년 전
부모
커밋
c537920e32
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      mpi/examples/user_datatype/my_interface.c

+ 2 - 2
mpi/examples/user_datatype/my_interface.c

@@ -145,7 +145,7 @@ static int data_pack_data(starpu_data_handle_t handle, unsigned node, void **ptr
 	(node);
 	(ptr);
 	(count);
-	STARPU_ASSERT_MSG(0, "This function should not be called\n");
+	STARPU_ASSERT_MSG(0, "The data interface has been registered with starpu_mpi_datatype_register(). Calling the pack_data function should not happen\n");
 }
 
 static int data_unpack_data(starpu_data_handle_t handle, unsigned node, void *ptr, size_t count)
@@ -154,7 +154,7 @@ static int data_unpack_data(starpu_data_handle_t handle, unsigned node, void *pt
 	(node);
 	(ptr);
 	(count);
-	STARPU_ASSERT_MSG(0, "This function should not be called\n");
+	STARPU_ASSERT_MSG(0, "The data interface has been registered with starpu_mpi_datatype_register(). Calling the unpack_data function should not happen\n");
 }
 
 static starpu_ssize_t data_describe(void *data_interface, char *buf, size_t size)