# mpiexec

Run an MPI script.

## 📝 Syntaxe

* mpiexec(script)
* mpiexec(script, nb\_process)
* r = mpiexec(script, nb\_process)
* \[r, msg] = mpiexec(script, nb\_process)

## 📥 Argument d'entrée

* script - an filename with .m extension.
* nb\_process - an integer value: number of process.

## 📤 Argument de sortie

* r - an integer value: maximum of the exit status values of all of the processes created by mpiexec.

## 📄 Description

Run an MPI script in nelson.

MPI process are launched in CLI mode (no gui, no plot).

## 💡 Exemple

```matlab

mpiexec([modulepath('mpi'), '/examples/help_examples/MPI_Allreduce.m'], 4)
```

## 🔗 Voir aussi

[MPI\_Init](https://nelson-9.gitbook.io/Nelson/markdown/fr/mpi/mpi_init).

## 🕔 Historique

| Version | 📄 Description   |
| ------- | ---------------- |
| 1.0.0   | version initiale |
