Skip to content

Commit 8e05730

Browse files
authored
[PPU] Fix the issue where the PPU backend cannot be built in release mode (#907)
1 parent 5e37dc3 commit 8e05730

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

third_party/ppu/spec_cpp/lib/Dialect/TritonGPU/IR/LinearLayoutConversions.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -643,7 +643,7 @@ LinearLayout choosePPULdMatrixLayout(Attribute enc, ArrayRef<int64_t> shape,
643643
} else if (mmaEnc.getVersionMajor() == 2) {
644644
return chooseDotLdMatrixLayoutPPUMmaV2(dot, shape, needTrans, elemBitWidth);
645645
} else {
646-
assert(false && "Unsupported MMA version for ldmatrix");
646+
llvm_unreachable("Unsupported MMA version for ldmatrix");
647647
}
648648
}
649649

@@ -1261,7 +1261,7 @@ LinearLayout PPUMmaEncodingAttr::toLinearLayout(ArrayRef<int64_t> shape) const {
12611261
if (getVersionMajor() == 1 || getVersionMajor() == 2) {
12621262
tileShape = SmallVector<unsigned>(getInstrShape());
12631263
} else {
1264-
assert(false && "Unsupported PPU vresion");
1264+
llvm_unreachable("Unsupported PPU version");
12651265
}
12661266
// mma layout always assumes kWidth = 2
12671267
constexpr auto kWidth = 2;

0 commit comments

Comments
 (0)