This is an archive of the discontinued LLVM Phabricator instance.

[mlir][sparse][taco] Split the evaluate method into compile and compute.
ClosedPublic

Authored by bixia on Mar 6 2022, 7:35 PM.

Details

Summary

This is to align with the PyTACO API better.

Modify an existing unit test to test the new routines.

Diff Detail

Event Timeline

bixia created this revision.Mar 6 2022, 7:35 PM
Herald added a project: Restricted Project. · View Herald Transcript
bixia requested review of this revision.Mar 6 2022, 7:35 PM
bixia retitled this revision from [mlir][sparse][taco] Split the evalutate method into compile and compute. to [mlir][sparse][taco] Split the evaluate method into compile and compute..Mar 6 2022, 7:37 PM

This looks really good! One question but then good to go!

mlir/test/Integration/Dialect/SparseTensor/taco/tools/mlir_pytaco.py
986

Maybe add a comment to the doc that calling compile() the second time does not do anything.
(perhaps we want to pass a [default false] flag the forces re-compilation (useful for timing?)

WDYT?

bixia updated this revision to Diff 413554.Mar 7 2022, 10:34 AM

Added force_recompile to the compile method.

mlir/test/Integration/Dialect/SparseTensor/taco/tools/mlir_pytaco.py
986

Good suggestion!
Added force_recompile and modified the comment.

aartbik accepted this revision.Mar 7 2022, 11:43 AM

Looking good!

This revision is now accepted and ready to land.Mar 7 2022, 11:43 AM
bixia updated this revision to Diff 413647.Mar 7 2022, 3:38 PM

Rebased and resolved conflicts.