Skip to content

Commit 7d79b84

Browse files
committed
Updated README with MPI info
1 parent 709a433 commit 7d79b84

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,3 +107,15 @@ Navigate to your **examples** directory and launch tracking of SNS linac.
107107
cd examples/SNS_Linac/pyorbit3_linac_model/
108108
python pyorbit3_sns_linac_mebt_hebt2.py
109109
```
110+
111+
## 5. MPI consideration
112+
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.
113+
```bash
114+
pip install --config-settings=setup-args="-DMPI_USE=none" .
115+
```
116+
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+
Meson uses PKG_CONFIG to discover packages. It could be useful to help it to find your MPI installation:
118+
119+
```bash
120+
PKG_CONFIG_PATH=/opt/lib/pkgconfig pip install --verbose .
121+
```

0 commit comments

Comments
 (0)