![]() |
Stan Math Library
2.20.0
reverse mode automatic differentiation
|
Creates functor for kernels. More...
#include <kernel_cl.hpp>
Public Member Functions | |
kernel_cl (const char *name, const char *source, const std::map< const char *, int > &options={}) | |
Creates functor for kernels that only need access to defining the global work size. More... | |
kernel_cl (const char *name, const std::vector< const char *> &sources, const std::map< const char *, int > &options={}) | |
Creates functor for kernels that only need access to defining the global work size. More... | |
auto | operator() (cl::NDRange global_thread_size, internal::to_const_matrix_cl_t< Args > &... args) const |
Executes a kernel. More... | |
auto | operator() (cl::NDRange global_thread_size, cl::NDRange thread_block_size, internal::to_const_matrix_cl_t< Args > &... args) const |
Executes a kernel. More... | |
Public Attributes | |
const kernel_functor< internal::to_const_buffer_t< Args > &... > | make_functor |
Creates functor for kernels.
Args | Parameter pack of all kernel argument types. |
Definition at line 201 of file kernel_cl.hpp.
|
inline |
Creates functor for kernels that only need access to defining the global work size.
name | The name for the kernel |
source | A string literal containing the code for the kernel. |
options | The values of macros to be passed at compile time. |
Definition at line 210 of file kernel_cl.hpp.
|
inline |
Creates functor for kernels that only need access to defining the global work size.
name | The name for the kernel |
sources | A std::vector of strings containing the code for the kernel. |
options | The values of macros to be passed at compile time. |
Definition at line 220 of file kernel_cl.hpp.
|
inline |
Executes a kernel.
global_thread_size | The global work size. |
args | The arguments to pass to the kernel. |
Args | Parameter pack of all kernel argument types. |
Definition at line 229 of file kernel_cl.hpp.
|
inline |
Executes a kernel.
global_thread_size | The global work size. |
thread_block_size | The thread block size. |
args | The arguments to pass to the kernel. |
Args | Parameter pack of all kernel argument types. |
Definition at line 248 of file kernel_cl.hpp.
const kernel_functor<internal::to_const_buffer_t<Args>&...> stan::math::opencl_kernels::kernel_cl< Args >::make_functor |
Definition at line 202 of file kernel_cl.hpp.