This is an archive of the discontinued LLVM Phabricator instance.

[mlir][sparse] Improving error messages for openSparseTensorCOO
ClosedPublic

Authored by wrengr on Mar 9 2022, 1:49 PM.

Diff Detail

Event Timeline

wrengr created this revision.Mar 9 2022, 1:49 PM
wrengr requested review of this revision.Mar 9 2022, 1:49 PM
wrengr added a comment.Mar 9 2022, 1:55 PM

With the previous error message I had some difficulty tracking down a bug, since it only printed "Cannot find (null)" without any stacktrace or other information to go on. Arguably all the other fprintf calls in this function should be updated to give a bit more information too, but I'll leave that for future work.

aartbik added inline comments.Mar 9 2022, 2:50 PM
mlir/lib/ExecutionEngine/SparseTensorUtils.cpp
666–667

Typo: Received

wrengr updated this revision to Diff 414231.Mar 9 2022, 3:51 PM

pushing the error message beck to the root cause

wrengr updated this revision to Diff 414232.Mar 9 2022, 3:53 PM
wrengr marked an inline comment as done.

Correcting typo

aartbik accepted this revision.Mar 9 2022, 4:06 PM
This revision is now accepted and ready to land.Mar 9 2022, 4:06 PM