Skip to content

Commit

Permalink
filter sme
Browse files Browse the repository at this point in the history
  • Loading branch information
tarinduj committed Jan 28, 2025
1 parent 653c152 commit 954426b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
13 changes: 8 additions & 5 deletions mlir/include/mlir/Analysis/Presburger/Matrix-impl.h
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,11 @@ Matrix<Int>::Matrix(unsigned rows, unsigned columns)
std::abort();
// llvm::errs() << "Cannot construct matrix with " < < nColumns << " columns; limit is " << nReservedColumns << ".\n";
// exit(1);
} else if (isMatrixized)
{
if (columns > MatrixSize || rows > MatrixSize)
} else if (isMatrixized) {
if (columns > MatrixSize || rows > MatrixSize) {
std::cerr << "Size exceeds matrix size limit.\n";
std::abort();
}
}

}
Expand Down Expand Up @@ -78,8 +79,10 @@ void Matrix<Int>::resize(unsigned newNRows, unsigned newNColumns) {
if (newNColumns > MatrixSize || newNRows > MatrixSize)
VALIDINPUT = false;
if (isMatrixized) {
if (newNColumns > MatrixSize || newNRows > MatrixSize)
std::abort();
if (newNColumns > MatrixSize || newNRows > MatrixSize) {
// std::cerr << "Size exceeds matrix size limit.\n";
// std::abort();
}
}
if (newNColumns > nReservedColumns) {
if constexpr (isVectorized) {
Expand Down
2 changes: 1 addition & 1 deletion mlir/include/mlir/Analysis/Presburger/SafeInteger.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ inline void throwOverflowIf(bool cond) {
throw std::overflow_error("Overflow!");
}

// #define ENABLE_SME
#define ENABLE_SME


// #if __AVX512BW__ && __AVX512F__
Expand Down

0 comments on commit 954426b

Please sign in to comment.