浏览代码

Documentation : starpu_opencl_set_kernel_args

Cyril Roelandt 13 年之前
父节点
当前提交
f411f19cdc
共有 1 个文件被更改,包括 9 次插入0 次删除
  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