cub::ChainedPolicy

Defined in /home/runner/work/cccl/cccl/cub/cub/util_device.cuh

template<int PolicyPtxVersion, typename PolicyT, typename PrevPolicyT>
struct ChainedPolicy

Helper for dispatching into a policy chain.

Public Types

using ActivePolicy = cub::detail::conditional_t<(CUB_PTX_ARCH < PolicyPtxVersion), typename PrevPolicyT::ActivePolicy, PolicyT>

The policy for the active compiler pass.

Public Static Functions

template<typename FunctorT>
static inline cudaError_t Invoke(int device_ptx_version, FunctorT &op)

Specializes and dispatches op in accordance to the first policy in the chain of adequate PTX version.