Add new option (enable-runtime-library) to sparse compiler pipeline, it allows us to decide whether we need to rewrite operations (e.g., concatenate, reshape) within sparsification (when using codegen) or convert them after sparsification (when using runtime library).
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
mlir/include/mlir/Dialect/SparseTensor/Pipelines/Passes.h | ||
---|---|---|
80 | I love your enthusiasm adding this TODO ;-) | |
mlir/include/mlir/Dialect/SparseTensor/Transforms/Passes.h | ||
72–75 | if we document the value (good practice), let's also document the other two false and I would say, "enable" instead of "use" to stay in the same terminology as used in the flag description | |
mlir/include/mlir/Dialect/SparseTensor/Transforms/Passes.td | ||
102 | Enable | |
mlir/lib/Dialect/SparseTensor/Transforms/SparseTensorPasses.cpp | ||
54–55 | move this comment and decl down too | |
mlir/lib/Dialect/SparseTensor/Transforms/SparseTensorRewriting.cpp | ||
308 | If not enableRT (flag name) .... |
mlir/include/mlir/Dialect/SparseTensor/Transforms/Passes.h | ||
---|---|---|
73 | oops, supernit, we usually put it before the value, as in /*disable SIMD Index32 = */false | |
mlir/lib/Dialect/SparseTensor/Pipelines/SparseTensorPipelines.cpp | ||
68 | can we actually run this always, even for lib cases to clean up? This may impact some CHECK tests though, so I am okay either way | |
mlir/test/Integration/Dialect/SparseTensor/CPU/sparse_codegen_dim.mlir | ||
14 | Move down one line also, rename MAT into DCSR |
mlir/lib/Dialect/SparseTensor/Pipelines/SparseTensorPipelines.cpp | ||
---|---|---|
68 | Actually it does not impact any CHECT tests, probably only end-to-end integrate test are involved here, so it wouldn't change the result. |
I love your enthusiasm adding this TODO ;-)