OpenCL C++ Bindings
cl::KernelFunctor< Ts > Class Template Reference

Public Types

typedef Event result_type
 Return type of the functor.
 

Public Member Functions

 KernelFunctor (Kernel kernel)
 
 KernelFunctor (const Program &program, const string name, cl_int *err=NULL)
 
Event operator() (const EnqueueArgs &args, Ts...ts)
 
Event operator() (const EnqueueArgs &args, Ts...ts, cl_int &error)
 
cl_int setSVMPointers (const vector< void * > &pointerList)
 
template<typename T0 , typename... T1s>
cl_int setSVMPointers (const T0 &t0, T1s...ts)
 
Kernel getKernel ()
 

Detailed Description

template<typename... Ts>
class cl::KernelFunctor< Ts >

Type safe kernel functor.

Definition at line 9335 of file cl2.hpp.

Member Function Documentation

template<typename... Ts>
Event cl::KernelFunctor< Ts >::operator() ( const EnqueueArgs args,
Ts...  ts 
)
inline

Enqueue kernel.

Parameters
argsLaunch parameters of the kernel.
t0...List of kernel arguments based on the template type of the functor.

Definition at line 9378 of file cl2.hpp.

template<typename... Ts>
Event cl::KernelFunctor< Ts >::operator() ( const EnqueueArgs args,
Ts...  ts,
cl_int &  error 
)
inline

Enqueue kernel with support for error code.

Parameters
argsLaunch parameters of the kernel.
t0...List of kernel arguments based on the template type of the functor.
errorOut parameter returning the error code from the execution.

Definition at line 9402 of file cl2.hpp.


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