Skip to main content

dendra-solvers

C++ PyTorch extensions for fast, differentiable implicit solvers in Dendra.

Installation

pip install dendra-solvers

Python 3.10+ and PyTorch 2.12+ are required. When a compatible wheel is available, installation does not require a compiler. Stable-ABI wheels work across supported Python and PyTorch versions on the same operating system and CPU architecture.

For an HPC environment or custom PyTorch build, install PyTorch first and build the extension against that installation:

python -m pip install "torch>=2.12.0" "setuptools>=70.1,<82" ninja wheel
MAX_JOBS=1 python -m pip install --no-build-isolation --no-cache-dir \
  --no-deps --no-binary=dendra-solvers dendra-solvers

The build uses the C++ standard selected by your installed PyTorch. Use a C++20-capable compiler for current PyTorch releases. Stable-ABI builds do not need rebuilding just because PyTorch is upgraded; see installation and clean rebuilds for wheel availability, source builds, and upgrading older installations.

Useful build options:

  • DENDRA_NATIVE=1 enables host-specific compiler optimizations. Do not use it for redistributable builds.
  • DENDRA_OMP=1 enables OpenMP when its runtime is available.
  • MAX_JOBS=1 limits compilation concurrency on memory-constrained systems.

Testing

For a development checkout:

python -m pip install "torch>=2.12.0" "setuptools>=70.1,<82" ninja wheel numpy pytest
MAX_JOBS=1 python -m pip install -v --no-build-isolation --no-deps -e .
python -c "import dendra_solvers._ext as ext; print(ext.__file__)"
python -m pytest -q -ra

Solver contracts and PyTorch transform usage are documented in docs/.

See Contributing for development tools, commit conventions, and versioning.

Release files for dendra-solvers 0.3.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for dendra-solvers 0.3.1
File Size Uploaded
dendra_solvers-0.3.1.tar.gz 64.0 kB Details

Built distributions (wheels)

Table of built distributions (wheels) for dendra-solvers 0.3.1
File
dendra_solvers-0.3.1-cp310-abi3-win_amd64.whl CPython 3.10 abi3 Windows x86-64 Details
dendra_solvers-0.3.1-cp310-abi3-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl CPython 3.10 abi3 Linux glibc 2.28+ x86-64, Linux glibc 2.24+ x86-64 Details
dendra_solvers-0.3.1-cp310-abi3-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl CPython 3.10 abi3 Linux glibc 2.24+ ARM64, Linux glibc 2.28+ ARM64 Details
dendra_solvers-0.3.1-cp310-abi3-macosx_14_0_arm64.whl CPython 3.10 abi3 macOS 14.0+ ARM64 Details

Total release size: 4.1 MB

Release files / dendra_solvers-0.3.1.tar.gz

Download URL dendra_solvers-0.3.1.tar.gz
Size 64.0 kB
Tags Source
SHA-256 checksum
How to use checksums
4ee9998faab0ce3b62654ca819b5c28900aa304ad1fc5385c8a2da1d11066e96
BLAKE2b-256 checksum
How to use checksums
66d7a38a29be39b418c3e9af117c9e804dfc6549e110c509c661d79a857bec50
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 24, 2026.

Transparency log

Release files / dendra_solvers-0.3.1-cp310-abi3-win_amd64.whl

Download URL dendra_solvers-0.3.1-cp310-abi3-win_amd64.whl
Size 310.3 kB
Tags CPython 3.10 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
62bcb033405733ea7141d2c8cba789d05328d1e48438d4d7d3f347a06f2d5bde
BLAKE2b-256 checksum
How to use checksums
1fb6f8e5c379491dff47930f406f61aaa3436e7cc35cdd881193501c738bb49f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 24, 2026.

Transparency log

Release files / dendra_solvers-0.3.1-cp310-abi3-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl

Download URL dendra_solvers-0.3.1-cp310-abi3-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Size 1.8 MB
Tags CPython 3.10 Linux glibc 2.24+ x86-64 Linux glibc 2.28+ x86-64 abi3
SHA-256 checksum
How to use checksums
0ffc204094c09ee4f314b5297f4dbfce74a77842c4c68ae97ebf2b6a4649e398
BLAKE2b-256 checksum
How to use checksums
dba3d9246e827eda36bba32d1ae981e4653111dfdec5550a9a01575fb8dec1e3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 24, 2026.

Transparency log

Release files / dendra_solvers-0.3.1-cp310-abi3-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl

Download URL dendra_solvers-0.3.1-cp310-abi3-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Size 1.7 MB
Tags CPython 3.10 Linux glibc 2.24+ ARM64 Linux glibc 2.28+ ARM64 abi3
SHA-256 checksum
How to use checksums
d19970f20f87a75e3e1f98ba54f0032a4790be894179c376d8d4b46efac38b47
BLAKE2b-256 checksum
How to use checksums
001b855406e2dfd3fa585255cad4944369d22cd8c32d238f752e8233f012bf99
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 24, 2026.

Transparency log

Release files / dendra_solvers-0.3.1-cp310-abi3-macosx_14_0_arm64.whl

Download URL dendra_solvers-0.3.1-cp310-abi3-macosx_14_0_arm64.whl
Size 153.3 kB
Tags CPython 3.10 abi3 macOS 14.0+ ARM64
SHA-256 checksum
How to use checksums
e30e8d5af3be496ba1cee496fca114bd99b74dde5c931b96e8ce08ec1996d8fe
BLAKE2b-256 checksum
How to use checksums
8586aacc91bd56a978d8c3e6e9ae8f983824ede484daeca9e1371023f0675463
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 24, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.3.1 This release

5 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page