cub::ChainedPolicy#

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

Helper for dispatching into a policy chain.

Public Types

using ActivePolicy = typename ::cuda::std::_If<(CUB_PTX_ARCH < PolicyPtxVersion && have_previous_policy), detail::get_active_policy<PrevPolicyT>, ::cuda::std::type_identity<PolicyT>>::type#

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.