Skip to content

Commit e23176f

Browse files
committed
Merge branch 'main' of https://github.com/shishlo/PyORBIT3
2 parents 8fc1c2b + f99113c commit e23176f

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

README.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,9 +111,16 @@ python pyorbit3_sns_linac_mebt_hebt2.py
111111
## 5. MPI consideration
112112
By default, the build system will try to find MPI and compile against it. You can control which MPI to use with command line option when building.
113113
```bash
114-
pip install --config-settings=setup-args="-DMPI_USE=none" .
114+
pip install --config-settings=setup-args="-DUSE_MPI=none" .
115115
```
116116
Above will build PyORBIT without MPI even if MPI is present. You can change that option to `mpich`, `ompi`, `none` or `auto` (default).<br>
117+
| MPI flavor | Installation command |
118+
|---------------|--------------|
119+
| No MPI | `pip install --config-settings=setup-args="-DUSE_MPI=none" .` |
120+
| The first found MPI installation if any | `pip install --config-settings=setup-args="-DUSE_MPI=auto" .` |
121+
| OpenMPI | `pip install --config-settings=setup-args="-DUSE_MPI=ompi" .` |
122+
| MPICH | `pip install --config-settings=setup-args="-DUSE_MPI=mpich" .` |
123+
117124
Meson uses PKG_CONFIG to discover packages. It could be useful to help it to find your MPI installation:
118125

119126
```bash

0 commit comments

Comments
 (0)