tenstorrent / tt-mlir

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

Add golden mode in flatbuffer through python TTIR lowering infra #1108

Closed tapspatel closed 1 week ago

tapspatel commented 2 weeks ago

Add respective runtime components to fallback to host and do golden comparison

tapspatel commented 2 weeks ago
LogicalResult translateTTNNToFlatbuffer(Operation *op, llvm::raw_ostream &os, llvm::DenseMap<std::string, std::string>& goldenMap) {

cannot append additional struct to this because function declaration only defines Operation and raw_ostream support

see: https://mlir.llvm.org/doxygen/namespacemlir.html#a86f6096a57734eed0290d2ab34ad5e79 TranslateFromMLIRFunction

tt-mpantic commented 1 week ago

@tapspatel any updates on this one ? This one is marked as P0, and we need to report weekly updates on P0 bugs...

tapspatel commented 1 week ago

I've finished getting flatbuffer support and storing golden data into the flatbuffer itself. I'm working on runtime changes to do the golden comparison now.