Skip to content

Commit 679da78

Browse files
Merge pull request mala-project#645 from mala-project/feature-update-requirements
Update requirements
2 parents 575dc55 + 9c26435 commit 679da78

3 files changed

Lines changed: 13 additions & 8 deletions

File tree

docs/source/install/installing_mala.rst

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,16 @@ Prerequisites
77
MALA supports any Python version starting from ``3.10.4``. No upper limit on
88
Python versions are enforced. The most recent *tested* version is ``3.10.12``.
99

10-
MALA requires ``torch`` in order to function. As the installation of torch
11-
depends highly on the architecture you are using, ``torch`` will not
12-
automatically be installed alongside MALA. Please obtain a suitable version
13-
of ``torch`` from the `official website <https://pytorch.org/>`_ before
14-
continuing.
15-
1610
Installing the Python library
1711
*****************************
1812

13+
MALA requires ``torch`` (https://pytorch.org). We install the latest
14+
GPU-enabled version (see ``requirements.txt``),
15+
unless you have ``torch`` already installed (for example a version that supports
16+
AMD's ROCm a specific CUDA version).
17+
18+
To install the MALA package
19+
1920
* Download the MALA repository, e.g., with ``git clone git@github.com:mala-project/mala.git``
2021
* Change into the directory you cloned the repository to
2122
* Install MALA via ``pip install -e .[options]``
@@ -26,6 +27,7 @@ The following options are available:
2627
the version and thus needed for large code development (developers)
2728
- ``opt``: Installs ``oapackage``, so that the orthogonal array
2829
method may be used for large scale hyperparameter optimization (advanced users)
30+
- ``mpi``: Installs ``mpi4py`` for MPI parallelization (advanced users)
2931
- ``test``: Installs ``pytest`` which allows users to test the code (developers)
3032
- ``doc``: Installs all dependencies for building the documentary locally (developers)
3133

requirements.txt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1-
# See install/README.md
2-
##torch
1+
# The requirement below makes sure we have torch installed, even if that will
2+
# pull the latest GPU torch in case the user's environment may be misconfigured
3+
# such that a pre-installed torch is not found.
4+
torch
35

46
ase
57
mpmath

setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
extras = {
1818
"dev": ["bump2version"],
1919
"opt": ["oapackage", "scikit-learn"],
20+
"mpi": ["mpi4py"],
2021
"test": ["pytest", "pytest-cov"],
2122
"doc": open("docs/requirements.txt").read().splitlines(),
2223
"experimental": ["asap3", "dftpy", "minterpy"],

0 commit comments

Comments
 (0)