tenstorrent / tt-mlir

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

test_div golden pcc fix #1227

Closed tapspatel closed 3 days ago

tapspatel commented 1 week ago

test_div -----------executing golden comparision----------- found location=0 PCC=0.0003099921745758438 Max ATOL Delta: 38743.99609375, Max RTOL Delta: 1503072256.0, PCC: 0.0003099921745758438 -----------finished executing golden comparision-----------

repro

# mlir
source env/activate
cmake -G Ninja -B build -DCMAKE_BUILD_TYPE=Release -DCMAKE_C_COMPILER=clang-17 -DCMAKE_CXX_COMPILER=clang++-17 -DCMAKE_CXX_COMPILER_LAUNCHER=ccache -DTTMLIR_ENABLE_RUNTIME=ON -DTT_RUNTIME_ENABLE_PERF_TRACE=ON -DTTMLIR_ENABLE_RUNTIME_TESTS=ON -DTTMLIR_ENABLE_STABLEHLO=ON -DTT_RUNTIME_DEBUG=ON
cmake --build build

# ttrt
source env/activate
cmake --build build -- ttrt

ttrt query --save-artifacts
export SYSTEM_DESC_PATH=/path/to/system/file/from/previous/command

python python/test_infra/test_ttir_ops_ttnn.py
ttrt run test_eq.ttnn --golden
tapspatel commented 3 days ago

resolved in PR: https://github.com/tenstorrent/tt-mlir/pull/1218