CLARG_SET(3)          Standard Compute Layer (CL) Manual          CLARG_SET(3)



NAME
       clarg_set, clarg_set_global, clarg_set_local - Set CL kernel arguments

SYNOPSIS
       #include <stdcl.h>

       void clarg_set( cl_kernel krn, unsigned int argnum, Tn arg);

       void clarg_set_global( cl_kernel krn, unsigned int argnum, void* ptr);

       void  clarg_set_local(  cl_kernel  krn,  unsigned  int  argnum,  size_t
       sizeb);

DESCRIPTION
       clarg_set(), clarg_set_global() and clarg_set_local() are used  to  set
       the argnum argument of the CL kernel krn prior to kernel execution.

       clarg_set()  is  used  for  setting arguments of intrinsic type such as
       cl_int, cl_float or cl_float4, etc.  For  clarg_set()  Tn  can  be  any
       valid scalar or vector type.

       clarg_set_global  is  used  for setting arguments of pointers to global
       memory where ptr points to memory that was allocated using  a  call  to
       clmalloc() and attached to the CL context of the target kernel.

       clarg_set_local()  is  used  for setting arguments of pointers to local
       memory where sizeb indicates the size in bytes of the local memory that
       is to be allocated.

AUTHOR
       Written by David Richie.

REPORTING BUGS
       Report bugs to <support@browndeertechnology.com>

COPYRIGHT
       Copyright  (C) 2009 Brown Deer Technology, LLC.  Licensed under the GNU
       Lesser General Public License version 3 (LGPLv3).  There is NO WARRANTY
       to the extent permitted by law.

SEE ALSO
       clfork(3), clsym(3), clmalloc(3), stdcl(3)



libstdcl-0.7                      2009-11-10                      CLARG_SET(3)