mesa  18.2.8
About: Mesa is an open-source implementation of the OpenGL specification - a system for rendering interactive 3D graphics (main library code).
  Fossies Dox: mesa-18.2.8.tar.xz  ("inofficial" and yet experimental doxygen-generated source code documentation)  

cl::Kernel Class Reference

Kernel interface that implements cl_kernel. More...

#include <cl.hpp>

Inheritance diagram for cl::Kernel:
Collaboration diagram for cl::Kernel:

Public Member Functions

 Kernel (const Program &program, const char *name, cl_int *err=NULL)
 
 Kernel ()
 
 Kernel (const Kernel &kernel)
 
Kerneloperator= (const 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 Wrapper< cl_type > &rhs)
 
 ~Wrapper ()
 
Wrapper< cl_type > & operator= (const Wrapper< 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 2289 of file cl.hpp.

Constructor & Destructor Documentation

◆ Kernel() [1/3]

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

Definition at line 2543 of file cl.hpp.

References clCreateKernel(), cl::detail::errHandler(), error, and NULL.

◆ Kernel() [2/3]

cl::Kernel::Kernel ( )
inline

Definition at line 2294 of file cl.hpp.

◆ Kernel() [3/3]

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

Definition at line 2296 of file cl.hpp.

Member Function Documentation

◆ bind() [1/2]

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

Definition at line 3355 of file cl.hpp.

References queue().

◆ bind() [2/2]

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

Definition at line 3364 of file cl.hpp.

References cl::NullRange, and queue().

◆ getInfo() [1/2]

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

◆ getInfo() [2/2]

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 2316 of file cl.hpp.

References getInfo(), and NULL.

◆ getWorkGroupInfo() [1/2]

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

◆ getWorkGroupInfo() [2/2]

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 2339 of file cl.hpp.

References device, getWorkGroupInfo(), and NULL.

◆ operator=()

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

Definition at line 2298 of file cl.hpp.

References cl::detail::Wrapper< T >::operator=().

◆ setArg() [1/2]

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

◆ setArg() [2/2]

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

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