CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Installation

[Other] msmpi and cygwin

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 2 Post By Ankit.Dave

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 14, 2017, 02:49
Default msmpi and cygwin
  #1
New Member
 
Ankit Dave
Join Date: Aug 2016
Location: India
Posts: 11
Rep Power: 10
Ankit.Dave is on a distinguished road
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?
Ankit.Dave is offline   Reply With Quote

Old   June 14, 2017, 04:17
Default
  #2
Senior Member
 
rdbisme's Avatar
 
Ruben Di Battista
Join Date: May 2013
Location: Paris
Posts: 137
Rep Power: 13
rdbisme is on a distinguished road
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
rdbisme is offline   Reply With Quote

Old   June 14, 2017, 05:01
Default
  #3
New Member
 
Ankit Dave
Join Date: Aug 2016
Location: India
Posts: 11
Rep Power: 10
Ankit.Dave is on a distinguished road
Hi Ruben,

Thank you for your reply.

Yes I did installed "msmpi" on windows platform. Yet, it is not working.
Ankit.Dave is offline   Reply With Quote

Old   June 14, 2017, 05:56
Default
  #4
Senior Member
 
rdbisme's Avatar
 
Ruben Di Battista
Join Date: May 2013
Location: Paris
Posts: 137
Rep Power: 13
rdbisme is on a distinguished road
Quote:
Originally Posted by Ankit.Dave View Post
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
rdbisme is offline   Reply With Quote

Old   June 15, 2017, 07:23
Default
  #5
New Member
 
Ankit Dave
Join Date: Aug 2016
Location: India
Posts: 11
Rep Power: 10
Ankit.Dave is on a distinguished road
Quote:
Originally Posted by tidusuper91 View Post
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.
Ankit.Dave is offline   Reply With Quote

Old   June 15, 2017, 07:52
Default
  #6
Senior Member
 
rdbisme's Avatar
 
Ruben Di Battista
Join Date: May 2013
Location: Paris
Posts: 137
Rep Power: 13
rdbisme is on a distinguished road
Quote:
Originally Posted by Ankit.Dave View Post
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
rdbisme is offline   Reply With Quote

Old   August 10, 2017, 06:55
Default
  #7
New Member
 
Ankit Dave
Join Date: Aug 2016
Location: India
Posts: 11
Rep Power: 10
Ankit.Dave is on a distinguished road
Hi Ruben,

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


Best Wishes,
Ankit
rdbisme and zyzycomcn like this.
Ankit.Dave is offline   Reply With Quote

Reply

Tags
cygwin, msmpi, openfoam


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 14:55.