This is an archive of the discontinued LLVM Phabricator instance.

[mlir][Linalg] Add support for tileAndDistribute on tensors.
ClosedPublic

Authored by nicolasvasilache on Oct 30 2020, 9:47 AM.

Details

Summary

scf.parallel is currently not a good fit for tiling on tensors.
Instead provide a path to parallelism directly through scf.for.
For now, this transformation ignores the distribution scheme and always does a block-cyclic mapping (where block is the tile size).

Diff Detail

Event Timeline

nicolasvasilache requested review of this revision.Oct 30 2020, 9:47 AM
mravishankar accepted this revision.Oct 31 2020, 7:19 AM

Change is fairly straight-forward, but not sure what the issue with scf.parallel is. Is it the semantics of the op or the implementation of the distribution logic. If it is the latter, then maybe I can take a look there. Change looks fine as is though.

This revision is now accepted and ready to land.Oct 31 2020, 7:19 AM
This revision was landed with ongoing or failed builds.Nov 16 2020, 3:16 AM
This revision was automatically updated to reflect the committed changes.