Conversation
Signed-off-by: neuriv <330472862+neuriv@users.noreply.github.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository: NVIDIA/cuopt/.coderabbit.yaml Review profile: CHILL Plan: Enterprise Run ID: 📒 Files selected for processing (1)
Included review availability: Your plan provides up to 12 included reviews per hour; 11 remain after this review. 📝 WalkthroughWalkthroughThe MPS writer now traverses constraint-matrix rows from CSR offsets. This prevents invalid access when the matrix contains an empty row. ChangesMPS writer fix
Priority: ➖ Normal Estimated code review effort: 1 (Trivial) | ~5 minutes Change: Bug fix · Severity of issue fixed: Medium Suggested reviewers: Merge Risk: ⚪ Minimal · up to The MPS writer now preserves constant-only constraints without the reported empty-row crash, and no unresolved merge-blocking risk was identified. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches 💡 1🛠️ Fix failing CI checks 💡
🧪 Generate unit tests (beta)
Comment |
Description
Fixes #1663.
Iterate over the available CSR row-offset pairs when writing matrix coefficients. Keep writing constraint rows and bounds independently, preserving constant-only constraints even when the coefficient matrix is empty.
Testing
u22.04, 1xa100, cuda 12.9.86
unit test
script passed.