-
Notifications
You must be signed in to change notification settings - Fork 357
[BugFix] Add shuffle elect condition for ptx_arrive_barrier() in TMA barrier injection #1396
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
base: main
Are you sure you want to change the base?
Conversation
…barrier injection - Implemented a new visit method to handle ptx_arrive_barrier() calls. - Added conditional logic to guard producer arrivals with tl_shuffle_elect() when warp specialization is enabled.
|
👋 Hi! Thank you for contributing to the TileLang project. Please remember to run We appreciate you taking this step! Our team will review your contribution, and we look forward to your awesome work! 🚀 |
WalkthroughAdded a new VisitStmt_ override in the TmaBarrierRewriter class to intercept ptx_arrive_barrier() calls. When warp specialization is enabled and the context is a producer, the barrier arrival is now conditionally guarded by tl_shuffle_elect(128), otherwise delegating to the base visitor. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 minutes
Poem
Pre-merge checks and finishing touches❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
🧰 Additional context used🧠 Learnings (1)📚 Learning: 2025-09-12T09:47:46.474ZApplied to files:
🧬 Code graph analysis (1)src/transform/inject_tma_barrier.cc (2)
🔇 Additional comments (2)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary by CodeRabbit
✏️ Tip: You can customize this high-level summary in your review settings.