CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

Running OpenFOAM on a Cluster

Register Blogs Community New Posts Updated Threads Search

Like Tree8Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 21, 2018, 13:25
Default Running OpenFOAM on a Cluster
  #1
New Member
 
Rishab.G.Hombal
Join Date: Aug 2018
Posts: 20
Rep Power: 8
Rishab is on a distinguished road
Hi


im new to openfoam we have a cluster with one master node nd a client node with passwordless ssh enabled nd running openfoamv6 on both the machines with the case directories present in both nodes i get the following error when i try to run the case with foamJob. I read the other post where i got to know that it is environment problem so how to i set the environment properly? your help will be highly appreciated the following is the error.


mpirun was unable to find the specified executable file, and therefore
did not launch the job. This error was first reported for process
rank 3; it may have occurred for other processes as well.

NOTE: A common cause for this error is misspelling a mpirun command
line parameter option (remember that mpirun interprets the first
unrecognized command line token as the executable).

Node: client1
Executable: /opt/openfoam6/bin/foamJob





regards,
Rishab
Rishab is offline   Reply With Quote

Old   August 21, 2018, 13:58
Default
  #2
Member
 
Join Date: Nov 2014
Posts: 92
Rep Power: 12
hokhay is on a distinguished road
Have you tried to run the case separately on each machine? Can you specify the command you have type?
Rishab likes this.
hokhay is offline   Reply With Quote

Old   August 22, 2018, 09:12
Default
  #3
New Member
 
Rishab.G.Hombal
Join Date: Aug 2018
Posts: 20
Rep Power: 8
Rishab is on a distinguished road
Hi,


yes ive tried running the case individually on the machines it runs perfectly
the command is mpirun --hostfile machines -np 6 foamJob simpleFoam -parallel


regards
Rishab
Rishab is offline   Reply With Quote

Old   August 22, 2018, 12:34
Default
  #4
Member
 
Join Date: Nov 2014
Posts: 92
Rep Power: 12
hokhay is on a distinguished road
U don't need foamJob in this command. Just type "mpirun --hostfile machines -np 6 simpleFoam -parallel"
Rishab likes this.
hokhay is offline   Reply With Quote

Old   August 22, 2018, 13:13
Default
  #5
New Member
 
Rishab.G.Hombal
Join Date: Aug 2018
Posts: 20
Rep Power: 8
Rishab is on a distinguished road
yes ive done that too...i get the same error!
Rishab is offline   Reply With Quote

Old   August 22, 2018, 13:18
Default
  #6
Member
 
Join Date: Nov 2014
Posts: 92
Rep Power: 12
hokhay is on a distinguished road
Can you type "which simpleFoam" on both computers and show us the output
Rishab likes this.
hokhay is offline   Reply With Quote

Old   August 22, 2018, 13:22
Default
  #7
New Member
 
Rishab.G.Hombal
Join Date: Aug 2018
Posts: 20
Rep Power: 8
Rishab is on a distinguished road
this is what i get when i type which simpleFoam on master and on client

/opt/openfoam6/platforms/linux64GccDPInt32Opt/bin/simpleFoam
Rishab is offline   Reply With Quote

Old   August 22, 2018, 13:50
Default
  #8
Member
 
Join Date: Nov 2014
Posts: 92
Rep Power: 12
hokhay is on a distinguished road
What error does it show when you type "mpirun --hostfile machines -np 6 simpleFoam -parallel". Can you paste here?
hokhay is offline   Reply With Quote

Old   August 22, 2018, 13:56
Default
  #9
New Member
 
Rishab.G.Hombal
Join Date: Aug 2018
Posts: 20
Rep Power: 8
Rishab is on a distinguished road
this is the error i get when i type mpirun --hostfile machines np -6 simpleFoam -parallel



mpirun was unable to find the specified executable file, and therefore
did not launch the job. This error was first reported for process
rank 3; it may have occurred for other processes as well.

NOTE: A common cause for this error is misspelling a mpirun command
line parameter option (remember that mpirun interprets the first
unrecognized command line token as the executable).

Node: client1
Executable: /opt/openfoam6/bin/simpleFoam
Rishab is offline   Reply With Quote

