cub::ChainedPolicy

Defined in cub/util_device.cuh

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

Helper for dispatching into a policy chain.

Public Types

using ActivePolicy = ::cuda::std::_If<(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.