Issue 71074
Summary MLIR Python benchmark not working
Labels mlir
Assignees
Reporter yifeihe007
    I'm trying to use the mlir python benchmark code:
llvm-project/mlir/benchmark/python/benchmark_sparse.py

Using the benchmark_sparse_mlir_multiplication function, I got error as following:

Traceback (most recent call last):
  File "/mimer/NOBACKUP/groups/snic2022-22-567/cc/1031/llvm-project/mlir/benchmark/python/benchmark_sparse.py", line 37, in <module>
    def benchmark_sparse_mlir_multiplication():
 File "/mimer/NOBACKUP/groups/snic2022-22-567/cc/1031/llvm-project/mlir/benchmark/python/benchmark_sparse.py", line 25, in run
    f()
  File "/mimer/NOBACKUP/groups/snic2022-22-567/cc/1031/llvm-project/mlir/benchmark/python/benchmark_sparse.py", line 82, in benchmark_sparse_mlir_multiplication
    compiler()
  File "/mimer/NOBACKUP/groups/snic2022-22-567/cc/1031/llvm-project/mlir/benchmark/python/benchmark_sparse.py", line 58, in compiler
    wrapped_func = emit_benchmark_wrapped_main_func(kernel_func, timer_func)
  File "/mimer/NOBACKUP/groups/snic2022-22-567/cc/1031/llvm-project/mlir/benchmark/python/common.py", line 78, in emit_benchmark_wrapped_main_func
    memref_of_i64_type = ir.MemRefType.get([-1], i64_type)
mlir._mlir_libs._site_initialize.<locals>.MLIRError: Invalid type:
error: unknown: invalid memref size

This error comes from emit_benchmark_wrapped_main_func in llvm-project/mlir/benchmark/python/common.py, this piece of code seems outdated and not used in any tests.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to