|
@@ -454,23 +454,27 @@ Register the @var{size}-byte element pointed to by @var{ptr}, which is
|
|
|
typically a scalar, and initialize @var{handle} to represent this data
|
|
|
item.
|
|
|
|
|
|
+@cartouche
|
|
|
@smallexample
|
|
|
float var;
|
|
|
starpu_data_handle_t var_handle;
|
|
|
starpu_variable_data_register(&var_handle, 0, (uintptr_t)&var, sizeof(var));
|
|
|
@end smallexample
|
|
|
+@end cartouche
|
|
|
@end deftypefun
|
|
|
|
|
|
@deftypefun void starpu_vector_data_register ({starpu_data_handle_t *}@var{handle}, uint32_t @var{home_node}, uintptr_t @var{ptr}, uint32_t @var{count}, size_t @var{size})
|
|
|
Register the @var{count} @var{size}-byte elements pointed to by
|
|
|
@var{ptr} and initialize @var{handle} to represent it.
|
|
|
|
|
|
-@example
|
|
|
+@cartouche
|
|
|
+@smallexample
|
|
|
float vector[NX];
|
|
|
starpu_data_handle_t vector_handle;
|
|
|
starpu_vector_data_register(&vector_handle, 0, (uintptr_t)vector, NX,
|
|
|
sizeof(vector[0]));
|
|
|
-@end example
|
|
|
+@end smallexample
|
|
|
+@end cartouche
|
|
|
@end deftypefun
|
|
|
|
|
|
@deftypefun void starpu_matrix_data_register ({starpu_data_handle_t *}@var{handle}, uint32_t @var{home_node}, uintptr_t @var{ptr}, uint32_t @var{ld}, uint32_t @var{nx}, uint32_t @var{ny}, size_t @var{size})
|
|
@@ -480,13 +484,15 @@ pointed by @var{ptr} and initialize @var{handle} to represent it.
|
|
|
each row; a non-zero @var{ld} adds padding, which can be useful for
|
|
|
alignment purposes.
|
|
|
|
|
|
-@example
|
|
|
+@cartouche
|
|
|
+@smallexample
|
|
|
float *matrix;
|
|
|
starpu_data_handle_t matrix_handle;
|
|
|
matrix = (float*)malloc(width * height * sizeof(float));
|
|
|
starpu_matrix_data_register(&matrix_handle, 0, (uintptr_t)matrix,
|
|
|
width, width, height, sizeof(float));
|
|
|
-@end example
|
|
|
+@end smallexample
|
|
|
+@end cartouche
|
|
|
@end deftypefun
|
|
|
|
|
|
@deftypefun void starpu_block_data_register ({starpu_data_handle_t *}@var{handle}, uint32_t @var{home_node}, uintptr_t @var{ptr}, uint32_t @var{ldy}, uint32_t @var{ldz}, uint32_t @var{nx}, uint32_t @var{ny}, uint32_t @var{nz}, size_t @var{size})
|
|
@@ -495,13 +501,15 @@ elements pointed by @var{ptr} and initialize @var{handle} to represent
|
|
|
it. Again, @var{ldy} and @var{ldz} specify the number of extra elements
|
|
|
present at the end of each row or column.
|
|
|
|
|
|
-@example
|
|
|
+@cartouche
|
|
|
+@smallexample
|
|
|
float *block;
|
|
|
starpu_data_handle_t block_handle;
|
|
|
block = (float*)malloc(nx*ny*nz*sizeof(float));
|
|
|
starpu_block_data_register(&block_handle, 0, (uintptr_t)block,
|
|
|
nx, nx*ny, nx, ny, nz, sizeof(float));
|
|
|
-@end example
|
|
|
+@end smallexample
|
|
|
+@end cartouche
|
|
|
@end deftypefun
|
|
|
|
|
|
@deftypefun void starpu_bcsr_data_register (starpu_data_handle_t *@var{handle}, uint32_t @var{home_node}, uint32_t @var{nnz}, uint32_t @var{nrow}, uintptr_t @var{nzval}, uint32_t *@var{colind}, uint32_t *@var{rowptr}, uint32_t @var{firstentry}, uint32_t @var{r}, uint32_t @var{c}, size_t @var{elemsize})
|
|
@@ -1351,11 +1359,11 @@ typically need to be explicitly casted. Using the
|
|
|
@code{starpu_tag_declare_deps_array} function avoids this hazard.
|
|
|
|
|
|
@cartouche
|
|
|
-@example
|
|
|
+@smallexample
|
|
|
/* Tag 0x1 depends on tags 0x32 and 0x52 */
|
|
|
starpu_tag_declare_deps((starpu_tag_t)0x1,
|
|
|
2, (starpu_tag_t)0x32, (starpu_tag_t)0x52);
|
|
|
-@end example
|
|
|
+@end smallexample
|
|
|
@end cartouche
|
|
|
@end deftypefun
|
|
|
|
|
@@ -1364,11 +1372,11 @@ This function is similar to @code{starpu_tag_declare_deps}, except
|
|
|
that its does not take a variable number of arguments but an array of
|
|
|
tags of size @var{ndeps}.
|
|
|
@cartouche
|
|
|
-@example
|
|
|
+@smallexample
|
|
|
/* Tag 0x1 depends on tags 0x32 and 0x52 */
|
|
|
starpu_tag_t tag_array[2] = @{0x32, 0x52@};
|
|
|
starpu_tag_declare_deps_array((starpu_tag_t)0x1, 2, tag_array);
|
|
|
-@end example
|
|
|
+@end smallexample
|
|
|
@end cartouche
|
|
|
@end deftypefun
|
|
|
|