CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (https://www.cfd-online.com/Forums/openfoam-installation/)
-   -   [Other] msmpi and cygwin (https://www.cfd-online.com/Forums/openfoam-installation/189128-msmpi-cygwin.html)

Ankit.Dave June 14, 2017 01:49

msmpi and cygwin
 
Hi,

I am new to OpenFOAM and trying to simulate run employing all 4 processor my machine have.

I have looked into user guide and many forums about it, but still didn't find a way to fix this problem.

when I try to run following command;

mpirun -np 4 simpleFoam -parallel

it gives me followng error;

-bash: mpirun: command not found

will you guys please help me figure it out?

rdbisme June 14, 2017 03:17

Well, it says what it says. Did you install an mpi implementation like openmpi or mpich? Did you compile OpenFoam by yourself?

Sent by my Honor 8 using Tapatalk

Ankit.Dave June 14, 2017 04:01

Hi Ruben,

Thank you for your reply.

Yes I did installed "msmpi" on windows platform. Yet, it is not working.

rdbisme June 14, 2017 04:56

Quote:

Originally Posted by Ankit.Dave (Post 653112)
Hi Ruben,

Thank you for your reply.

Yes I did installed "msmpi" on windows platform. Yet, it is not working.

Ok, I'm not fully aware on how it works on Windows. Did you check the log of the compiling process? Can you post it here? Does it work serially?

Sent by my Honor 8 using Tapatalk

Ankit.Dave June 15, 2017 06:23

Quote:

Originally Posted by tidusuper91 (Post 653118)
Ok, I'm not fully aware on how it works on Windows. Did you check the log of the compiling process? Can you post it here? Does it work serially?

Sent by my Honor 8 using Tapatalk

Yeah, it is working well serially.

while executing ./Allwmake in following directory;

/cygdrive/c/OpenFOAM/16.10/cygwin64/opt/OpenFOAM/OpenFOAM-3.0.x/src/Pstream


it returned with this;

touch: cannot touch '/opt/OpenFOAM/OpenFOAM-3.0.x/platforms/cygwin64mingw-w64DPInt32OptMSMPI/src/Pstream/mpi/using:msmpi': No such file or directory

I executed above command as I am getting error, "-bash: mpirun: command not found" while executing "mpirun -np 4 simpleFoam -parallel" after decomposing the domain.

I am not able to fix it, so far. I am checking documentation available on this.

No luck so far.

rdbisme June 15, 2017 06:52

Quote:

Originally Posted by Ankit.Dave (Post 653345)
Yeah, it is working well serially.

while executing ./Allwmake in following directory;

/cygdrive/c/OpenFOAM/16.10/cygwin64/opt/OpenFOAM/OpenFOAM-3.0.x/src/Pstream


it returned with this;

touch: cannot touch '/opt/OpenFOAM/OpenFOAM-3.0.x/platforms/cygwin64mingw-w64DPInt32OptMSMPI/src/Pstream/mpi/using:msmpi': No such file or directory

I executed above command as I am getting error, "-bash: mpirun: command not found" while executing "mpirun -np 4 simpleFoam -parallel" after decomposing the domain.

I am not able to fix it, so far. I am checking documentation available on this.

No luck so far.

That message means it cannot find the command named mpirun, so it seems that the msmpi implementation of MPI does not provide a mpirun command or it is in a non-default folder (i.e. it's not in the PATH). I'm not so sure that OpenFOAM is compatible with msmpi.

As I said I'm no expert with cygwin, but could you install an MPICH or OpenMPI on it? It seems to be available: https://cygwin.com/cgi-bin2/package-...i?grep=openmpi

Ankit.Dave August 10, 2017 05:55

Hi Ruben,

I solved the problem by executing command mpiexec instead of msmpi. Btw, Thanks for your support.


Best Wishes,
Ankit


All times are GMT -4. The time now is 15:52.