Old   August 22, 2018, 14:07
Default
  #10
Member
 
Join Date: Nov 2014
Posts: 92
Rep Power: 12
hokhay is on a distinguished road
I can see that it is trying to look for simpleFoam at /opt/openfoam6/bin/simpleFoam but the actual location is /opt/openfoam6/platforms/linux64GccDPInt32Opt/bin/simpleFoam on client 1, so it says cannot find the executable file.

How did you install OpenFoam? Do you use the same method to install them on both computers?
Rishab likes this.
hokhay is offline   Reply With Quote

Old   August 22, 2018, 14:10
Default
  #11
New Member
 
Rishab.G.Hombal
Join Date: Aug 2018
Posts: 20
Rep Power: 8
Rishab is on a distinguished road
yes ive used the same method to install openfoam described in this website
https://openfoam.org/download/6-ubuntu/
Rishab is offline   Reply With Quote

Old   August 23, 2018, 06:56
Default
  #12
New Member
 
Rishab.G.Hombal
Join Date: Aug 2018
Posts: 20
Rep Power: 8
Rishab is on a distinguished road
Hi


when i type "mpirun --hostfile machines -np 6 simpleFoam -parallel" i get the following error



[mpiuser-HP-ProDesk-400-G2-MT-TPM-DP:03141] [[57312,0],0] usock_peer_send_blocking: send() to socket 39 failed: Broken pipe (32)
[mpiuser-HP-ProDesk-400-G2-MT-TPM-DP:03141] [[57312,0],0] ORTE_ERROR_LOG: Unreachable in file oob_usock_connection.c at line 316
[mpiuser-HP-ProDesk-400-G2-MT-TPM-DP:03141] [[57312,0],0]-[[57312,1],0] usock_peer_accept: usock_peer_send_connect_ack failed
--------------------------------------------------------------------------
mpirun was unable to find the specified executable file, and therefore
did not launch the job. This error was first reported for process
rank 3; it may have occurred for other processes as well.

NOTE: A common cause for this error is misspelling a mpirun command
line parameter option (remember that mpirun interprets the first
unrecognized command line token as the executable).

Node: client1
Executable: /opt/openfoam6/platforms/linux64GccDPInt32Opt/bin/simpleFoam







when i type "mpirun --hostfile machines -np 6 foamJob simpleFoam -parallel" i get the following error


Application : simpleFoam
Executing: /opt/openfoam6/platforms/linux64GccDPInt32Opt/bin/simpleFoam -parallel > log 2>&1 &
Application : simpleFoam
Executing: /opt/openfoam6/platforms/linux64GccDPInt32Opt/bin/simpleFoam -parallel > log 2>&1 &
--------------------------------------------------------------------------
mpirun was unable to find the specified executable file, and therefore
did not launch the job. This error was first reported for process
rank 3; it may have occurred for other processes as well.

NOTE: A common cause for this error is misspelling a mpirun command
line parameter option (remember that mpirun interprets the first
unrecognized command line token as the executable).

Node: client1
Executable: /opt/openfoam6/bin/foamJob
Rishab is offline   Reply With Quote

Old   August 23, 2018, 12:54
Default
  #13
New Member
 
Faraz
Join Date: Mar 2018
Posts: 25
Rep Power: 8
feacluster is on a distinguished road
Let's first make sure you can run on one node. What do you get when you run just this:

runParallel simpleFoam -parallel
mpirun -np 3 simpleFoam -parallel

And what do you get when you run:

mpirun --hostfile machines -np 6 hostname
Rishab likes this.
feacluster is offline   Reply With Quote

Old   August 23, 2018, 13:37
Default
  #14
New Member
 
Rishab.G.Hombal
Join Date: Aug 2018
Posts: 20
Rep Power: 8
Rishab is on a distinguished road
Hi


when i run "runParallel simpleFoam -parallel" this is what i get :-
runParallel: command not found



when i run "mpirun -np 3 simpleFoam -parallel" the solver starts running this is what i get :-
/*---------------------------------------------------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: 6
\\/ M anipulation |
\*---------------------------------------------------------------------------*/
Build : 6-1a0c91b3baa8
Exec : simpleFoam -parallel
Date : Aug 23 2018
Time : 21:54:51
Host : "mpiuser-HP-ProDesk-400-G2-MT-TPM-DP:03141"
PID : 9239
I/O : uncollated
Case : /home/mpiuser/OpenFOAM/mpiuser-6/run/tutorials/incompressible/simpleFoam/24-30-8.50
nProcs : 2
Slaves : 1("rishabghombal-HP-15-Notebook-PC.9240")
Pstream initialized with:
floatTransfer : 0
nProcsSimpleSum : 0
commsType : nonBlocking
polling iterations : 0
sigFpe : Enabling floating point exception trapping (FOAM_SIGFPE).
fileModificationChecking : Monitoring run-time modified files using timeStampMaster (fileModificationSkew 10)
allowSystemOperations : Allowing user-supplied system call operations

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Create time

Overriding OptimisationSwitches according to controlDict
maxThreadFileBufferSize 2e+09;

maxMasterFileBufferSize 2e+09;

Create mesh for time = 0


SIMPLE: Convergence criteria found
p: tolerance 1e-05
U: tolerance 1e-05
"(k|epsilon|)": tolerance 1e-05

Reading field p

Reading field U

Reading/calculating face flux field phi

Selecting incompressible transport model Newtonian
Selecting turbulence model type RAS
Selecting RAS turbulence model kEpsilon
RAS
{
RASModel kEpsilon;
turbulence on;
printCoeffs on;
Cmu 0.09;
C1 1.44;
C2 1.92;
C3 0;
sigmak 1;
sigmaEps 1.3;
}

No MRF models present

No finite volume options present

Starting time loop

Time = 1

smoothSolver: Solving for Ux, Initial residual = 1, Final residual = 0.0205988, No Iterations 4
smoothSolver: Solving for Uy, Initial residual = 1, Final residual = 0.0245561, No Iterations 4
smoothSolver: Solving for Uz, Initial residual = 1, Final residual = 0.0245738, No Iterations 4
GAMG: Solving for p, Initial residual = 1, Final residual = 0.0767341, No Iterations 5
time step continuity errors : sum local = 0.027811, global = 0.0131447, cumulative = 0.0131447
smoothSolver: Solving for epsilon, Initial residual = 0.0859358, Final residual = 0.00617931, No Iterations 3
bounding epsilon, min: -1031.63 max: 13226.2 average: 851.478
smoothSolver: Solving for k, Initial residual = 1, Final residual = 0.0955549, No Iterations 6
ExecutionTime = 60.07 s ClockTime = 60 s

Time = 2



when i run "mpirun --hostfile machines -np 6 hostname" this is what i get :-
mpiuser-HP-ProDesk-400-G2-MT-TPM-DP:03141 which is the (master)
mpiuser-HP-ProDesk-400-G2-MT-TPM-DP:03141 which is the (client)
Rishab is offline   Reply With Quote

Old   August 23, 2018, 13:56
Default
  #15
New Member
 
Faraz
Join Date: Mar 2018
Posts: 25
Rep Power: 8
feacluster is on a distinguished road
Quote:
Originally Posted by Rishab View Post

when i run "mpirun --hostfile machines -np 6 hostname" this is what i get :-
mpiuser-HP-ProDesk-400-G2-MT-TPM-DP:03141 which is the (master)
mpiuser-HP-ProDesk-400-G2-MT-TPM-DP:03141 which is the (client)
This looks a bit strange. What is the contents of your machines file? And what do you get when you type "mpirun -V"? Is firewall disabled on both machines?
Rishab likes this.
feacluster is offline   Reply With Quote

Old   August 23, 2018, 14:21
Default
  #16
New Member
 
Rishab.G.Hombal
Join Date: Aug 2018
Posts: 20
Rep Power: 8
Rishab is on a distinguished road
these are the contents of my machines file



master slots=3
client slots=3


when i type "mpirun -V" i get :-
mpirun (Open MPI) 2.1.1

Report bugs to http://www.open-mpi.org/community/help/
Rishab is offline   Reply With Quote

Old   August 23, 2018, 14:39
Default
  #17
New Member
 
