Skip to content

Commit

Permalink
fix sm75 build bug (#60583)
Browse files Browse the repository at this point in the history
  • Loading branch information
freeliuzc authored Jan 5, 2024
1 parent 57feb0a commit ed6f32d
Showing 1 changed file with 10 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ template <
/// Instruction-level tile size (concept: GemmShape)
typename InstructionShape,
/// Operation performed by GEMM
typename Operator>
typename Operator_>
struct DqMma<
ElementA,
LayoutA,
Expand All @@ -97,9 +97,12 @@ struct DqMma<
WarpShape,
InstructionShape,
2,
Operator,
Operator_,
SharedMemoryClearOption::kNone,
typename platform::enable_if<(ArchTag::kMinComputeCapability < 80)>::type> {
using OperatorInfo = arch::DetagOperator<Operator_>;
using Operator = typename OperatorInfo::Operator;

static_assert(platform::is_same<ElementA, half_t>::value ||
platform::is_same<ElementA, bfloat16_t>::value,
"Element A must be fp16 or bf16");
Expand Down Expand Up @@ -227,7 +230,7 @@ template <
/// Instruction-level tile size (concept: GemmShape)
typename InstructionShape,
/// Operation performed by GEMM
typename Operator,
typename Operator_,
///
int RowsPerTile,
///
Expand All @@ -250,9 +253,12 @@ struct DqMma<
WarpShape,
InstructionShape,
2,
Operator,
Operator_,
SharedMemoryClearOption::kNone,
typename platform::enable_if<(ArchTag::kMinComputeCapability < 80)>::type> {
using OperatorInfo = arch::DetagOperator<Operator_>;
using Operator = typename OperatorInfo::Operator;

static_assert(platform::is_same<ElementA, half_t>::value ||
platform::is_same<ElementA, bfloat16_t>::value,
"Element A must be fp16 or bf16");
Expand Down

0 comments on commit ed6f32d

Please sign in to comment.