GridwiseReduction_mk_to_m_threadwise< InDataType, OutDataType, AccDataType, IndexDataType, InGridDesc_M_K, OutGridDesc_M, ReduceOperation, InElementwiseOperation, AccElementwiseOperation, OutMemoryDataOperation, PropagateNan, BlockSize, MThreadSliceSize, KThreadSliceSize, InSrcVectorDim, InSrcVectorSize, OutDstVectorSize > Struct Template Reference

GridwiseReduction_mk_to_m_threadwise&lt; InDataType, OutDataType, AccDataType, IndexDataType, InGridDesc_M_K, OutGridDesc_M, ReduceOperation, InElementwiseOperation, AccElementwiseOperation, OutMemoryDataOperation, PropagateNan, BlockSize, MThreadSliceSize, KThreadSliceSize, InSrcVectorDim, InSrcVectorSize, OutDstVectorSize &gt; Struct Template Reference#

Composable Kernel: ck::GridwiseReduction_mk_to_m_threadwise< InDataType, OutDataType, AccDataType, IndexDataType, InGridDesc_M_K, OutGridDesc_M, ReduceOperation, InElementwiseOperation, AccElementwiseOperation, OutMemoryDataOperation, PropagateNan, BlockSize, MThreadSliceSize, KThreadSliceSize, InSrcVectorDim, InSrcVectorSize, OutDstVectorSize > Struct Template Reference
ck::GridwiseReduction_mk_to_m_threadwise< InDataType, OutDataType, AccDataType, IndexDataType, InGridDesc_M_K, OutGridDesc_M, ReduceOperation, InElementwiseOperation, AccElementwiseOperation, OutMemoryDataOperation, PropagateNan, BlockSize, MThreadSliceSize, KThreadSliceSize, InSrcVectorDim, InSrcVectorSize, OutDstVectorSize > Struct Template Reference

#include <gridwise_2d_reduction_threadwise.hpp>

Public Types

using ThreadBufferDimAccessOrder
using ThreadReduceSrcDesc_M_K
using ThreadReduceDstDesc_M
using PassThroughOp = tensor_operation::element_wise::PassThrough

Static Public Member Functions

static __device__ void Run (const InGridDesc_M_K &in_grid_desc_m_k, const OutGridDesc_M &out_grid_desc_m, const InElementwiseOperation &in_elementwise_op, const AccElementwiseOperation &acc_elementwise_op, AccDataType alpha, const InDataType *const __restrict__ p_in_value_global, AccDataType beta, OutDataType *const __restrict__ p_out_value_global)
template<bool TransformIndexKtoGlobal, bool HaveIndexInput>
static __device__ void RunWithIndex (const InGridDesc_M_K &in_grid_desc_m_k, const OutGridDesc_M &out_grid_desc_m, const InElementwiseOperation &in_elementwise_op, const AccElementwiseOperation &acc_elementwise_op, AccDataType alpha, const InDataType *const __restrict__ p_in_value_global, const IndexDataType *const __restrict__ p_in_index_global, AccDataType beta, OutDataType *const __restrict__ p_out_value_global, IndexDataType *const __restrict__ p_out_index_global)

Static Public Attributes

static constexpr auto I0 = Number<0>{}

Member Typedef Documentation

◆ PassThroughOp

template<typename InDataType, typename OutDataType, typename AccDataType, typename IndexDataType, typename InGridDesc_M_K, typename OutGridDesc_M, typename ReduceOperation, typename InElementwiseOperation, typename AccElementwiseOperation, InMemoryDataOperationEnum OutMemoryDataOperation, bool PropagateNan, index_t BlockSize, index_t MThreadSliceSize, index_t KThreadSliceSize, index_t InSrcVectorDim, index_t InSrcVectorSize, index_t OutDstVectorSize>
using ck::GridwiseReduction_mk_to_m_threadwise< InDataType, OutDataType, AccDataType, IndexDataType, InGridDesc_M_K, OutGridDesc_M, ReduceOperation, InElementwiseOperation, AccElementwiseOperation, OutMemoryDataOperation, PropagateNan, BlockSize, MThreadSliceSize, KThreadSliceSize, InSrcVectorDim, InSrcVectorSize, OutDstVectorSize >::PassThroughOp = tensor_operation::element_wise::PassThrough

