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

Parallel computing by OF 2.2.0

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 14, 2013, 08:44
Exclamation Parallel computing by OF 2.2.0
  #1
Member
 
ali jafari
Join Date: Sep 2012
Posts: 50
Rep Power: 13
ali jafari is on a distinguished road
hi
I APOLOGIZE for my simple problem and new thread. I posted my problem http://www.cfd-online.com/Forums/ope...ocessor-2.html but nobody answered me !! however I repeat it :

I tried to parallel computing (OF 2.2.0)by two desktop computers. but this error was exposed.

PHP Code:
ali@ali-desktop:~/OpenFOAM/ali-2.2.0/run/tutorials/visicompirun --hostfile /home/ali/machines.txt -np 20 icoFoam -parallel test 
[
110627 
ali
@ali-desktop:~/OpenFOAM/ali-2.2.0/run/tutorials/visico$  
-------------------------------------------------------------------------- 
Open RTE detected a parse error in the hostfile
    /
home/ali/machines.txt 
It occured on line number 1 on token 1. 
------------------------------------------------------------------------- 
I do decomposepar on host machine and machines file contains two line (full names of two machines) and network is OK.
is correct this command ?( mpirun --hostfile /home/ali/machines.txt -np 20 icoFoam -parallel > test &)
others Threads confused me , what should I do ? (step by step)
ali jafari is offline   Reply With Quote

Old   August 16, 2013, 13:37
Default
  #2
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,974
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Greetings Ali,

Since you asked this in a new thread, I deleted the old post, to avoid confusion by future readers.

OK, as for your problem, can you please share the file "machines.txt"? Because from the error message, it's inside that file that the problem is located.

Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   September 28, 2013, 02:23
Default
  #3
Member
 
ali jafari
Join Date: Sep 2012
Posts: 50
Rep Power: 13
ali jafari is on a distinguished road
Quote:
Originally Posted by wyldckat View Post
Greetings Ali,

Since you asked this in a new thread, I deleted the old post, to avoid confusion by future readers.

OK, as for your problem, can you please share the file "machines.txt"? Because from the error message, it's inside that file that the problem is located.

Best regards,
Bruno
thanks ,Bruno.
ACCEPT MY APOLOGIZE FOR DELAY, please. I was very busy.

has a specific path machines file ?
Attached Files
File Type: txt machines.txt (45 Bytes, 22 views)
ali jafari is offline   Reply With Quote

Old   September 28, 2013, 07:50
Default
  #4
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,974
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Hi Ali,

If you are using Open-MPI, then the problem is that you are using the keyword "cpu" when it should be "slots". This is explained here:
http://www.open-mpi.org/faq/?categor...imple-spmd-run

Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   September 28, 2013, 17:06
Default
  #5
Member
 
ali jafari
Join Date: Sep 2012
Posts: 50
Rep Power: 13
ali jafari is on a distinguished road
Quote:
Originally Posted by wyldckat View Post
Hi Ali,

If you are using Open-MPI, then the problem is that you are using the keyword "cpu" when it should be "slots". This is explained here:
http://www.open-mpi.org/faq/?categor...imple-spmd-run

Best regards,
Bruno
Thanks for quick reply.
I changed the keyword but it dose not work. I read all of the page and I tried to do the orders. but I get no result !!
is NFS passwordless config. necessary for parallel computing ?
ali jafari is offline   Reply With Quote

Old   September 29, 2013, 04:48
Default
  #6
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,974
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Hi Ali,

NFS doesn't need password. It's the usual folder sharing system used on Linux Distributions.

Folder sharing is necessary for running OpenFOAM in parallel with more than one machine.

I think I'm assuming that you are using Open-MPI, but you might not be using it at all. Please run the following command:
Code:
mpirun --version
Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   September 29, 2013, 17:39
Default
  #7
Member
 
ali jafari
Join Date: Sep 2012
Posts: 50
Rep Power: 13
ali jafari is on a distinguished road
Quote:
Originally Posted by wyldckat View Post
Hi Ali,

NFS doesn't need password. It's the usual folder sharing system used on Linux Distributions.

Folder sharing is necessary for running OpenFOAM in parallel with more than one machine.

I think I'm assuming that you are using Open-MPI, but you might not be using it at all. Please run the following command:
Code:
mpirun --version
Best regards,
Bruno
my open mpi ver. is 1.4.3
-------------------------
Dear Bruno , I ran openfoam on multi core PC but I confused about cluster because Im not familiar with linux !
what is your idea about these steps ?
1. setup openfoam on all PCs.
2. config. sshd and ssh files on servers and client.(PasswordAuthentication no)
3. share home folder between PCs with ssh.
4. create a machines file that include PCs name and ip addresses.
5. using mpirun command , explained at openfoam guide.
and a questions :
do I need to add some lines in ./bachrc or ./profile files for parallel computing?
ali jafari is offline   Reply With Quote

Old   October 5, 2013, 13:50
Default Parallel
  #8
Member
 
ali jafari
Join Date: Sep 2012
Posts: 50
Rep Power: 13
ali jafari is on a distinguished road
hi

I want to run parallel OpenFoam 2.2.x on two node , I read openfoam user guide and try to do its order, but the guidelines dont explain it completely. please give me some advises about the steps that I sould do for doing this aim in openfoam and ubuntu .
Note : I can run openfoam on multi core system and I familiar with MPI .
clearly I want to know :
1) are ssh and sshd config. on ubuntu necessary ? (if yes how)
2) do I need hard disk sharing between machines ?
3) is decomposePar similar to multicore run ?
4) must I setup openfoam on all machines?
5) how do openfoam find <machines> file address ? (in other words where do I put machines file in hard disk ?)
in advance, thanks for your guides.
ali jafari is offline   Reply With Quote

