Skip to content

pyamg: add build-pyamg.yml for riscv64 wheels - #1780

Merged
luhenry merged 2 commits into
mainfrom
pyamg
Sep 12, 2026
Merged

luhenry merged 2 commits into
mainfrom
pyamg

Conversation

@luhenry

@luhenry luhenry commented Sep 11, 2026

Copy link
Copy Markdown
Member

Compiles pyamg's amg_core pybind11 C++ extensions (algebraic multigrid solver kernels) into per-interpreter wheels. Upstream publishes no riscv64 wheel.

Mirrors upstream's wheels.yml.

Differs from upstream

  • Test command adds -I - the checked-out pyamg/ source tree otherwise shadows the installed wheel, and amg_core/__init__.py has no pure-Python fallback so the shadowed import fails collection outright.

Testing

  • Wheel-level: upstream's own pytest, run via --pyargs pyamg against the installed wheel. Reproduces on any platform (confirmed on macOS/arm64 too), not riscv64-specific.

License: OK

Patches

  • 0001-fix-util-utils-duplicate-zeros-in-filter_operator.patch - Backport [upstream 9f8299b]. Without it, filter_operator returns wrong values under scipy>=1.17 (a stale has_canonical_format flag skips deduplication of an explicit-zero entry).
  • 0002-fix-util-linalg-condest-non-symmetric-matvec-overri.patch - To upstream (can't file against pyamg/pyamg from this project). Without it, condest(symmetric=False) silently ignores its matvec override under scipy>=1.17, returning roughly sqrt of the true condition number.

Built on cp312; 269 passed, 1 skipped.

luhenry added a commit that referenced this pull request Sep 11, 2026
@luhenry
luhenry merged commit e13c13a into main Sep 12, 2026
10 checks passed
@luhenry
luhenry deleted the pyamg branch September 12, 2026 19:28
@luhenry luhenry linked an issue Sep 12, 2026 that may be closed by this pull request
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.

pyamg riscv64 support

1 participant