This is an archive of the discontinued LLVM Phabricator instance.

[mlir][sparse] Add testing for bf16 and fallback for software bf16
ClosedPublic

Authored by bkramer on Jun 17 2022, 12:43 PM.

Details

Summary

This adds weak versions of the truncation libcalls in case the runtime
environment doesn't have them.

Diff Detail

Event Timeline

bkramer created this revision.Jun 17 2022, 12:43 PM
bkramer requested review of this revision.Jun 17 2022, 12:43 PM
aartbik accepted this revision.Jun 17 2022, 12:50 PM
aartbik added inline comments.
mlir/lib/ExecutionEngine/Float16bits.cpp
146

here and below, just curious if you meant "routine", or really "routing" (as in, different path)

mlir/test/Integration/Dialect/SparseTensor/CPU/sparse_sum_bf16.mlir
2

left indent

This revision is now accepted and ready to land.Jun 17 2022, 12:50 PM
This revision was landed with ongoing or failed builds.Jun 17 2022, 12:54 PM
This revision was automatically updated to reflect the committed changes.