Przeglądaj źródła

Documentation : starpu_opencl_set_kernel_args

Cyril Roelandt 13 lat temu
rodzic
commit
f411f19cdc
1 zmienionych plików z 9 dodań i 0 usunięć
  1. 9 0
      doc/chapters/basic-api.texi

+ 9 - 0
doc/chapters/basic-api.texi

@@ -1637,6 +1637,15 @@ todo
 todo
 @end deftypefun
 
+@deftypefun int starpu_opencl_set_kernel_args({cl_int *}@var{err}, {cl_kernel
+*}@var{kernel}, ...)
+Sets the arguments of a given kernel. The list of arguments must be given as
+({size_t} @var{size_of_the_argument}, {cl_mem *}
+@var{pointer_to_the_argument}). The last argument must be 0. Returns the number
+of arguments that were successfully set. In case of failure, @var{err} is set
+to the error returned by OpenCL.
+@end deftypefun
+
 @node Compiling OpenCL kernels
 @subsection Compiling OpenCL kernels