◆ ThreadBufferDimAccessOrder

template<typename InDataType, typename OutDataType, typename AccDataType, typename IndexDataType, typename InGridDesc_M_K, typename OutGridDesc_M, typename ReduceOperation, typename InElementwiseOperation, typename AccElementwiseOperation, InMemoryDataOperationEnum OutMemoryDataOperation, bool PropagateNan, index_t BlockSize, index_t MThreadSliceSize, index_t KThreadSliceSize, index_t InSrcVectorDim, index_t InSrcVectorSize, index_t OutDstVectorSize>
using ck::GridwiseReduction_mk_to_m_threadwise< InDataType, OutDataType, AccDataType, IndexDataType, InGridDesc_M_K, OutGridDesc_M, ReduceOperation, InElementwiseOperation, AccElementwiseOperation, OutMemoryDataOperation, PropagateNan, BlockSize, MThreadSliceSize, KThreadSliceSize, InSrcVectorDim, InSrcVectorSize, OutDstVectorSize >::ThreadBufferDimAccessOrder
Initial value:
Definition utility/sequence.hpp:43
Definition utility/functional.hpp:100

◆ ThreadReduceDstDesc_M

template<typename InDataType, typename OutDataType, typename AccDataType, typename IndexDataType, typename InGridDesc_M_K, typename OutGridDesc_M, typename ReduceOperation, typename InElementwiseOperation, typename AccElementwiseOperation, InMemoryDataOperationEnum OutMemoryDataOperation, bool PropagateNan, index_t BlockSize, index_t MThreadSliceSize, index_t KThreadSliceSize, index_t InSrcVectorDim, index_t InSrcVectorSize, index_t OutDstVectorSize>
using ck::GridwiseReduction_mk_to_m_threadwise< InDataType, OutDataType, AccDataType, IndexDataType, InGridDesc_M_K, OutGridDesc_M, ReduceOperation, InElementwiseOperation, AccElementwiseOperation, OutMemoryDataOperation, PropagateNan, BlockSize, MThreadSliceSize, KThreadSliceSize, InSrcVectorDim, InSrcVectorSize, OutDstVectorSize >::ThreadReduceDstDesc_M
Initial value:
integral_constant< index_t, N > Number
Definition number.hpp:12
__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 InDataType, typename OutDataType, typename AccDataType, typename IndexDataType, typename InGridDesc_M_K, typename OutGridDesc_M, typename ReduceOperation, typename InElementwiseOperation, typename AccElementwiseOperation, InMemoryDataOperationEnum OutMemoryDataOperation, bool PropagateNan, index_t BlockSize, index_t MThreadSliceSize, index_t KThreadSliceSize, index_t InSrcVectorDim, index_t InSrcVectorSize, index_t OutDstVectorSize>
using ck::GridwiseReduction_mk_to_m_threadwise< InDataType, OutDataType, AccDataType, IndexDataType, InGridDesc_M_K, OutGridDesc_M, ReduceOperation, InElementwiseOperation, AccElementwiseOperation, OutMemoryDataOperation, PropagateNan, BlockSize, MThreadSliceSize, KThreadSliceSize, InSrcVectorDim, InSrcVectorSize, OutDstVectorSize >::ThreadReduceSrcDesc_M_K

Member Function Documentation

◆ Run()

