|
Template Numerical Library version\ main:7388705
|
Public Types | |
| using | ConstViewType = CSRHybridKernel< Index, Device, ThreadsInBlock > |
| using | DeviceType = Device |
| using | IndexType = Index |
| using | ViewType = CSRHybridKernel< Index, Device, ThreadsInBlock > |
Public Member Functions | |
| __cuda_callable__ ConstViewType | getConstView () const |
| __cuda_callable__ ViewType | getView () |
| template<typename Segments> | |
| void | init (const Segments &segments) |
| template<typename SegmentsView, typename Fetch, typename Reduction, typename ResultKeeper, typename Value = typename detail::FetchLambdaAdapter< Index, Fetch >::ReturnType> | |
| void | reduceAllSegments (const SegmentsView &segments, Fetch &fetch, const Reduction &reduction, ResultKeeper &keeper, const Value &identity=Reduction::template getIdentity< Value >()) const |
| template<typename SegmentsView, typename Fetch, typename Reduction, typename ResultKeeper, typename Value = typename detail::FetchLambdaAdapter< Index, Fetch >::ReturnType> | |
| void | reduceSegments (const SegmentsView &segments, Index begin, Index end, Fetch &fetch, const Reduction &reduction, ResultKeeper &keeper, const Value &identity=Reduction::template getIdentity< Value >()) const |
| void | reset () |
Static Public Member Functions | |
| static std::string | getKernelType () |
Protected Attributes | |
| int | threadsPerSegment = 0 |
| void TNL::Algorithms::SegmentsReductionKernels::CSRHybridKernel< Index, Device, ThreadsInBlock >::reduceAllSegments | ( | const SegmentsView & | segments, |
| Fetch & | fetch, | ||
| const Reduction & | reduction, | ||
| ResultKeeper & | keeper, | ||
| const Value & | identity = Reduction::template getIdentity< Value >() ) const |
| void TNL::Algorithms::SegmentsReductionKernels::CSRHybridKernel< Index, Device, ThreadsInBlock >::reduceSegments | ( | const SegmentsView & | segments, |
| Index | begin, | ||
| Index | end, | ||
| Fetch & | fetch, | ||
| const Reduction & | reduction, | ||
| ResultKeeper & | keeper, | ||
| const Value & | identity = Reduction::template getIdentity< Value >() ) const |