HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
cl::Kernel Class Reference

Kernel interface that implements cl_kernel. More...

#include <cl.hpp>

+ Inheritance diagram for cl::Kernel:

Public Member Functions

 Kernel (const Program &program, const char *name, cl_int *err=NULL)
 
 Kernel ()
 
 Kernel (const Kernel &kernel)
 
 Kernel (const cl_kernel &kernel)
 
Kerneloperator= (const Kernel &rhs)
 
Kerneloperator= (const cl_kernel &rhs)
 
template<typename T >
cl_int getInfo (cl_kernel_info name, T *param) const
 
template<cl_int name>
detail::param_traits
< detail::cl_kernel_info, name >
::param_type 
getInfo (cl_int *err=NULL) const
 
template<typename T >
cl_int getWorkGroupInfo (const Device &device, cl_kernel_work_group_info name, T *param) const
 
template<cl_int name>
detail::param_traits
< detail::cl_kernel_work_group_info,
name >::param_type 
getWorkGroupInfo (const Device &device, cl_int *err=NULL) const
 
template<typename T >
cl_int setArg (cl_uint index, T value)
 
cl_int setArg (cl_uint index,::size_t size, void *argPtr)
 
KernelFunctor bind (const CommandQueue &queue, const NDRange &offset, const NDRange &global, const NDRange &local)
 
KernelFunctor bind (const CommandQueue &queue, const NDRange &global, const NDRange &local)
 
- Public Member Functions inherited from cl::detail::Wrapper< cl_kernel >
 Wrapper ()
 
 Wrapper (const cl_type &obj)
 
 Wrapper (const Wrapper< cl_type > &rhs)
 
 ~Wrapper ()
 
Wrapper< cl_type > & operator= (const Wrapper< cl_type > &rhs)
 
Wrapper< cl_type > & operator= (const cl_type &rhs)
 
cl_type operator() () const
 
cl_typeoperator() ()
 

Additional Inherited Members

- Public Types inherited from cl::detail::Wrapper< cl_kernel >
typedef cl_kernel cl_type
 
- Protected Member Functions inherited from cl::detail::Wrapper< cl_kernel >
cl_int retain () const
 
cl_int release () const
 
- Protected Attributes inherited from cl::detail::Wrapper< cl_kernel >
cl_type object_
 

Detailed Description

Kernel interface that implements cl_kernel.

Definition at line 2534 of file cl.hpp.

Constructor & Destructor Documentation

cl::Kernel::Kernel ( const Program program,
const char *  name,
cl_int *  err = NULL 
)
inline

Definition at line 2824 of file cl.hpp.

cl::Kernel::Kernel ( )
inline

Definition at line 2539 of file cl.hpp.

cl::Kernel::Kernel ( const Kernel kernel)
inline

Definition at line 2541 of file cl.hpp.

cl::Kernel::Kernel ( const cl_kernel kernel)
inline

Definition at line 2543 of file cl.hpp.

Member Function Documentation

KernelFunctor cl::Kernel::bind ( const CommandQueue queue,
const NDRange offset,
const NDRange global,
const NDRange local 
)
inline

Definition at line 3792 of file cl.hpp.

KernelFunctor cl::Kernel::bind ( const CommandQueue queue,
const NDRange global,
const NDRange local 
)
inline

Definition at line 3801 of file cl.hpp.

template<typename T >
cl_int cl::Kernel::getInfo ( cl_kernel_info  name,
T *  param 
) const
inline

Definition at line 2560 of file cl.hpp.

template<cl_int name>
detail::param_traits<detail::cl_kernel_info, name>::param_type cl::Kernel::getInfo ( cl_int *  err = NULL) const
inline

Definition at line 2569 of file cl.hpp.

template<typename T >
cl_int cl::Kernel::getWorkGroupInfo ( const Device device,
cl_kernel_work_group_info  name,
T *  param 
) const
inline

Definition at line 2581 of file cl.hpp.

template<cl_int name>
detail::param_traits<detail::cl_kernel_work_group_info, name>::param_type cl::Kernel::getWorkGroupInfo ( const Device device,
cl_int *  err = NULL 
) const
inline

Definition at line 2592 of file cl.hpp.

Kernel& cl::Kernel::operator= ( const Kernel rhs)
inline

Definition at line 2545 of file cl.hpp.

Kernel& cl::Kernel::operator= ( const cl_kernel rhs)
inline

Definition at line 2553 of file cl.hpp.

template<typename T >
cl_int cl::Kernel::setArg ( cl_uint  index,
value 
)
inline

Definition at line 2604 of file cl.hpp.

cl_int cl::Kernel::setArg ( cl_uint  index,
::size_t  size,
void argPtr 
)
inline

Definition at line 2615 of file cl.hpp.


The documentation for this class was generated from the following file: