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

Update DPRINT to be disabled properly #8624

Merged
merged 2 commits into from
May 20, 2024
Merged

Update DPRINT to be disabled properly #8624

merged 2 commits into from
May 20, 2024

Conversation

tt-dma
Copy link
Contributor

@tt-dma tt-dma commented May 18, 2024

Previously was relying on compiler optimizing out the empty dprint object creation and stream operator calls, but it looks like that doesn't work. Just use an if (0) here to accomplish this, which keeps the syntax exactly the same as stdout.

Also fix a thread safety issue with the dprint server teardown.

Passing CI: https://github.com/tenstorrent/tt-metal/actions/runs/9134780012

@tt-dma tt-dma requested review from tt-aho and pgkeller May 18, 2024 00:19
@tt-dma tt-dma merged commit d5debf4 into main May 20, 2024
5 checks passed
@tt-dma tt-dma deleted the dma/8575_dprint_disable branch May 20, 2024 16:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants