GridwiseMultiblockWelfordFirstHalf< XDataType, AccDataType, MeanVarDataType, XGridDesc_M_K, MeanVarCountGridDesc_M_G, GetReduceCountPerThreadFunctor, BlockSize, MThreadClusterSize, KThreadClusterSize, MThreadSliceSize, KThreadSliceSize, XSrcCountSrcVectorDim, XSrcCountSrcVectorSize > Struct Template Reference#
ck::GridwiseMultiblockWelfordFirstHalf< XDataType, AccDataType, MeanVarDataType, XGridDesc_M_K, MeanVarCountGridDesc_M_G, GetReduceCountPerThreadFunctor, BlockSize, MThreadClusterSize, KThreadClusterSize, MThreadSliceSize, KThreadSliceSize, XSrcCountSrcVectorDim, XSrcCountSrcVectorSize > Struct Template Reference
#include <gridwise_multiblock_welford_first_half.hpp>
Public Types | |
| using | ThreadClusterLengths_M_K = Sequence<MThreadClusterSize, KThreadClusterSize> |
| using | ThreadBufferDimAccessOrder |
| using | ThreadClusterArrangeOrder |
| using | ThreadReduceSrcDesc_M_K |
| using | ThreadReduceDstDesc_M |
| using | ThreadwiseWelford |
| using | BlockwiseWelford |
| using | PassThroughOp = tensor_operation::element_wise::PassThrough |
Static Public Member Functions | |
| static __device__ void | Run (const XGridDesc_M_K &x_grid_desc_m_k, const MeanVarCountGridDesc_M_G &mean_var_count_grid_desc_m_g, const GetReduceCountPerThreadFunctor &get_reduce_count_per_thread, index_t num_k_block_tile_iteration, const XDataType *const __restrict__ p_x, MeanVarDataType *const p_welford_mean, MeanVarDataType *const p_welford_variance, int32_t *const p_welford_count) |
Static Public Attributes | |
| static constexpr bool | reorder_thread_cluster = (XSrcCountSrcVectorDim == 0) |
| static constexpr auto | thread_cluster_desc |
| static constexpr auto | I0 = Number<0>{} |
| static constexpr auto | I1 = Number<1>{} |
| static constexpr index_t | M_BlockTileSize = MThreadClusterSize * MThreadSliceSize |
| static constexpr index_t | K_BlockTileSize = KThreadClusterSize * KThreadSliceSize |
Member Typedef Documentation
◆ BlockwiseWelford
template<typename XDataType, typename AccDataType, typename MeanVarDataType, typename XGridDesc_M_K, typename MeanVarCountGridDesc_M_G, typename GetReduceCountPerThreadFunctor, index_t BlockSize, index_t MThreadClusterSize, index_t KThreadClusterSize, index_t MThreadSliceSize, index_t KThreadSliceSize, index_t XSrcCountSrcVectorDim, index_t XSrcCountSrcVectorSize>
| using ck::GridwiseMultiblockWelfordFirstHalf< XDataType, AccDataType, MeanVarDataType, XGridDesc_M_K, MeanVarCountGridDesc_M_G, GetReduceCountPerThreadFunctor, BlockSize, MThreadClusterSize, KThreadClusterSize, MThreadSliceSize, KThreadSliceSize, XSrcCountSrcVectorDim, XSrcCountSrcVectorSize >::BlockwiseWelford |
Initial value:
BlockwiseWelford<AccDataType,
BlockSize,
false>
BlockwiseWelford< AccDataType, BlockSize, ThreadClusterLengths_M_K, ThreadClusterArrangeOrder, false > BlockwiseWelford
Definition gridwise_multiblock_welford_first_half.hpp:82
typename conditional< reorder_thread_cluster, Sequence< 1, 0 >, Sequence< 0, 1 > >::type ThreadClusterArrangeOrder
Definition gridwise_multiblock_welford_first_half.hpp:68
Sequence< MThreadClusterSize, KThreadClusterSize > ThreadClusterLengths_M_K
Definition gridwise_multiblock_welford_first_half.hpp:63
◆ PassThroughOp
template<typename XDataType, typename AccDataType, typename MeanVarDataType, typename XGridDesc_M_K, typename MeanVarCountGridDesc_M_G, typename GetReduceCountPerThreadFunctor, index_t BlockSize, index_t MThreadClusterSize, index_t KThreadClusterSize, index_t MThreadSliceSize, index_t KThreadSliceSize, index_t XSrcCountSrcVectorDim, index_t XSrcCountSrcVectorSize>
| using ck::GridwiseMultiblockWelfordFirstHalf< XDataType, AccDataType, MeanVarDataType, XGridDesc_M_K, MeanVarCountGridDesc_M_G, GetReduceCountPerThreadFunctor, BlockSize, MThreadClusterSize, KThreadClusterSize, MThreadSliceSize, KThreadSliceSize, XSrcCountSrcVectorDim, XSrcCountSrcVectorSize >::PassThroughOp = tensor_operation::element_wise::PassThrough |
◆ ThreadBufferDimAccessOrder
template<typename XDataType, typename AccDataType, typename MeanVarDataType, typename XGridDesc_M_K, typename MeanVarCountGridDesc_M_G, typename GetReduceCountPerThreadFunctor, index_t BlockSize, index_t MThreadClusterSize, index_t KThreadClusterSize, index_t MThreadSliceSize, index_t KThreadSliceSize, index_t XSrcCountSrcVectorDim, index_t XSrcCountSrcVectorSize>
| using ck::GridwiseMultiblockWelfordFirstHalf< XDataType, AccDataType, MeanVarDataType, XGridDesc_M_K, MeanVarCountGridDesc_M_G, GetReduceCountPerThreadFunctor, BlockSize, MThreadClusterSize, KThreadClusterSize, MThreadSliceSize, KThreadSliceSize, XSrcCountSrcVectorDim, XSrcCountSrcVectorSize >::ThreadBufferDimAccessOrder |
Initial value:
Definition utility/sequence.hpp:43
Definition utility/functional.hpp:100
◆ ThreadClusterArrangeOrder
template<typename XDataType, typename AccDataType, typename MeanVarDataType, typename XGridDesc_M_K, typename MeanVarCountGridDesc_M_G, typename GetReduceCountPerThreadFunctor, index_t BlockSize, index_t MThreadClusterSize, index_t KThreadClusterSize, index_t MThreadSliceSize, index_t KThreadSliceSize, index_t XSrcCountSrcVectorDim, index_t XSrcCountSrcVectorSize>
| using ck::GridwiseMultiblockWelfordFirstHalf< XDataType, AccDataType, MeanVarDataType, XGridDesc_M_K, MeanVarCountGridDesc_M_G, GetReduceCountPerThreadFunctor, BlockSize, MThreadClusterSize, KThreadClusterSize, MThreadSliceSize, KThreadSliceSize, XSrcCountSrcVectorDim, XSrcCountSrcVectorSize >::ThreadClusterArrangeOrder |
Initial value:
◆ ThreadClusterLengths_M_K
template<typename XDataType, typename AccDataType, typename MeanVarDataType, typename XGridDesc_M_K, typename MeanVarCountGridDesc_M_G, typename GetReduceCountPerThreadFunctor, index_t BlockSize, index_t MThreadClusterSize, index_t KThreadClusterSize, index_t MThreadSliceSize, index_t KThreadSliceSize, index_t XSrcCountSrcVectorDim, index_t XSrcCountSrcVectorSize>
| using ck::GridwiseMultiblockWelfordFirstHalf< XDataType, AccDataType, MeanVarDataType, XGridDesc_M_K, MeanVarCountGridDesc_M_G, GetReduceCountPerThreadFunctor, BlockSize, MThreadClusterSize, KThreadClusterSize, MThreadSliceSize, KThreadSliceSize, XSrcCountSrcVectorDim, XSrcCountSrcVectorSize >::ThreadClusterLengths_M_K = Sequence<MThreadClusterSize, KThreadClusterSize> |
◆ ThreadReduceDstDesc_M
template<typename XDataType, typename AccDataType, typename MeanVarDataType, typename XGridDesc_M_K, typename MeanVarCountGridDesc_M_G, typename GetReduceCountPerThreadFunctor, index_t BlockSize, index_t MThreadClusterSize, index_t KThreadClusterSize, index_t MThreadSliceSize, index_t KThreadSliceSize, index_t XSrcCountSrcVectorDim, index_t XSrcCountSrcVectorSize>
| using ck::GridwiseMultiblockWelfordFirstHalf< XDataType, AccDataType, MeanVarDataType, XGridDesc_M_K, MeanVarCountGridDesc_M_G, GetReduceCountPerThreadFunctor, BlockSize, MThreadClusterSize, KThreadClusterSize, MThreadSliceSize, KThreadSliceSize, XSrcCountSrcVectorDim, XSrcCountSrcVectorSize >::ThreadReduceDstDesc_M |
Initial value:
__host__ __device__ constexpr auto make_naive_tensor_descriptor_packed(const Tuple< Lengths... > &lengths)
Definition tensor_descriptor_helper.hpp:101
__host__ __device__ constexpr auto make_tuple(Xs &&... xs)
Definition utility/tuple.hpp:211
◆ ThreadReduceSrcDesc_M_K
template<typename XDataType, typename AccDataType, typename MeanVarDataType, typename XGridDesc_M_K, typename MeanVarCountGridDesc_M_G, typename GetReduceCountPerThreadFunctor, index_t BlockSize, index_t MThreadClusterSize, index_t KThreadClusterSize, index_t MThreadSliceSize, index_t KThreadSliceSize, index_t XSrcCountSrcVectorDim, index_t XSrcCountSrcVectorSize>
| using ck::GridwiseMultiblockWelfordFirstHalf< XDataType, AccDataType, MeanVarDataType, XGridDesc_M_K, MeanVarCountGridDesc_M_G, GetReduceCountPerThreadFunctor, BlockSize, MThreadClusterSize, KThreadClusterSize, MThreadSliceSize, KThreadSliceSize, XSrcCountSrcVectorDim, XSrcCountSrcVectorSize >::ThreadReduceSrcDesc_M_K |
Initial value:
◆ ThreadwiseWelford
template<typename XDataType, typename AccDataType, typename MeanVarDataType, typename XGridDesc_M_K, typename MeanVarCountGridDesc_M_G, typename GetReduceCountPerThreadFunctor, index_t BlockSize, index_t MThreadClusterSize, index_t KThreadClusterSize, index_t MThreadSliceSize, index_t KThreadSliceSize, index_t XSrcCountSrcVectorDim, index_t XSrcCountSrcVectorSize>
| using ck::GridwiseMultiblockWelfordFirstHalf< XDataType, AccDataType, MeanVarDataType, XGridDesc_M_K, MeanVarCountGridDesc_M_G, GetReduceCountPerThreadFunctor, BlockSize, MThreadClusterSize, KThreadClusterSize, MThreadSliceSize, KThreadSliceSize, XSrcCountSrcVectorDim, XSrcCountSrcVectorSize >::ThreadwiseWelford |
Initial value:
ThreadwiseWelford< AccDataType, ThreadReduceSrcDesc_M_K, ThreadReduceDstDesc_M > ThreadwiseWelford
Definition gridwise_multiblock_welford_first_half.hpp:79
Member Function Documentation
◆ Run()
template<typename XDataType, typename AccDataType, typename MeanVarDataType, typename XGridDesc_M_K, typename MeanVarCountGridDesc_M_G, typename GetReduceCountPerThreadFunctor, index_t BlockSize, index_t MThreadClusterSize, index_t KThreadClusterSize, index_t MThreadSliceSize, index_t KThreadSliceSize, index_t XSrcCountSrcVectorDim, index_t XSrcCountSrcVectorSize>
|
inlinestatic |
Member Data Documentation
◆ I0
template<typename XDataType, typename AccDataType, typename MeanVarDataType, typename XGridDesc_M_K, typename MeanVarCountGridDesc_M_G, typename GetReduceCountPerThreadFunctor, index_t BlockSize, index_t MThreadClusterSize, index_t KThreadClusterSize, index_t MThreadSliceSize, index_t KThreadSliceSize, index_t XSrcCountSrcVectorDim, index_t XSrcCountSrcVectorSize>
|
staticconstexpr |
◆ I1
template<typename XDataType, typename AccDataType, typename MeanVarDataType, typename XGridDesc_M_K, typename MeanVarCountGridDesc_M_G, typename GetReduceCountPerThreadFunctor, index_t BlockSize, index_t MThreadClusterSize, index_t KThreadClusterSize, index_t MThreadSliceSize, index_t KThreadSliceSize, index_t XSrcCountSrcVectorDim, index_t XSrcCountSrcVectorSize>
|
staticconstexpr |
◆ K_BlockTileSize
template<typename XDataType, typename AccDataType, typename MeanVarDataType, typename XGridDesc_M_K, typename MeanVarCountGridDesc_M_G, typename GetReduceCountPerThreadFunctor, index_t BlockSize, index_t MThreadClusterSize, index_t KThreadClusterSize, index_t MThreadSliceSize, index_t KThreadSliceSize, index_t XSrcCountSrcVectorDim, index_t XSrcCountSrcVectorSize>
|
staticconstexpr |
◆ M_BlockTileSize
template<typename XDataType, typename AccDataType, typename MeanVarDataType, typename XGridDesc_M_K, typename MeanVarCountGridDesc_M_G, typename GetReduceCountPerThreadFunctor, index_t BlockSize, index_t MThreadClusterSize, index_t KThreadClusterSize, index_t MThreadSliceSize, index_t KThreadSliceSize, index_t XSrcCountSrcVectorDim, index_t XSrcCountSrcVectorSize>
|
staticconstexpr |
◆ reorder_thread_cluster
template<typename XDataType, typename AccDataType, typename MeanVarDataType, typename XGridDesc_M_K, typename MeanVarCountGridDesc_M_G, typename GetReduceCountPerThreadFunctor, index_t BlockSize, index_t MThreadClusterSize, index_t KThreadClusterSize, index_t MThreadSliceSize, index_t KThreadSliceSize, index_t XSrcCountSrcVectorDim, index_t XSrcCountSrcVectorSize>
|
staticconstexpr |
◆ thread_cluster_desc
template<typename XDataType, typename AccDataType, typename MeanVarDataType, typename XGridDesc_M_K, typename MeanVarCountGridDesc_M_G, typename GetReduceCountPerThreadFunctor, index_t BlockSize, index_t MThreadClusterSize, index_t KThreadClusterSize, index_t MThreadSliceSize, index_t KThreadSliceSize, index_t XSrcCountSrcVectorDim, index_t XSrcCountSrcVectorSize>
|
staticconstexpr |
Initial value:
=
__host__ __device__ constexpr auto make_cluster_descriptor(const Lengths &lengths, ArrangeOrder order=typename arithmetic_sequence_gen< 0, Lengths::Size(), 1 >::type{})
Definition tensor_description/cluster_descriptor.hpp:13
The documentation for this struct was generated from the following file: