|
@@ -526,14 +526,13 @@ void starpu_codelet_pack_arg_fini(struct starpu_codelet_pack_arg_data *state, vo
|
|
|
void starpu_codelet_unpack_args(void *cl_arg, ...);
|
|
|
|
|
|
/**
|
|
|
- Initialize struct starpu_codelet_pack_arg_data before calling
|
|
|
- starpu_codelet_unpack_arg(). This will pass the starpu_task->cl_arg
|
|
|
- and starpu_task->cl_arg_size to the content of struct starpu_codelet_pack_arg_data.
|
|
|
+ Initialize \p state before calling starpu_codelet_unpack_arg().
|
|
|
+ This will pass \p cl_arg and \p cl_arg_size the content of struct starpu_codelet_pack_arg_data.
|
|
|
*/
|
|
|
void starpu_codelet_unpack_arg_init(struct starpu_codelet_pack_arg_data *state, void **cl_arg, size_t *cl_arg_size);
|
|
|
|
|
|
/**
|
|
|
- Unpack one argument from struct starpu_codelet_pack_arg \p state into ptr with a copy.
|
|
|
+ Unpack one argument from struct starpu_codelet_pack_arg \p state into ptr with a copy.
|
|
|
That structure has to be initialized before with starpu_codelet_unpack_arg_init().
|
|
|
Size is stored in starpu_task->cl_arg, and it is a known parameter in this function .
|
|
|
*/
|
|
@@ -541,19 +540,20 @@ void starpu_codelet_unpack_arg(struct starpu_codelet_pack_arg_data *state, void
|
|
|
|
|
|
/**
|
|
|
Unpack one argument from struct starpu_codelet_pack_arg \p state into ptr with a copy.
|
|
|
- That structure has to be initialized before with starpu_codelet_unpack_arg_init().
|
|
|
- Size is stored in starpu_task->cl_arg, and it is an unknown parameter in this function.
|
|
|
+ That structure has to be initialized before with starpu_codelet_unpack_arg_init().
|
|
|
+ Size is stored in starpu_task->cl_arg, and it is an unknown parameter in this function.
|
|
|
It will be returned from starpu_task->cl_arg with a copy.
|
|
|
*/
|
|
|
void starpu_codelet_dup_arg(struct starpu_codelet_pack_arg_data *state, void **ptr, size_t *size);
|
|
|
|
|
|
/**
|
|
|
- Unpack one argument from struct starpu_codelet_pack_arg \p state into ptr, and the pointer of ptr will be returned.
|
|
|
- That structure has to be initialized before with starpu_codelet_unpack_arg_init().
|
|
|
- Size is stored in starpu_task->cl_arg, and it is an unknown parameter in this function.
|
|
|
+ Unpack one argument from struct starpu_codelet_pack_arg \p state
|
|
|
+ into ptr, and the pointer of ptr will be returned.
|
|
|
+ That structure has to be initialized before with starpu_codelet_unpack_arg_init().
|
|
|
+ Size is stored in starpu_task->cl_arg, and it is an unknown parameter in this function.
|
|
|
It will be returned from starpu_task->cl_arg with a copy.
|
|
|
*/
|
|
|
-void starpu_codelet_pick_arg(struct starpu_codelet_pack_arg_data *state, void **ptr, size_t *size);
|
|
|
+void starpu_codelet_pick_arg(struct starpu_codelet_pack_arg_data *state, void **ptr, size_t *size);
|
|
|
|
|
|
void starpu_codelet_unpack_arg_fini(struct starpu_codelet_pack_arg_data *state);
|
|
|
|