HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups 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 2544 of file cl.hpp.

Constructor & Destructor Documentation

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

Definition at line 2834 of file cl.hpp.

cl::Kernel::Kernel ( )
inline

Definition at line 2549 of file cl.hpp.

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

Definition at line 2551 of file cl.hpp.

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

Definition at line 2553 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 3838 of file cl.hpp.

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

Definition at line 3847 of file cl.hpp.

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

Definition at line 2570 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 2579 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 2591 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 2602 of file cl.hpp.

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

Definition at line 2555 of file cl.hpp.

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

Definition at line 2563 of file cl.hpp.

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

Definition at line 2614 of file cl.hpp.

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

Definition at line 2625 of file cl.hpp.


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