CUB  
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Types | Static Public Methods | List of all members
cub::ChainedPolicy< PTX_VERSION, PolicyT, PrevPolicyT > Struct Template Reference

Detailed description

template< int PTX_VERSION, typename PolicyT, typename PrevPolicyT>
struct cub::ChainedPolicy< PTX_VERSION, PolicyT, PrevPolicyT >

Helper for dispatching into a policy chain.

Public Types

using ActivePolicy = cub::detail::conditional_t<(CUB_PTX_ARCH< PTX_VERSION), typename PrevPolicyT::ActivePolicy, PolicyT >
 The policy for the active compiler pass. More...
 

Static Public Methods

template<typename FunctorT >
CUB_RUNTIME_FUNCTION static
__forceinline__ cudaError_t 
Invoke (int ptx_version, FunctorT &op)
 Specializes and dispatches op in accordance to the first policy in the chain of adequate PTX version. More...
 

Member Typedef Documentation

template<int PTX_VERSION, typename PolicyT , typename PrevPolicyT >
using cub::ChainedPolicy< PTX_VERSION, PolicyT, PrevPolicyT >::ActivePolicy = cub::detail::conditional_t<(CUB_PTX_ARCH < PTX_VERSION), typename PrevPolicyT::ActivePolicy, PolicyT>

The policy for the active compiler pass.

Member Function Documentation

template<int PTX_VERSION, typename PolicyT , typename PrevPolicyT >
template<typename FunctorT >
CUB_RUNTIME_FUNCTION static __forceinline__ cudaError_t cub::ChainedPolicy< PTX_VERSION, PolicyT, PrevPolicyT >::Invoke ( int  ptx_version,
FunctorT &  op 
)
inlinestatic

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


The documentation for this struct was generated from the following file: