tenstorrent / tt-mlir

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

`simple_sum.mlir` fails after metal uplift #528

Open nsmithtt opened 3 months ago

nsmithtt commented 3 months ago
2024-08-28 21:50:41,639 - DEBUG - starting loop=1/1 for binary=build/test/ttmlir/Silicon/TTNN/Output/simple_sum.mlir.tmp.ttnn                                                                                                                 
                 Always | FATAL    | Output size cannot fit input with offset                                                                                                                                                                 
Traceback (most recent call last):                                                                                                                                                                                                            
  File "/opt/ttmlir-toolchain/venv/bin/ttrt", line 8, in <module>                                                                                                                                                                             
    sys.exit(main())                                                                                                                                                                                                                          
  File "/opt/ttmlir-toolchain/venv/lib/python3.10/site-packages/ttrt/__init__.py", line 42, in main                                                                                                                                           
    request_api()                                                                                                                                                                                                                             
  File "/opt/ttmlir-toolchain/venv/lib/python3.10/site-packages/ttrt/common/api.py", line 939, in __call__                                                                                                                                    
    self.execute()                                                                                                                                                                                                                            
  File "/opt/ttmlir-toolchain/venv/lib/python3.10/site-packages/ttrt/common/api.py", line 904, in execute                                                                                                                                     
    _execute(self.ttnn_binaries)                                                                                                                                                                                                              
  File "/opt/ttmlir-toolchain/venv/lib/python3.10/site-packages/ttrt/common/api.py", line 863, in _execute                                                                                                                                    
    event = ttrt.runtime.submit(                                                                                                                                                                                                              
RuntimeError: TT_FATAL @ /localdev/nsmith/src/tt-mlir/third_party/tt-metal/src/tt-metal/ttnn/cpp/ttnn/operations/data_movement/pad/device/pad_op.cpp:21: input_tensor.get_legacy_shape()[0] + this->input_tensor_start[0] <= this->output_tens
or_shape[0]                                                                                                                                                                                                                                   
info:                                                                                                                                                                                                                                         
Output size cannot fit input with offset                                                                                                                                                                                                      
backtrace:                                                                                                                                                                                                                                    
 --- ttnn::operations::data_movement::Pad::validate_with_output_tensors(std::vector<tt::tt_metal::Tensor, std::allocator<tt::tt_metal::Tensor> > const&, std::vector<std::optional<tt::tt_metal::Tensor>, std::allocator<std::optional<tt::tt_
metal::Tensor> > > const&) const
nsmithtt commented 3 months ago

Introduced by https://github.com/tenstorrent/tt-mlir/pull/456