Skip to content

README: add a quick conda setup for CPU tests - #15

Merged
hfwen0502 merged 1 commit into
mainfrom
readme-conda-quickstart
Sep 2, 2026
Merged

README: add a quick conda setup for CPU tests#15
hfwen0502 merged 1 commit into
mainfrom
readme-conda-quickstart

Conversation

@hfwen0502

Copy link
Copy Markdown
Collaborator

Adds a quick conda setup to the Install from PyPI section, for CPU tests.

pip install sbd-eigensolver compiles the extension locally — the sdist bundles
the sbd headers, but there are no wheels — so an MPI and a BLAS have to be present
already. The section did not say how to get them. A conda-forge environment
supplies both, plus the Python build tools and pyscf, inside the environment, so
nothing is installed system-wide:

conda create -n sbd python=3.12 pybind11 numpy setuptools wheel pyscf pip \
    mpi4py openmpi openblas -c conda-forge
conda activate sbd
pip install sbd-eigensolver

openmpi is named explicitly because that is what this path is tested against —
conda-forge's mpich is not interchangeable here.

Intended for a quick CPU test: conda-forge's MPI is not built with CUDA support,
so the GPU backends still need a source install.

Also links Miniforge.

Documentation only; no code changes.

Installing from PyPI compiles the extension locally, so an MPI and a BLAS have
to be present already; the section did not say how to get them. A conda-forge
environment supplies both, plus the Python build tools and pyscf, inside the
environment, so nothing is installed system-wide:

  conda create -n sbd python=3.12 pybind11 numpy setuptools wheel pyscf pip \
      mpi4py openmpi openblas -c conda-forge
  conda activate sbd
  pip install sbd-eigensolver

openmpi is named explicitly because that is what this path is tested against;
conda-forge's mpich is not interchangeable here. Intended for a quick CPU test:
conda-forge's MPI is not built with CUDA support, so GPU backends still need a
source install. Also links Miniforge.
@hfwen0502
hfwen0502 merged commit b41f141 into main Sep 2, 2026
6 checks passed
@hfwen0502
hfwen0502 deleted the readme-conda-quickstart branch September 2, 2026 16:57
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