Old   October 6, 2013, 13:45
Default
  #9
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,974
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Hi Ali,

  1. Yes, you have to set-up OpenFOAM on all nodes that are going to use it, or at least share the folder where it is installed in the master node.
  2. My advice is to use password-less SSH keys within the cluster network. No need to modify the "sshd_config" file.
  3. Either share the folders in the home folder using NFS v4, or use the strategy mentioned here: Running OpenFOAM in parallel with different locations for each process
  4. The "machines" file should only have the host names of each machine or the IP for that machine. Not both.
    • That's actually one thing I forgot to ask you to try: replace the names with the IP addresses of the machines in the "machines.txt" file. Because I think that the problem is that the machines had a "-" symbol in their names, leading to the error message. But I haven't managed to test this myself.
  5. You can use mpirun or foamJob. For more information, run:
    Code:
    foamJob -help
  6. If you use foamJob, you don't need to change the ".bashrc" files, as long as OpenFOAM is installed in the same path on all machines. But if you use mpirun, you should define the same source command on your ".bashrc" file on all your clusters.
For more information, have a look into this blog post of mine: Notes about running OpenFOAM in parallel

Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   October 18, 2013, 14:12
Default
  #10
New Member
 
payal
Join Date: Aug 2013
Location: banglore
Posts: 14
Rep Power: 12
payal05 is on a distinguished road
Greeting all,
can somebody plz suggest me the link there i will get the experimental data to validate the results for the Sandia -CH4H2N2 . similar to the tutorial . i tried to search but not able to found .

Thank you ,
Regards ,
Payal .
payal05 is offline   Reply With Quote

Old   October 19, 2013, 02:53
Default
  #11
Super Moderator
 
Tobi's Avatar
 
Tobias Holzmann
Join Date: Oct 2010
Location: Tussenhausen
Posts: 2,708
Blog Entries: 6
Rep Power: 51
Tobi has a spectacular aura aboutTobi has a spectacular aura aboutTobi has a spectacular aura about
Send a message via ICQ to Tobi Send a message via Skype™ to Tobi
Google keyword sandia flame...

http://www.sandia.gov/TNF/DataArch/SANDchn.html
Tobi 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
unchangeable continuity residuals in parallel computing wlt_1985 FLUENT 0 August 1, 2011 12:15
Diffusion equation solved using Parallel Computing Sachin Paramane Main CFD Forum 0 June 11, 2007 23:48
Parallel Computing on Multi-Core Processors Upgrading Hardware CFX 6 June 7, 2007 15:54
Parallel Computing peter Main CFD Forum 7 May 15, 2006 09:53
Parallel Computing Classes at San Diego Supercomputer Center Jan. 20-22 Amitava Majumdar Main CFD Forum 0 January 5, 1999 12:00


All times are GMT -4. The time now is 23:31.