tenstorrent / tt-mlir

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

[TTNN Dialect] Convert ttnn.to_memory_config from DPS to non-DPS op #437

Closed svuckovicTT closed 3 weeks ago

svuckovicTT commented 3 weeks ago
jnie-TT commented 3 weeks ago

Hey @svuckovicTT as a sanity test, can you run

export SYSTEM_DESC_PATH=path/to/system/desc
llvm-lit -v test/ttmlir/Silicon
ttrt run build/test/ttmlir/Silicon

and make sure the outputs are correct?

svuckovicTT commented 3 weeks ago

Hey @svuckovicTT as a sanity test, can you run

export SYSTEM_DESC_PATH=path/to/system/desc
llvm-lit -v test/ttmlir/Silicon
ttrt run build/test/ttmlir/Silicon

and make sure the outputs are correct?

Hey @jnie, I tried running

ttrt query --save-artifacts
export SYSTEM_DESC_PATH=system_desc_folder=/localdev/svuckovic/_workspace/repos/tt-mlir/ttrt-artifacts
llvm-lit -v test/ttmlir/Silicon

but I'm getting

llvm-lit: /opt/ttmlir-toolchain/venv/lib/python3.10/site-packages/lit/TestingConfig.py:152: fatal: unable to parse config file '/localdev/svuckovic/_workspace/repos/tt-mlir/test/lit.cfg.py', traceback: Traceback (most recent call last):
  File "/opt/ttmlir-toolchain/venv/lib/python3.10/site-packages/lit/TestingConfig.py", line 140, in load_from_path
    exec(compile(data, path, "exec"), cfg_globals, None)
  File "/localdev/svuckovic/_workspace/repos/tt-mlir/test/lit.cfg.py", line 25, in <module>
    config.test_format = lit.formats.ShTest(not llvm_config.use_lit_shell)
AttributeError: 'NoneType' object has no attribute 'use_lit_shell'

on the last command... Have you seen this before?

On another note, can we add this check in CI? Is there an issue to track this?