浏览代码

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)