scalehls icon indicating copy to clipboard operation
scalehls copied to clipboard

small kernels segfault

Open SerenaC94 opened this issue 2 years ago • 0 comments

I have a couple of very small polybench kernels that cause scaleHLS to crash with the following error:

scalehls-opt: scalehls/polygeist/llvm-project/mlir/lib/Dialect/Affine/Utils/LoopUtils.cpp:464: mlir::LogicalResult performPreTilingChecks(MutableArrayRef<mlir::AffineForOp>, ArrayRef<t>) [t = unsigned int]: Assertion `input.size() == tileSizes.size() && "Too few/many tile sizes"' failed.
PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace.
Stack dump:
0.      Program arguments: scalehls-opt test_symm.mlir -debug-only=scalehls "-scalehls-dse-pipeline=top-func=test_symm target-spec=scalehls/samples/polybench/config.json" 

Is there a lower limit to the size of kernels that can be handled? These were symm 2x2 and trmm 2x2, but I have other 2x2 kernels that work fine.

SerenaC94 avatar Apr 11 '22 21:04 SerenaC94