Automatic Differentiation
 
Loading...
Searching...
No Matches

◆ set_args()

template<const char * Code, typename... T_arguments>
auto stan::math::opencl_code_< Code, T_arguments >::set_args ( std::unordered_map< const void *, const char * > &  generated,
std::unordered_map< const void *, const char * > &  generated_all,
cl::Kernel &  kernel,
int &  arg_num 
) const
inline

Sets kernel arguments for nested expressions.

Parameters
[in,out]generatedmap from (pointer to) already generated local operations to variable names
[in,out]generated_allmap from (pointer to) already generated all operations to variable names
kernelkernel to set arguments on
[in,out]arg_numconsecutive number of the first argument to set. This is incremented for each argument set by this function.

Definition at line 204 of file opencl_code.hpp.