template<typename InDataType, typename OutDataType, typename AccDataType, typename IndexDataType, typename InGridDesc_M_K, typename OutGridDesc_M, typename ReduceOperation, typename InElementwiseOperation, typename AccElementwiseOperation, InMemoryDataOperationEnum OutMemoryDataOperation, bool PropagateNan, index_t BlockSize, index_t MThreadSliceSize, index_t KThreadSliceSize, index_t InSrcVectorDim, index_t InSrcVectorSize, index_t OutDstVectorSize>
__device__ void ck::GridwiseReduction_mk_to_m_threadwise< InDataType, OutDataType, AccDataType, IndexDataType, InGridDesc_M_K, OutGridDesc_M, ReduceOperation, InElementwiseOperation, AccElementwiseOperation, OutMemoryDataOperation, PropagateNan, BlockSize, MThreadSliceSize, KThreadSliceSize, InSrcVectorDim, InSrcVectorSize, OutDstVectorSize >::Run ( const InGridDesc_M_K & in_grid_desc_m_k,
const OutGridDesc_M & out_grid_desc_m,
const InElementwiseOperation & in_elementwise_op,
const AccElementwiseOperation & acc_elementwise_op,
AccDataType alpha,
const InDataType *const __restrict__ p_in_value_global,
AccDataType beta,
OutDataType *const __restrict__ p_out_value_global )
inlinestatic

◆ RunWithIndex()

template<typename InDataType, typename OutDataType, typename AccDataType, typename IndexDataType, typename InGridDesc_M_K, typename OutGridDesc_M, typename ReduceOperation, typename InElementwiseOperation, typename AccElementwiseOperation, InMemoryDataOperationEnum OutMemoryDataOperation, bool PropagateNan, index_t BlockSize, index_t MThreadSliceSize, index_t KThreadSliceSize, index_t InSrcVectorDim, index_t InSrcVectorSize, index_t OutDstVectorSize>
template<bool TransformIndexKtoGlobal, bool HaveIndexInput>
__device__ void ck::GridwiseReduction_mk_to_m_threadwise< InDataType, OutDataType, AccDataType, IndexDataType, InGridDesc_M_K, OutGridDesc_M, ReduceOperation, InElementwiseOperation, AccElementwiseOperation, OutMemoryDataOperation, PropagateNan, BlockSize, MThreadSliceSize, KThreadSliceSize, InSrcVectorDim, InSrcVectorSize, OutDstVectorSize >::RunWithIndex ( const InGridDesc_M_K & in_grid_desc_m_k,
const OutGridDesc_M & out_grid_desc_m,
const InElementwiseOperation & in_elementwise_op,
const AccElementwiseOperation & acc_elementwise_op,
AccDataType alpha,
const InDataType *const __restrict__ p_in_value_global,
const IndexDataType *const __restrict__ p_in_index_global,
AccDataType beta,
OutDataType *const __restrict__ p_out_value_global,
IndexDataType *const __restrict__ p_out_index_global )
inlinestatic

Member Data Documentation

◆ I0

template<typename InDataType, typename OutDataType, typename AccDataType, typename IndexDataType, typename InGridDesc_M_K, typename OutGridDesc_M, typename ReduceOperation, typename InElementwiseOperation, typename AccElementwiseOperation, InMemoryDataOperationEnum OutMemoryDataOperation, bool PropagateNan, index_t BlockSize, index_t MThreadSliceSize, index_t KThreadSliceSize, index_t InSrcVectorDim, index_t InSrcVectorSize, index_t OutDstVectorSize>
auto ck::GridwiseReduction_mk_to_m_threadwise< InDataType, OutDataType, AccDataType, IndexDataType, InGridDesc_M_K, OutGridDesc_M, ReduceOperation, InElementwiseOperation, AccElementwiseOperation, OutMemoryDataOperation, PropagateNan, BlockSize, MThreadSliceSize, KThreadSliceSize, InSrcVectorDim, InSrcVectorSize, OutDstVectorSize >::I0 = Number<0>{}
staticconstexpr

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