chore: remove sm scale from sm limit setter - #232
Conversation
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: KaminariOS The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
Welcome @KaminariOS! It looks like this is your first PR to Project-HAMi/HAMi-core 🎉 |
|
Warning Review limit reached
Next review available in: 50 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughThe SM memory-limit API now accepts an explicit limit and assigns it directly, replacing the previous scale-based behavior. Initialization guards and device validation remain unchanged. ChangesSM limit API
Estimated code review effort: 1 (Trivial) | ~5 minutes Suggested labels: Suggested reviewers: Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 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 |
Signed-off-by: kosumi <chankocyo@gmail.com>
fb317b2 to
c37b40b
Compare
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@src/multiprocess/multiprocess_memory_limit.c`:
- Around line 1241-1245: Update the device validation in the surrounding
function so an invalid dev value logs the error and returns before reaching the
sm_limit[dev] assignment. Preserve the existing behavior for valid device IDs,
and fix the noted whitespace in the touched lines.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro Plus
Run ID: 050c1fa6-25b0-4935-9e5f-24bb4851c04a
📒 Files selected for processing (2)
src/multiprocess/multiprocess_memory_limit.csrc/multiprocess/multiprocess_memory_limit.h
Signed-off-by: kosumi <chankocyo@gmail.com>
75a1838 to
3994d31
Compare
|
/lgtm |
|
nit --> get_current_device_sm_limit has the same issue (missing return on illegal dev). out of scope here, could be a separate issue.. |
Actually, there are 6 of them. But that should indeed be a separate issue. The one I changed is a setter not used anywhere so it should be fine. |
Closes #231
This PR removes the ambiguous sm-scale API path and keeps SM limit setting as an explicit limit value.
Summary by CodeRabbit
New Features
Bug Fixes
Breaking Changes
limit(absolute) instead of ascalevalue.