Fix default maxiter for uneven batched solvers #2026
All Vouch review confidence checks passed
Residual risk 0.25 = Change Risk (0.45) × (1 − Review Confidence (0.45)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.45 · 157 lines diff across 1 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Shallow Review Depth
shallow_review_depth
0.344
Diff Size
diff_size
0.303
Ai Authored
ai_authored
0.050
Real PR Conversation Timeline
1 comments
"Review active on #2026"
general
weight: 0.35
efegokdemir
Summary
LinearOperator.max_batch_lengthfor the default iteration budget of batched solvers[1, 9]batch with no explicitmaxiterFixes #1988
Tests
python3 -m py_compile warp/_src/optim/linear.py warp/tests/test_linear_solvers.pygit diff --checkThe focused Warp test runner could not start because this checkout has no native libraries in
warp/bin;uv run --extra dev -m warp.tests ...stops during editable-build setup and requestsuv run build_lib.py. CUDA was not exercised.<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
Summary by CodeRabbit
Bug Fixes
Batched linear solves now use the largest subproblem size as the default iteration limit when available. Otherwise, the default is based on the full scalar degree-of-freedom count, supporting convergence across the batch.
Tests
Added CPU coverage for batched conjugate-gradient solves with differently sized subproblems, checking convergence and solution accuracy with both explicit and inferred subproblem sizes.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->