-
Notifications
You must be signed in to change notification settings - Fork 321
[Fix] fix type imcompatible error in #1115 #1180
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
Conversation
|
👋 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! 🚀 |
WalkthroughThis PR includes a type-consistency fix to the FloorMod operation in the packed API transformation, where the second argument is now typed as an IntImm matching the result's dtype, and adds a new test for cache kernel behavior with int64 and int32 addressing on CUDA. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~15 minutes
Suggested reviewers
Poem
Pre-merge checks and finishing touches✅ Passed checks (2 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
🧹 Nitpick comments (1)
testing/python/issue/test_tilelang_issue_1115.py (1)
6-32: Function name doesn't reflect full test scope.The function
test_int64_addressactually tests both int64 and int32 addressing modes (see lines 40-45). Consider renaming totest_address_typesortest_int64_and_int32_addressfor clarity.Apply this diff:
-def test_int64_address(): +def test_address_types():
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (2)
src/transform/make_packed_api.cc(1 hunks)testing/python/issue/test_tilelang_issue_1115.py(1 hunks)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (2)
- GitHub Check: Test for Python 3.12 with CUDA-12.8 (on self-hosted-nvidia)
- GitHub Check: Test for Python 3.12 with Metal (on macos-latest)
🔇 Additional comments (2)
src/transform/make_packed_api.cc (1)
436-436: Type-consistent FloorMod operands - fix looks good.The change correctly creates an
IntImmwith the same dtype asresultto ensure type compatibility in the FloorMod operation. This resolves the type mismatch error where the buffer's default index type (which can be int64 or int32) was not matching the plain integer constant.testing/python/issue/test_tilelang_issue_1115.py (1)
34-45: Test coverage validates the fix for both address types.The test correctly verifies that the type compatibility fix works for both int64 and int32 position types, directly addressing the issue mentioned in the PR. The test structure is sound and the assertions confirm correct behavior.
This pr fix error of #1115
Summary by CodeRabbit
Bug Fixes
Tests