This is an archive of the discontinued LLVM Phabricator instance.

[mlir][sparse] Add option enable-buffer-initialization to initialize the memory buffers for sparse tensors to support debugging.
ClosedPublic

Authored by bixia on Nov 7 2022, 2:38 PM.

Diff Detail

Event Timeline

bixia created this revision.Nov 7 2022, 2:38 PM
Herald added a project: Restricted Project. · View Herald Transcript
bixia requested review of this revision.Nov 7 2022, 2:38 PM
aartbik added inline comments.Nov 7 2022, 2:44 PM
mlir/lib/Dialect/SparseTensor/Transforms/SparseBufferRewriting.cpp
711

as discussed offline, no env variable but a compiler option

bixia updated this revision to Diff 473817.Nov 7 2022, 3:51 PM

Use compiler option instead of env variable.

bixia marked an inline comment as done.Nov 7 2022, 3:51 PM
bixia retitled this revision from [mlir][sparse] Initialize memory buffer for sparse tensors when environment variable SPARSE_TENSOR_INITIALIZE_BUFFER=1. to [mlir][sparse] Add option enable-buffer-initialization to initialize the memory buffers for sparse tensors to support debugging..Nov 8 2022, 7:29 AM
aartbik accepted this revision.Nov 8 2022, 9:37 AM
This revision is now accepted and ready to land.Nov 8 2022, 9:37 AM