Faraz
Join Date: Mar 2018
Posts: 25
Rep Power: 8
feacluster is on a distinguished road
Try this:

mpirun -np 6 -hostfile machines hostname

It should output:

master
master
master
client
client
client
Rishab likes this.
feacluster is offline   Reply With Quote

Old   August 23, 2018, 14:51
Default
  #18
New Member
 
Rishab.G.Hombal
Join Date: Aug 2018
Posts: 20
Rep Power: 8
Rishab is on a distinguished road
when i type "mpirun -np 6 -hostfile machines hostname" this is what i get :-
mpiuser-HP-ProDesk-400-G2-MT-TPM-DP:03141
mpiuser-HP-ProDesk-400-G2-MT-TPM-DP:03141
mpiuser-HP-ProDesk-400-G2-MT-TPM-DP:03141
mpiuser-HP-ProDesk-400-G2-MT-TPM-DP:7604
mpiuser-HP-ProDesk-400-G2-MT-TPM-DP:7604
mpiuser-HP-ProDesk-400-G2-MT-TPM-DP:7604


just like

master
master
master
client
client
client
but instead of master it gives out mpiuser-HP-ProDesk-400-G2-MT-TPM-DP:03141 which is the master node and instead of client it gives out mpiuser-HP-ProDesk-400-G2-MT-TPM-DP:7604 which is the client node
Rishab is offline   Reply With Quote

Old   August 23, 2018, 14:56
Default
  #19
New Member
 
Faraz
Join Date: Mar 2018
Posts: 25
Rep Power: 8
feacluster is on a distinguished road
Ok, that looks correct . What you showed earlier was only:

master
master

Now try:

source /path/toopenfoam/installation/etc/bashrc
run
cd to job folder
then do:
mpirun -np 6 -hostfile machines simpleFoam -parallel
Rishab likes this.
feacluster is offline   Reply With Quote

Old   August 23, 2018, 15:13
Default
  #20
New Member
 
Rishab.G.Hombal
Join Date: Aug 2018
Posts: 20
Rep Power: 8
Rishab is on a distinguished road
when i type "source /opt/openfoam6/etc/bashrc" i dont get anything like nothing happens



when i type "mpirun -np 6 -hostfile machines simpleFoam -parallel" this is what i get:-
[mpiuser-HP-ProDesk-400-G2-MT-TPM-DP:03141] [[57312,0],0] usock_peer_send_blocking: send() to socket 39 failed: Broken pipe (32)
[mpiuser-HP-ProDesk-400-G2-MT-TPM-DP:03141] [[57312,0],0] ORTE_ERROR_LOG: Unreachable in file oob_usock_connection.c at line 316
[mpiuser-HP-ProDesk-400-G2-MT-TPM-DP:03141] [[57312,0],0]-[[57312,1],0] usock_peer_accept: usock_peer_send_connect_ack failed
--------------------------------------------------------------------------
mpirun was unable to find the specified executable file, and therefore
did not launch the job. This error was first reported for process
rank 3; it may have occurred for other processes as well.

NOTE: A common cause for this error is misspelling a mpirun command
line parameter option (remember that mpirun interprets the first
unrecognized command line token as the executable).

Node: client
Executable: /opt/openfoam6/platforms/linux64GccDPInt32Opt/bin/simpleFoam

Last edited by Rishab; August 24, 2018 at 07:21.
Rishab is offline   Reply With Quote

Reply


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Encountering an error while running a case in cluster using openfoam dnsuman Main CFD Forum 2 August 6, 2018 02:35
OpenFOAM Training, London, Chicago, Munich, Sep-Oct 2015 cfd.direct OpenFOAM Announcements from Other Sources 2 August 31, 2015 14:36
[OpenFOAM.org] How to get OpenFoam compiled on a cluster with CentOS 6.5 and no root permissions hulli OpenFOAM Installation 2 November 6, 2014 19:01
OpenFOAM parallel running error in cluster vishal_s OpenFOAM Running, Solving & CFD 5 March 11, 2014 16:11
Something weird encountered when running OpenFOAM in parallel on multiple nodes xpqiu OpenFOAM Running, Solving & CFD 2 May 2, 2013 05:59


All times are GMT -4. The time now is 20:58.