summaryrefslogtreecommitdiff
path: root/mlir/benchmark/python
AgeCommit message (Collapse)Author
2023-12-06[mlir][benchmark] Fix broken benchmark script (#68841)Kohei Yamaguchi
The mbr script was broken, so this patch fixes it to follow the latest python binding.
2023-11-15Changed all code and comments that used the phrase "sparse compiler" to ↵Tim Harvey
instead use "sparsifier" (#71875) The changes in this p.r. mostly center around the tests that use the flag sparse_compiler (also: sparse-compiler).
2023-05-26[NFC][Py Reformat] Reformat python files in mlir subdirTobias Hieta
This is an ongoing series of commits that are reformatting our Python code. Reformatting is done with `black`. If you end up having problems merging this commit because you have made changes to a python file, the best way to handle that is to run git checkout --ours <yourfile> and then reformat it with black. If you run into any problems, post to discourse about it and we will try to help. RFC Thread below: https://discourse.llvm.org/t/rfc-document-and-standardize-python-code-style Differential Revision: https://reviews.llvm.org/D150782
2022-09-04[mlir][sparse] Expose SparseTensor passes as enums instead of opaque numbers ↵Nick Kreeger
for vectorization and parallelization options. The SparseTensor passes currently use opaque numbers for the CLI, despite using an enum internally. This patch exposes the enums instead of numbered items that are matched back to the enum. Fixes https://github.com/llvm/llvm-project/issues/53389 Differential Revision: https://reviews.llvm.org/D123876 Please also see: https://reviews.llvm.org/D118379 https://reviews.llvm.org/D117919
2022-09-03Revert "[mlir][sparse] Expose SparseTensor passes as enums instead of opaque"Nick Kreeger
This reverts commit ef25b5d93d0b5621eb5d0482abd30a4e127e9223.
2022-09-03[mlir][sparse] Expose SparseTensor passes as enums instead of opaqueNick Kreeger
numbers for vectorization and parallelization options. The SparseTensor passes currently use opaque numbers for the CLI, despite using an enum internally. This patch exposes the enums instead of numbered items that are matched back to the enum. Fixes https://github.com/llvm/llvm-project/issues/53389 Differential Revision: https://reviews.llvm.org/D123876 Please also see: https://reviews.llvm.org/D118379 https://reviews.llvm.org/D117919
2022-07-16[NFC] Remove obsolete all_passes_registration from integration tests.Stella Laurenzo
After https://reviews.llvm.org/D128593 this is not needed (and not available). Was missed in original landing because integration tests do not run on pre-merge.
2022-07-15[mlir][benchmark] Fix import in sparse benchmark.Ingo Müller
The benchmark currently fails to run because it cannot find the `func` symbol when using a `FuncOp`. I suppose that the breakage was introduced by the extraction of the func dialect from the builtin dialect that wasn't reflected in the benchmark yet. Reviewed By: aartbik Differential Revision: https://reviews.llvm.org/D129738
2022-05-13[mlir] Fix declaration of nano time function in benchmark infraDenys Shabalin
In d4555698f89af373f43dcb4aa1587231496bcd31, the name of nano precision timer function has changed from `nano_time` to `nanoTime`, but benchmarks were not updated to reflect that. This change addresses the discrepancy. Reviewed By: ftynse Differential Revision: https://reviews.llvm.org/D125217
2022-04-23Revert "[mlir][sparse] Expose SpareTensor passes as enums instead of opaque ↵Nick Kreeger
numbers for vectorization and parallelization options." This reverts commit d59cf901cbae7991f7847eb038d825efff1221ad. Build fails on NVIDIA Sparse tests: https://lab.llvm.org/buildbot/#/builders/61/builds/25447
2022-04-23[mlir][sparse] Expose SpareTensor passes as enums instead of opaque numbers ↵Nick Kreeger
for vectorization and parallelization options. The SparseTensor passes currently use opaque numbers for the CLI, despite using an enum internally. This patch exposes the enums instead of numbered items that are matched back to the enum. Fixes GitHub issue #53389 Reviewed by: aartbik, mehdi_amini Differential Revision: https://reviews.llvm.org/D123876
2022-03-16[mlir] Move the Builtin FuncOp to the Func dialectRiver Riddle
This commit moves FuncOp out of the builtin dialect, and into the Func dialect. This move has been planned in some capacity from the moment we made FuncOp an operation (years ago). This commit handles the functional aspects of the move, but various aspects are left untouched to ease migration: func::FuncOp is re-exported into mlir to reduce the actual API churn, the assembly format still accepts the unqualified `func`. These temporary measures will remain for a little while to simplify migration before being removed. Differential Revision: https://reviews.llvm.org/D121266
2022-03-01[mlir] Rename the Standard dialect to the Func dialectRiver Riddle
The last remaining operations in the standard dialect all revolve around FuncOp/function related constructs. This patch simply handles the initial renaming (which by itself is already huge), but there are a large number of cleanups unlocked/necessary afterwards: * Removing a bunch of unnecessary dependencies on Func * Cleaning up the From/ToStandard conversion passes * Preparing for the move of FuncOp to the Func dialect See the discussion at https://discourse.llvm.org/t/standard-dialect-the-final-chapter/6061 Differential Revision: https://reviews.llvm.org/D120624
2022-02-09[mlir] Use sparse-compiler pass in sparse benchmarkSaurabh Jha
This patch uses sparse-compiler option in mlir sparse tensor benchmark Reviewed By: aartbik Differential Revision: https://reviews.llvm.org/D118579
2022-02-06[mlir] Split out a new ControlFlow dialect from StandardRiver Riddle
This dialect is intended to model lower level/branch based control-flow constructs. The initial set of operations are: AssertOp, BranchOp, CondBranchOp, SwitchOp; all split out from the current standard dialect. See https://discourse.llvm.org/t/standard-dialect-the-final-chapter/6061 Differential Revision: https://reviews.llvm.org/D118966
2022-02-02[mlir] Move SelectOp from Standard to ArithmeticRiver Riddle
This is part of splitting up the standard dialect. See https://llvm.discourse.group/t/standard-dialect-the-final-chapter/ for discussion. Differential Revision: https://reviews.llvm.org/D118648
2022-01-31[mlir][bufferize] Clean up remaining references to `tensor-constant-bufferize`Matthias Springer
2022-01-27[mlir] Set up boilerplate build for MLIR benchmarksSaurabh Jha
This is is the start of the MLIR benchmarks. It sets up a command line tool along with conventions to define and run benchmarks using mlir's python bindings. Reviewed By: aartbik Differential Revision: https://reviews.llvm.org/D115174