Stan Math Library  2.20.0
reverse mode automatic differentiation
Public Member Functions | List of all members
stan::math::opencl_kernels::kernel_functor< Args > Class Template Reference

Functor used for compiling kernels. More...

#include <kernel_cl.hpp>

Public Member Functions

 kernel_functor (const char *name, const std::vector< const char *> &sources, const std::map< const char *, int > &options)
 functor to access the kernel compiler. More...
 
auto operator() () const
 
const std::map< const char *, int > & get_opts () const
 

Detailed Description

template<typename... Args>
class stan::math::opencl_kernels::kernel_functor< Args >

Functor used for compiling kernels.

Template Parameters
ArgsParameter pack of all kernel argument types.

Definition at line 163 of file kernel_cl.hpp.

Constructor & Destructor Documentation

◆ kernel_functor()

template<typename... Args>
stan::math::opencl_kernels::kernel_functor< Args >::kernel_functor ( const char *  name,
const std::vector< const char *> &  sources,
const std::map< const char *, int > &  options 
)
inline

functor to access the kernel compiler.

Parameters
nameThe name for the kernel.
sourcesA std::vector of strings containing the code for the kernel.
optionsThe values of macros to be passed at compile time.

Definition at line 175 of file kernel_cl.hpp.

Member Function Documentation

◆ get_opts()

template<typename... Args>
const std::map<const char*, int>& stan::math::opencl_kernels::kernel_functor< Args >::get_opts ( ) const
inline
Returns
The options that the kernel was compiled with.

Definition at line 192 of file kernel_cl.hpp.

◆ operator()()

template<typename... Args>
auto stan::math::opencl_kernels::kernel_functor< Args >::operator() ( ) const
inline

Definition at line 187 of file kernel_cl.hpp.


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

     [ Stan Home Page ] © 2011–2018, Stan Development Team.