Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ttnn.conv2d fails with statically allocated circular buffer issue #16267

Closed
keerthana-r-mcw opened this issue Dec 23, 2024 · 2 comments
Closed

Comments

@keerthana-r-mcw
Copy link
Contributor

Describe the bug
ttnn.conv2d is failing with Statically allocated circular buffers in the unit test of SDXL_Turbo model for the resolution 1024x1024 when memory config is set to ttnn.L1_MEMORY_CONFIG
To Reproduce
Steps to reproduce the behavior:

  1. Checkout keerthanar/sdxl_turbo_unit_test
  2. Run the following command,
    pytest tests/ttnn/unit_tests/operations/test_new_conv2d.py::test_conv_sdxl_turbo_1024x1024_l1_failing_case
  3. The test will fail with the following error will occur,
    RuntimeError: TT_THROW @ ../tt_metal/impl/program/program.cpp:839: tt::exception E info: E Statically allocated circular buffers in program 23 clash with L1 buffers on core range [(x=0,y=0) - (x=7,y=6)]. L1 buffer allocated at 265216 and static circular buffer region ends at 356448

Please complete the following environment information:
WH (n150)

@pavlejosipovic
Copy link
Contributor

@keerthana-r-mcw One way to work around this is to set deallocate_activation and reallocate_halo_output to True
I've tested that out and pushed code here.
https://github.com/tenstorrent/tt-metal/tree/pjosipovic/sdxi_turbo_unit_test

@keerthana-r-mcw
Copy link
Contributor Author

@pavlejosipovic test got passed. Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants