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

◆ cumulative_sum1()

__kernel void stan::math::opencl_kernels::cumulative_sum1 ( __global SCAL *  out_wgs,
__global SCAL *  out_threads,
__global SCAL *  in,
int  size 
)

First kernel of the cumulative sum implementation.

Each thread sums the assigned elements and threads within same work group add their results together.

Parameters
[out]out_wgsresults from each work group
[out]out_threadsresults for each thread
[in]ininput data
sizesize number of elements in the input

Definition at line 27 of file cumulative_sum.hpp.