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

Adding CCL Async test cases to TG nightly and bug fix #16700

Merged
merged 3 commits into from
Jan 15, 2025

Conversation

caixunshiren
Copy link
Contributor

@caixunshiren caixunshiren commented Jan 13, 2025

Overview

  • Adding CCL async test cases to TG nightly
  • bug fixes for all gather (core assignment, semaphore reset logic)

Known Issues

Several issues are exposed in CCLs by these test cases. These failing ones are commented out for now:

Checklist

@caixunshiren caixunshiren self-assigned this Jan 13, 2025
Comment on lines +282 to +283
if enable_persistent_fabric:
ttnn.synchronize_devices(mesh_device, sub_device_ids=sub_device_stall_group)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Was this added for debug or what's the purpose of this? Should be removed?

Copy link
Contributor Author

@caixunshiren caixunshiren Jan 14, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is needed for multi-iteration to prevent race condition, when persistent fabric is enabled. One device might get too fast and increment the semaphore on the slow device for the next call of ccl before the slow device reset the semaphore for previous iteration. There seems to be no good way to prevent it at the moment unless a sync is introduced or a new global semaphore is used every time (but that's essentially a sync).

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this something that should be documented for consumers of the API? Seems like an important detail

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a separate issue from #16634?

@caixunshiren caixunshiren merged commit 095d101 into main Jan 15, 2025
216 of 218 checks passed
@caixunshiren caixunshiren deleted the xuncai/tg_ccl_tests branch January 15, 2025 16:58
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.

4 participants