tenstorrent / tt-mlir

Tenstorrent MLIR compiler
https://tenstorrent.github.io/tt-mlir/
Apache License 2.0
76 stars 13 forks source link

InsertCCL pass #708

Open nsmithtt opened 2 months ago

nsmithtt commented 2 months ago

Depends on:

This pass needs to contain the core logic of where/how to automatically insert CCL ops, I think a bit of prototyping should be done because it feels like there could be a generic OpInterface that TTNN ops implement to denote which dimensions they require to be gathered if sharded across multiple devices.

At first this pass can just special case the ops as there are really only a few categories of ops we need to worry about

nsmithtt commented 2 months ago

After preliminary prototyping and investigation, I think this task is worth having a tech spec for to high level outline the algorithm.