bug fixes and enharcement to gemm reductionK fusion (#682)
* add two missing files * fix bunch of bugs of gemm-reducek fusion and add a device interface * small changes Co-authored-by: Haicheng Wu <haichengw@nvidia.com>
This commit is contained in:
co-authored by
Haicheng Wu
parent
cc85b64cf6
commit
012c62c748
@@ -61,7 +61,9 @@ template <
|
||||
/// Layout of C matrix (concept: MatrixLayout)
|
||||
typename LayoutC,
|
||||
/// Operator describing the tensor operation
|
||||
typename Operator_ = arch::OpMultiplyAdd,
|
||||
typename Operator_,
|
||||
/// Reduce operand A or B along K dimension
|
||||
bool ReduceKForA_,
|
||||
/// Number of partitions along K dimension
|
||||
int PartitionsK = 1,
|
||||
/// Store the accumulators in row major or column major. Row major is used
|
||||
@@ -78,7 +80,7 @@ struct DefaultMmaWithReductionTensorOp {
|
||||
// Define the warp-level tensor op
|
||||
using Type = cutlass::gemm::warp::MmaWithReductionTensorOp<
|
||||
WarpShape_, ElementA, LayoutA, ElementB, LayoutB, ElementC, LayoutC,
|
||||
Policy, PartitionsK, AccumulatorsInRowMajor>;
|
||||
Policy, ReduceKForA_, PartitionsK, AccumulatorsInRowMajor>;
|
||||
};
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
@@ -81,7 +81,7 @@ template <
|
||||
typename LayoutC_,
|
||||
/// Policy describing warp-level MmaTensorOp (concept: MmaTensorOp policy)
|
||||
typename Policy_,
|
||||
///
|
||||
/// Reduce operand A or B along K dimension
|
||||
bool ReduceKForA_,
|
||||
/// Number of partitions along K dimension
|
||||
int PartitionsK_ = 1,
|
||||
|
||||
Reference in New Issue
Block a user