You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Alternatively, the conda-forge community provides ready-to-use binary packages for four MPI implementations
45
+
(see `MPI4Py documentation <https://mpi4py.readthedocs.io/en/stable/install.html#conda-packages>`_ for more
46
+
details). In this case, you can defer the installation to the stage when the conda environment for your project
47
+
is created - see below for more details.
36
48
37
49
Verify MPI Installation
38
50
=======================
@@ -42,6 +54,17 @@ After installing MPI, verify its installation by opening a terminal and running
42
54
43
55
>> mpiexec --version
44
56
57
+
Install CUDA-Aware MPI (optional)
58
+
=================================
59
+
To be able to achieve the best performance when using PyLops-MPI with CuPy arrays, a CUDA-Aware version of
60
+
MPI must be installed.
61
+
62
+
For `Open MPI`, the conda-forge package has built-in CUDA support, as long as a pre-installed CUDA is detected.
63
+
Run the following `commands <https://docs.open-mpi.org/en/v5.0.x/tuning-apps/networking/cuda.html#how-do-i-verify-that-open-mpi-has-been-built-with-cuda-support>`_
64
+
for diagnostics.
65
+
66
+
For the other MPI implementations, refer to their specific documentation.
67
+
45
68
Install NCCL (optional)
46
69
=======================
47
70
To obtain highly-optimized performance on GPU clusters, PyLops-MPI also supports the Nvidia's collective communication calls
@@ -103,6 +126,15 @@ For a ``conda`` environment, run
103
126
This will create and activate an environment called ``pylops_mpi``, with all
104
127
required and optional dependencies.
105
128
129
+
If you want to also install MPI as part of the creation process of the conda environment,
130
+
modify the ``environment-dev.yml`` file by adding ``openmpi``\``mpich`\``impi_rt``\``msmpi``
131
+
just above ``mpi4py``. Note that only ``openmpi`` provides a CUDA-Aware MPI installation.
132
+
133
+
If you want to leverage CUDA-Aware MPI but prefer to use another MPI installation, you must
134
+
either switch to a `Pip`-based installation (see below), or move ``mpi4py`` into the ``pip``
135
+
section of the ``environment-dev.yml`` file and export the variable ``MPICC`` pointing to
136
+
the path of your CUDA-Aware MPI installation.
137
+
106
138
If you want to enable `NCCL <https://developer.nvidia.com/nccl>`_ in PyLops-MPI, run this instead
0 commit comments