README: add a quick conda setup for CPU tests - #15
Merged
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds a quick conda setup to the Install from PyPI section, for CPU tests.
pip install sbd-eigensolvercompiles the extension locally — the sdist bundlesthe 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, sonothing 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-eigensolveropenmpiis named explicitly because that is what this path is tested against —conda-forge's
mpichis 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.