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

First Parallel Run - need some help

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 16, 2011, 07:24
Default First Parallel Run - need some help
  #1
New Member
 
Gian Maria Di Stefano
Join Date: Jan 2011
Location: University of Applied Science Manno (CH)
Posts: 10
Rep Power: 15
Gian Maria is on a distinguished road
Hello foamers!

I'm a aerodynamic student, and I'm workin on my master thesis project (an heat transfer system). Some days ago I asked your help, and I have solved my problem, thank you

Now, my solver run correctly, and I want to perform a non-stationary simulation on a cluster, far away from my office.

I can come in the cluster by SSH protocol, so I have load my test case in cluster pc, and I want to perform a parallel run..

I have prepared the file named "decomposeParDict", and put it into my test-case.

But now, if I wanto to say to pc what are the processors, how can I proceed?

I have read in OpenFOAM guide that lines, but I don't understand:

Quote:
3.4.2 Running a decomposed case
A decomposed OpenFOAM case is run in parallel using the openMPI implementation of MPI.
openMPI can be run on a local multiprocessor machine very simply but when running on machines across a network, a file must be created that contains the host names of the machines.
The file can be given any name and located at any path.
In the following description we shall refer to such a file by the generic name, including full path, <machines >.
The <machines > file contains the names of the machines listed one machine per line.
The names must correspond to a fully resolved hostname in the /etc/hosts file of the machine on which the openMPI is run.
The list must contain the name of the machine running the openMPI.
Where a machine node contains more than one processor, the node name may be followed by the entry cpu= where is the number of processors openMPI should run on that node.
What is "machine" ?
How can I find the exact name of "machine" ? Is it a i.p. number? Or something else?


Thanks in advance!!!

Last edited by Gian Maria; June 16, 2011 at 08:19.
Gian Maria is offline   Reply With Quote

Old   June 17, 2011, 06:12
Default
  #2
Member
 
Franco Marra
Join Date: Mar 2009
Location: Napoli - Italy
Posts: 68
Rep Power: 17
francescomarra is on a distinguished road
Dear Gian Maria,

I think that nobody else than the system administrator of the cluster you wish to use can answer your question. If you are using some large HPC facility, usually instructions are provided to the users. machine refers to the name od the computing nodes that you ask for your job. Usually a proper queueing mechanism is applied to automatically select the available nodes. This is really very dependent on the single cluster installation.

Regards,

Franco
francescomarra is offline   Reply With Quote

Old   June 17, 2011, 06:58
Default
  #3
New Member
 
Gian Maria Di Stefano
Join Date: Jan 2011
Location: University of Applied Science Manno (CH)
Posts: 10
Rep Power: 15
Gian Maria is on a distinguished road
Thank you, Franco, I understood.

So, con you help me a little more?
This afternoon I will try to launch my simulation.

When I access to my terminal, I can see that:

Quote:
gianmaria@pcm3086:~$
Where gianmaria is my name (I am the user), and pcm3086 is the name of my personal computer.

When I came in the host computer, I can read

Quote:
gianmaria@hostComputer:~$

so
hostComputer is the the "machine" that I'm searching for?

I know that supercomputer has 16 node, node000, node 001 to node 015.
So I must create a file with this content

Quote:
node000
...
etc
..
node015

Is it correct?

Last question: the file above must be called machines.txt or hostComputer.txt ?


Thank for all, to everyone would help me
Gian Maria is offline   Reply With Quote

Old   June 17, 2011, 13:08
Default
  #4
Member
 
Franco Marra
Join Date: Mar 2009
Location: Napoli - Italy
Posts: 68
Rep Power: 17
francescomarra is on a distinguished road
Dear Gian Maria,

no, hostComputer is, much more probably, the hostname of the frontend of the remote cluster. You can use the name you prefer, say machines.txt , for the file where you write the names of the nodes you want to use (node000 etc. each one in a row) . Then you will launch your simulation with the command:
Code:
$ mpirun --hostfile machines.txt -np ncores foamExec -parallel
where ncores is the number of cores you like to use for the simulation.


Regards,
Franco
francescomarra is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
Parallel Run on dynamically mounted partition braennstroem OpenFOAM Running, Solving & CFD 14 October 5, 2010 15:43
Unable to run OF in parallel on a multiple-node cluster quartzian OpenFOAM 3 November 24, 2009 14:37
serial run fine, but parallel run diverged phsieh2005 OpenFOAM Running, Solving & CFD 2 October 6, 2009 09:33
Parallel run diverges, serial does not SammyB OpenFOAM Running, Solving & CFD 1 May 10, 2009 04:28
Run in parallel a 2mesh case cosimobianchini OpenFOAM Running, Solving & CFD 2 January 11, 2007 07:33


All times are GMT -4. The time now is 02:03.