# Windows: Cannot run ff-mpirun

**URL:** <https://community.freefem.org/t/windows-cannot-run-ff-mpirun/104>\
**Category:** FreeFEM installation\
**Created:** [August 1, 2019, 8:16pm UTC](https://community.freefem.org/t/windows-cannot-run-ff-mpirun/104 "2019-08-01T20:16:48Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![robin997](https://avatars.discourse-cdn.com/v4/letter/r/dfb087/32.png) [@robin997](https://community.freefem.org/u/robin997)\
**Post date:** [August 1, 2019, 8:16pm UTC](https://community.freefem.org/t/windows-cannot-run-ff-mpirun/104/1 "2019-08-01T20:16:48Z")

</div>

Hi,

I cannot seem to run ff-mpirun on command line. The files ff-mpirun and FreeFem+±mpi.exe are all present in the folder. Although I can run the parallel codes by replacing “ff-mpirun” by “FreeFem+±mpi”, it doesn’t seem to create multiple processes as expected.

Am I missing something during installation?

Thank you for the help

Robin Pham

---

<div class="post-metadata">

**Author:** ![frederichecht](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.freefem.org/frederichecht/32/15_2.png) [@frederichecht](https://community.freefem.org/u/frederichecht)\
**Post date:** [August 2, 2019, 7:30am UTC](https://community.freefem.org/t/windows-cannot-run-ff-mpirun/104/2 "2019-08-02T07:30:40Z")

</div>

Yes,  
I need help to build a windows script to do the same think.

---

<div class="post-metadata">

**Author:** ![simon.garnotel](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.freefem.org/simon.garnotel/32/11_2.png) [@simon.garnotel](https://community.freefem.org/u/simon.garnotel)\
**Post date:** [August 3, 2019, 5:29am UTC](https://community.freefem.org/t/windows-cannot-run-ff-mpirun/104/3 "2019-08-03T05:29:32Z")

</div>

You can not use `ff-mpirun` on Windows (this is an Unix script). You should use something like:

```auto
mpiexec.exe -np 4 FreeFrem++-mpi.exe file.edp

```

---

<div class="post-metadata">

**Author:** ![robin997](https://avatars.discourse-cdn.com/v4/letter/r/dfb087/32.png) [@robin997](https://community.freefem.org/u/robin997)\
**Post date:** [August 10, 2019, 7:13pm UTC](https://community.freefem.org/t/windows-cannot-run-ff-mpirun/104/4 "2019-08-10T19:13:55Z")

</div>

@simon.garnotel

Hello,

This command does create multiple processes, however, it seems to just create copies of the same process. I ran it with this code on github for example (8 processes), it creates 8 plots of the same mesh, all of them is Mesh Partition #1. I tested changing the number of processes, and they took the same time to solve.

> <https://github.com/FreeFem/FreeFem-sources/blob/develop/examples/ffddm/Maxwell_Cobracavity.edp>

I don’t know how it supposed to look like when run correctly… is it supposed to be plotting Partition #1, #2, #3, up to #8 ?

---

<div class="post-metadata">

**Author:** ![simon.garnotel](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.freefem.org/simon.garnotel/32/11_2.png) [@simon.garnotel](https://community.freefem.org/u/simon.garnotel)\
**Post date:** [August 10, 2019, 7:27pm UTC](https://community.freefem.org/t/windows-cannot-run-ff-mpirun/104/5 "2019-08-10T19:27:14Z")

</div>

I do not know what this code does, could you try on  
[https://github.com/FreeFem/FreeFem-sources/blob/master/examples/mpi/NSI3d-carac-mumps.edp](https://github.com/FreeFem/FreeFem-sources/blob/master/examples/mpi/NSI3d-carac-mumps.edp) to see if you have the same behavior ?

---

<div class="post-metadata">

**Author:** ![robin997](https://avatars.discourse-cdn.com/v4/letter/r/dfb087/32.png) [@robin997](https://community.freefem.org/u/robin997)\
**Post date:** [August 10, 2019, 11:33pm UTC](https://community.freefem.org/t/windows-cannot-run-ff-mpirun/104/7 "2019-08-10T23:33:59Z")

</div>

@simon.garnotel

Nvm, I found my problem. It was using the mpiexec of Open Mpi instead of Microsoft Mpi. I uninstalled Open Mpi and now everything is running again. Sorry.

---

<div class="post-metadata">

**Author:** ![Floran](https://avatars.discourse-cdn.com/v4/letter/f/8c91f0/32.png) [@Floran](https://community.freefem.org/u/Floran)\
**Post date:** [April 13, 2021, 12:25pm UTC](https://community.freefem.org/t/windows-cannot-run-ff-mpirun/104/8 "2021-04-13T12:25:42Z")

</div>

With Microsoft MPI v10, the command

> mpiexec -n 8 FreeFem++-mpi.exe NSI3d-carac-mumps.edp

is successfully launched from the “examples\mpi” folder

---

<div class="post-metadata">

**Author:** ![m.lbolok](https://avatars.discourse-cdn.com/v4/letter/m/d2c977/32.png) [@m.lbolok](https://community.freefem.org/u/m.lbolok)\
**Post date:** [October 6, 2023, 9:45am UTC](https://community.freefem.org/t/windows-cannot-run-ff-mpirun/104/9 "2023-10-06T09:45:42Z")

</div>

Hi, There is a mistyping in your answer. It must be:

```auto
mpiexec.exe -np 4 FreeFem++-mpi.exe file.edp

```
