Public Member Functions |
| kernel () |
| kernel (viennacl::ocl::handle< cl_program > const &prog, std::string const &name) |
| kernel (kernel const &other) |
viennacl::ocl::kernel & | operator= (const kernel &other) |
void | arg (unsigned int pos, cl_uint val) |
| Sets an unsigned integer argument at the provided position.
|
void | arg (unsigned int pos, float val) |
| Sets a single precision floating point argument at the provided position.
|
void | arg (unsigned int pos, double val) |
| Sets a double precision floating point argument at the provided position.
|
template<class VCL_TYPE > |
void | arg (unsigned int pos, VCL_TYPE const &val) |
| Sets an OpenCL memory object at the provided position.
|
template<class CL_TYPE > |
void | arg (unsigned int pos, viennacl::ocl::handle< CL_TYPE > const &h) |
| Sets an OpenCL object at the provided position.
|
void | arg (unsigned int pos, const local_mem &mem) |
| Sets an OpenCL local memory object at the provided position.
|
template<typename T0 > |
kernel & | operator() (T0 const &t0) |
| Convenience function for setting one kernel parameter.
|
template<typename T0 , typename T1 > |
kernel & | operator() (T0 const &t0, T1 const &t1) |
| Convenience function for setting two kernel parameters.
|
template<typename T0 , typename T1 , typename T2 > |
kernel & | operator() (T0 const &t0, T1 const &t1, T2 const &t2) |
| Convenience function for setting three kernel parameters.
|
template<typename T0 , typename T1 , typename T2 , typename T3 > |
kernel & | operator() (T0 const &t0, T1 const &t1, T2 const &t2, T3 const &t3) |
| Convenience function for setting four kernel parameters.
|
template<typename T0 , typename T1 , typename T2 , typename T3 , typename T4 > |
kernel & | operator() (T0 const &t0, T1 const &t1, T2 const &t2, T3 const &t3, T4 const &t4) |
| Convenience function for setting five kernel parameters.
|
template<typename T0 , typename T1 , typename T2 , typename T3 , typename T4 , typename T5 > |
kernel & | operator() (T0 const &t0, T1 const &t1, T2 const &t2, T3 const &t3, T4 const &t4, T5 const &t5) |
| Convenience function for setting six kernel parameters.
|
template<typename T0 , typename T1 , typename T2 , typename T3 , typename T4 , typename T5 , typename T6 > |
kernel & | operator() (T0 const &t0, T1 const &t1, T2 const &t2, T3 const &t3, T4 const &t4, T5 const &t5, T6 const &t6) |
| Convenience function for setting seven kernel parameters.
|
template<typename T0 , typename T1 , typename T2 , typename T3 , typename T4 , typename T5 , typename T6 , typename T7 > |
kernel & | operator() (T0 const &t0, T1 const &t1, T2 const &t2, T3 const &t3, T4 const &t4, T5 const &t5, T6 const &t6, T7 const &t7) |
| Convenience function for setting eight kernel parameters.
|
template<typename T0 , typename T1 , typename T2 , typename T3 , typename T4 , typename T5 , typename T6 , typename T7 , typename T8 > |
kernel & | operator() (T0 const &t0, T1 const &t1, T2 const &t2, T3 const &t3, T4 const &t4, T5 const &t5, T6 const &t6, T7 const &t7, T8 const &t8) |
| Convenience function for setting nine kernel parameters.
|
template<typename T0 , typename T1 , typename T2 , typename T3 , typename T4 , typename T5 , typename T6 , typename T7 , typename T8 , typename T9 > |
kernel & | operator() (T0 const &t0, T1 const &t1, T2 const &t2, T3 const &t3, T4 const &t4, T5 const &t5, T6 const &t6, T7 const &t7, T8 const &t8, T9 const &t9) |
| Convenience function for setting ten kernel parameters.
|
template<typename T0 , typename T1 , typename T2 , typename T3 , typename T4 , typename T5 , typename T6 , typename T7 , typename T8 , typename T9 , typename T10 > |
kernel & | operator() (T0 const &t0, T1 const &t1, T2 const &t2, T3 const &t3, T4 const &t4, T5 const &t5, T6 const &t6, T7 const &t7, T8 const &t8, T9 const &t9, T10 const &t10) |
| Convenience function for setting eleven kernel parameters.
|
template<typename T0 , typename T1 , typename T2 , typename T3 , typename T4 , typename T5 , typename T6 , typename T7 , typename T8 , typename T9 , typename T10 , typename T11 > |
kernel & | operator() (T0 const &t0, T1 const &t1, T2 const &t2, T3 const &t3, T4 const &t4, T5 const &t5, T6 const &t6, T7 const &t7, T8 const &t8, T9 const &t9, T10 const &t10, T11 const &t11) |
| Convenience function for setting twelve kernel parameters.
|
template<typename T0 , typename T1 , typename T2 , typename T3 , typename T4 , typename T5 , typename T6 , typename T7 , typename T8 , typename T9 , typename T10 , typename T11 , typename T12 > |
kernel & | operator() (T0 const &t0, T1 const &t1, T2 const &t2, T3 const &t3, T4 const &t4, T5 const &t5, T6 const &t6, T7 const &t7, T8 const &t8, T9 const &t9, T10 const &t10, T11 const &t11, T12 const &t12) |
| Convenience function for setting thirteen kernel parameters.
|
template<typename T0 , typename T1 , typename T2 , typename T3 , typename T4 , typename T5 , typename T6 , typename T7 , typename T8 , typename T9 , typename T10 , typename T11 , typename T12 , typename T13 > |
kernel & | operator() (T0 const &t0, T1 const &t1, T2 const &t2, T3 const &t3, T4 const &t4, T5 const &t5, T6 const &t6, T7 const &t7, T8 const &t8, T9 const &t9, T10 const &t10, T11 const &t11, T12 const &t12, T13 const &t13) |
| Convenience function for setting fourteen kernel parameters.
|
template<typename T0 , typename T1 , typename T2 , typename T3 , typename T4 , typename T5 , typename T6 , typename T7 , typename T8 , typename T9 , typename T10 , typename T11 , typename T12 , typename T13 , typename T14 > |
kernel & | operator() (T0 const &t0, T1 const &t1, T2 const &t2, T3 const &t3, T4 const &t4, T5 const &t5, T6 const &t6, T7 const &t7, T8 const &t8, T9 const &t9, T10 const &t10, T11 const &t11, T12 const &t12, T13 const &t13, T14 const &t14) |
| Convenience function for setting fifteen kernel parameters.
|
template<typename T0 , typename T1 , typename T2 , typename T3 , typename T4 , typename T5 , typename T6 , typename T7 , typename T8 , typename T9 , typename T10 , typename T11 , typename T12 , typename T13 , typename T14 , typename T15 > |
kernel & | operator() (T0 const &t0, T1 const &t1, T2 const &t2, T3 const &t3, T4 const &t4, T5 const &t5, T6 const &t6, T7 const &t7, T8 const &t8, T9 const &t9, T10 const &t10, T11 const &t11, T12 const &t12, T13 const &t13, T14 const &t14, T15 const &t15) |
| Convenience function for setting sixteen kernel parameters.
|
template<typename T0 , typename T1 , typename T2 , typename T3 , typename T4 , typename T5 , typename T6 , typename T7 , typename T8 , typename T9 , typename T10 , typename T11 , typename T12 , typename T13 , typename T14 , typename T15 , typename T16 > |
kernel & | operator() (T0 const &t0, T1 const &t1, T2 const &t2, T3 const &t3, T4 const &t4, T5 const &t5, T6 const &t6, T7 const &t7, T8 const &t8, T9 const &t9, T10 const &t10, T11 const &t11, T12 const &t12, T13 const &t13, T14 const &t14, T15 const &t15, T16 const &t16) |
| Convenience function for setting seventeen kernel parameters.
|
template<typename T0 , typename T1 , typename T2 , typename T3 , typename T4 , typename T5 , typename T6 , typename T7 , typename T8 , typename T9 , typename T10 , typename T11 , typename T12 , typename T13 , typename T14 , typename T15 , typename T16 , typename T17 > |
kernel & | operator() (T0 const &t0, T1 const &t1, T2 const &t2, T3 const &t3, T4 const &t4, T5 const &t5, T6 const &t6, T7 const &t7, T8 const &t8, T9 const &t9, T10 const &t10, T11 const &t11, T12 const &t12, T13 const &t13, T14 const &t14, T15 const &t15, T16 const &t16, T17 const &t17) |
| Convenience function for setting eighteen kernel parameters.
|
template<typename T0 , typename T1 , typename T2 , typename T3 , typename T4 , typename T5 , typename T6 , typename T7 , typename T8 , typename T9 , typename T10 , typename T11 , typename T12 , typename T13 , typename T14 , typename T15 , typename T16 , typename T17 , typename T18 > |
kernel & | operator() (T0 const &t0, T1 const &t1, T2 const &t2, T3 const &t3, T4 const &t4, T5 const &t5, T6 const &t6, T7 const &t7, T8 const &t8, T9 const &t9, T10 const &t10, T11 const &t11, T12 const &t12, T13 const &t13, T14 const &t14, T15 const &t15, T16 const &t16, T17 const &t17, T18 const &t18) |
| Convenience function for setting nineteen kernel parameters.
|
template<typename T0 , typename T1 , typename T2 , typename T3 , typename T4 , typename T5 , typename T6 , typename T7 , typename T8 , typename T9 , typename T10 , typename T11 , typename T12 , typename T13 , typename T14 , typename T15 , typename T16 , typename T17 , typename T18 , typename T19 > |
kernel & | operator() (T0 const &t0, T1 const &t1, T2 const &t2, T3 const &t3, T4 const &t4, T5 const &t5, T6 const &t6, T7 const &t7, T8 const &t8, T9 const &t9, T10 const &t10, T11 const &t11, T12 const &t12, T13 const &t13, T14 const &t14, T15 const &t15, T16 const &t16, T17 const &t17, T18 const &t18, T19 const &t19) |
| Convenience function for setting twenty kernel parameters.
|
template<typename T0 , typename T1 , typename T2 , typename T3 , typename T4 , typename T5 , typename T6 , typename T7 , typename T8 , typename T9 , typename T10 , typename T11 , typename T12 , typename T13 , typename T14 , typename T15 , typename T16 , typename T17 , typename T18 , typename T19 , typename T20 > |
kernel & | operator() (T0 const &t0, T1 const &t1, T2 const &t2, T3 const &t3, T4 const &t4, T5 const &t5, T6 const &t6, T7 const &t7, T8 const &t8, T9 const &t9, T10 const &t10, T11 const &t11, T12 const &t12, T13 const &t13, T14 const &t14, T15 const &t15, T16 const &t16, T17 const &t17, T18 const &t18, T19 const &t19, T20 const &t20) |
| Convenience function for setting twentyone kernel parameters.
|
template<typename T0 , typename T1 , typename T2 , typename T3 , typename T4 , typename T5 , typename T6 , typename T7 , typename T8 , typename T9 , typename T10 , typename T11 , typename T12 , typename T13 , typename T14 , typename T15 , typename T16 , typename T17 , typename T18 , typename T19 , typename T20 , typename T21 > |
kernel & | operator() (T0 const &t0, T1 const &t1, T2 const &t2, T3 const &t3, T4 const &t4, T5 const &t5, T6 const &t6, T7 const &t7, T8 const &t8, T9 const &t9, T10 const &t10, T11 const &t11, T12 const &t12, T13 const &t13, T14 const &t14, T15 const &t15, T16 const &t16, T17 const &t17, T18 const &t18, T19 const &t19, T20 const &t20, T21 const &t21) |
| Convenience function for setting twentytwo kernel parameters.
|
template<typename T0 , typename T1 , typename T2 , typename T3 , typename T4 , typename T5 , typename T6 , typename T7 , typename T8 , typename T9 , typename T10 , typename T11 , typename T12 , typename T13 , typename T14 , typename T15 , typename T16 , typename T17 , typename T18 , typename T19 , typename T20 , typename T21 , typename T22 > |
kernel & | operator() (T0 const &t0, T1 const &t1, T2 const &t2, T3 const &t3, T4 const &t4, T5 const &t5, T6 const &t6, T7 const &t7, T8 const &t8, T9 const &t9, T10 const &t10, T11 const &t11, T12 const &t12, T13 const &t13, T14 const &t14, T15 const &t15, T16 const &t16, T17 const &t17, T18 const &t18, T19 const &t19, T20 const &t20, T21 const &t21, T22 const &t22) |
| Convenience function for setting twentythree kernel parameters.
|
size_t | local_work_size (int index=0) const |
| Returns the local work size at the respective dimension.
|
size_t | global_work_size (int index=0) const |
| Returns the global work size at the respective dimension.
|
void | local_work_size (int index, size_t s) |
| Sets the local work size at the respective dimension.
|
void | global_work_size (int index, size_t s) |
| Sets the global work size at the respective dimension.
|
std::string const & | name () const |
viennacl::ocl::handle
< cl_kernel > const & | handle () const |
Friends |
template<typename KernelType > |
void | enqueue (KernelType &k, viennacl::ocl::command_queue const &queue) |
| Enqueues a kernel in the provided queue.
|
Represents an OpenCL kernel within ViennaCL.