Skip to content

Prefer QDLDL over Apple Accelerate in AUTO on macOS#210

Merged
bodono merged 1 commit into
masterfrom
prefer-qdldl-on-macos
Apr 27, 2026
Merged

Prefer QDLDL over Apple Accelerate in AUTO on macOS#210
bodono merged 1 commit into
masterfrom
prefer-qdldl-on-macos

Conversation

@bodono

@bodono bodono commented Apr 27, 2026

Copy link
Copy Markdown
Owner

Summary

  • Swap the macOS branch of _resolve_auto to return the bundled QDLDL (_scs_direct) instead of trying _scs_accelerate first.
  • Accelerate is still available explicitly via LinearSolver.ACCELERATE — only the AUTO default changes.
  • Update the macOS README bullet and consolidate the darwin auto-detect tests in test_scs_coverage.py to assert the new behavior (QDLDL is returned without attempting _scs_accelerate).

Test plan

  • pytest test/test_scs_coverage.py -k "linear_solver or resolve_auto"
  • python -c "import scs; print(scs._resolve_auto())" on macOS returns _scs_direct
  • LinearSolver.ACCELERATE continues to work when the wheel includes it

🤖 Generated with Claude Code

Swap the macOS auto-detect order so the bundled QDLDL direct solver is
selected first; Accelerate is still available via
LinearSolver.ACCELERATE.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
bodono added a commit to cvxgrp/scs that referenced this pull request Apr 27, 2026
Companion to bodono/scs-python#210, which switches the macOS branch of
_resolve_auto to prefer the bundled QDLDL over Apple Accelerate.
Accelerate remains available via LinearSolver.ACCELERATE.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@bodono bodono merged commit 2f2f437 into master Apr 27, 2026
34 checks passed
@bodono bodono deleted the prefer-qdldl-on-macos branch April 27, 2026 08:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant