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

How to setup a simple OpenFOAM cluster?

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 2 Post By wyldckat

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 23, 2013, 05:01
Default How to setup a simple OpenFOAM cluster?
  #1
New Member
 
Tommi P. Laiho
Join Date: Oct 2013
Posts: 18
Rep Power: 13
TommiPLaiho is on a distinguished road
Hi,

I have been trying to find a tutorial how to setup a simple OpenFOAM cluster. I have two 8 core computers and OpenMPI, OpenFOAM and Paraview are successfully installed to these two computers. I am using Ubuntu Studio 12.04 and Ubuntu CAELinux 10.04 as platforms. The computers are connected with a common router.

I have not found a simple Linux novice tutorial how to connect these two computers and make a simple two computers cluster of these two machines. The tutorial should be really a novice guide, a step by step tutorial.

Few questions:

1. Does the OpenFOAM installation need to be exactly same version in both machines? I have OpenFOAM 2.2.2 in Ubuntu Studio 12.04 and OpenFOAM 2.1.1 in Ubuntu 10.04 CAELinux. Will I face problems with this combination, I mean Ubuntu CAELinux is a master machine and Ubuntu Studio 12.04 is a slave machine. Maybe upper release can run lower release files? The OpenMPI is also lower version 1.4.1 in CAELinux which is a master and 1.5 in a slave machine.

2. The router what I use is not bridged. I have same ip in every machine. Is this a problem?

Please help and thanks in advance.
TommiPLaiho is offline   Reply With Quote

Old   October 25, 2013, 09:41
Default
  #2
New Member
 
Join Date: Jul 2010
Posts: 17
Rep Power: 16
alf12 is on a distinguished road
Quote:
I have same ip in every machine. Is this a problem?
Yes.

Then you may setup MPI and check that it's working properly
alf12 is offline   Reply With Quote

Old   October 27, 2013, 08:53
Default
  #3
New Member
 
Tommi P. Laiho
Join Date: Oct 2013
Posts: 18
Rep Power: 13
TommiPLaiho is on a distinguished road
Hi,


I have been trying to setup Open MPI with OpenFOAM211. I have compiled the Open MPI by myself but it went very smoothly so I guess the compilation went correctly. However I am not a true expert of the field.


I have a bridged modem having different IP's with different machines right now. I should at first connect two computers with Open MPI in order to run 14 cores with OpenFOAM 211. The OpenFOAM 211 is same version now in both computers which I will call as master and slave and also OpenMPI is same in both computers. This time master machine is CAELinux Ubuntu 10.04 LTS and slave is Ubuntu Studio 12.04 LTS. I have read many articles and also FAQ but now I cant progress any more by myself, I need some help. Thank you for understanding.


So when I run this code:


Code:
/opt/openmpi-1.6.5/bin/mpirun -hostfile /home/tommi2/Desktop/machinefile -np 14 /opt/openfoam211/platforms/linux*/bin/pisoFoam -parallel
and give a password for my slave machine I will get this long, very long error by OpenFOAM211 and Open MPI. In order to be honest I don't fully understand its whole meaning. Here is goes:



Code:
/opt/openfoam211/platforms/linux64GccDPOpt/bin/pisoFoam: error while loading shared libraries: libincompressibleTurbulenceModel.so: cannot open shared object file: No such file or directory 
 /opt/openfoam211/platforms/linux64GccDPOpt/bin/pisoFoam: error while loading shared libraries: libincompressibleTurbulenceModel.so: cannot open shared object file: No such file or directory 
 /opt/openfoam211/platforms/linux64GccDPOpt/bin/pisoFoam: error while loading shared libraries: libincompressibleTurbulenceModel.so: cannot open shared object file: No such file or directory 
 /opt/openfoam211/platforms/linux64GccDPOpt/bin/pisoFoam: error while loading shared libraries: libincompressibleTurbulenceModel.so: cannot open shared object file: No such file or directory 
 /opt/openfoam211/platforms/linux64GccDPOpt/bin/pisoFoam: error while loading shared libraries: libincompressibleTurbulenceModel.so: cannot open shared object file: No such file or directory 
 /opt/openfoam211/platforms/linux64GccDPOpt/bin/pisoFoam: error while loading shared libraries: libincompressibleTurbulenceModel.so: cannot open shared object file: No such file or directory 
 /opt/openfoam211/platforms/linux64GccDPOpt/bin/pisoFoam: error while loading shared libraries: libincompressibleTurbulenceModel.so: cannot open shared object file: No such file or directory 
 [caelinux:05633] [[49395,1],1] ORTE_ERROR_LOG: Data unpack would read past end of buffer in file ../../../orte/util/nidmap.c at line 371 
 [caelinux:05633] [[49395,1],1] ORTE_ERROR_LOG: Data unpack would read past end of buffer in file ../../../../../orte/mca/ess/base/ess_base_nidmap.c at line 62 
 [caelinux:05633] [[49395,1],1] ORTE_ERROR_LOG: Data unpack would read past end of buffer in file ../../../../../../orte/mca/ess/env/ess_env_module.c at line 173 
 -------------------------------------------------------------------------- 
 It looks like orte_init failed for some reason; your parallel process is 
 likely to abort.  There are many reasons that a parallel process can 
 fail during orte_init; some of which are due to configuration or 
 environment problems.  This failure appears to be an internal failure; 
 here's some additional information (which may only be relevant to an 
 Open MPI developer): 
  
   orte_ess_base_build_nidmap failed 
   --> Returned value Data unpack would read past end of buffer (-26) instead of ORTE_SUCCESS 
 -------------------------------------------------------------------------- 
 -------------------------------------------------------------------------- 
 It looks like orte_init failed for some reason; your parallel process is 
 likely to abort.  There are many reasons that a parallel process can 
 fail during orte_init; some of which are due to configuration or 
 environment problems.  This failure appears to be an internal failure; 
 here's some additional information (which may only be relevant to an 
 Open MPI developer): 
  
   orte_ess_set_name failed 
   --> Returned value Data unpack would read past end of buffer (-26) instead of ORTE_SUCCESS 
 -------------------------------------------------------------------------- 
 [caelinux:05633] [[49395,1],1] ORTE_ERROR_LOG: Data unpack would read past end of buffer in file ../../../orte/runtime/orte_init.c at line 132 
 -------------------------------------------------------------------------- 
 It looks like MPI_INIT failed for some reason; your parallel process is 
 likely to abort.  There are many reasons that a parallel process can 
 fail during MPI_INIT; some of which are due to configuration or environment 
 problems.  This failure appears to be an internal failure; here's some 
 additional information (which may only be relevant to an Open MPI 
 developer): 
  
   ompi_mpi_init: orte_init failed 
   --> Returned "Data unpack would read past end of buffer" (-26) instead of "Success" (0) 
 -------------------------------------------------------------------------- 
 *** An error occurred in MPI_Init 
 *** before MPI was initialized 
 *** MPI_ERRORS_ARE_FATAL (your MPI job will now abort) 
 [caelinux:5633] Abort before MPI_INIT completed successfully; not able to guarantee that all other processes were killed! 
 *** An error occurred in MPI_Init 
 *** before MPI was initialized 
 *** MPI_ERRORS_ARE_FATAL (your MPI job will now abort) 
 [caelinux:5634] Abort before MPI_INIT completed successfully; not able to guarantee that all other processes were killed! 
 [caelinux:05634] [[49395,1],3] ORTE_ERROR_LOG: Data unpack would read past end of buffer in file ../../../orte/util/nidmap.c at line 371 
 [caelinux:05634] [[49395,1],3] ORTE_ERROR_LOG: Data unpack would read past end of buffer in file ../../../../../orte/mca/ess/base/ess_base_nidmap.c at line 62 
 [caelinux:05634] [[49395,1],3] ORTE_ERROR_LOG: Data unpack would read past end of buffer in file ../../../../../../orte/mca/ess/env/ess_env_module.c at line 173 
 [caelinux:05634] [[49395,1],3] ORTE_ERROR_LOG: Data unpack would read past end of buffer in file ../../../orte/runtime/orte_init.c at line 132 
 -------------------------------------------------------------------------- 
 It looks like MPI_INIT failed for some reason; your parallel process is 
 likely to abort.  There are many reasons that a parallel process can 
 fail during MPI_INIT; some of which are due to configuration or environment 
 problems.  This failure appears to be an internal failure; here's some 
 additional information (which may only be relevant to an Open MPI 
 developer): 
  
   ompi_mpi_init: orte_init failed 
   --> Returned "Data unpack would read past end of buffer" (-26) instead of "Success" (0) 
 -------------------------------------------------------------------------- 
 [caelinux:05635] [[49395,1],5] ORTE_ERROR_LOG: Data unpack would read past end of buffer in file ../../../orte/util/nidmap.c at line 371 
 [caelinux:05635] [[49395,1],5] ORTE_ERROR_LOG: Data unpack would read past end of buffer in file ../../../../../orte/mca/ess/base/ess_base_nidmap.c at line 62 
 [caelinux:05635] [[49395,1],5] ORTE_ERROR_LOG: Data unpack would read past end of buffer in file ../../../../../../orte/mca/ess/env/ess_env_module.c at line 173 
 [caelinux:05635] [[49395,1],5] ORTE_ERROR_LOG: Data unpack would read past end of buffer in file ../../../orte/runtime/orte_init.c at line 132 
 -------------------------------------------------------------------------- 
 It looks like MPI_INIT failed for some reason; your parallel process is 
 likely to abort.  There are many reasons that a parallel process can 
 fail during MPI_INIT; some of which are due to configuration or environment 
 problems.  This failure appears to be an internal failure; here's some 
 additional information (which may only be relevant to an Open MPI 
 developer): 
  
   ompi_mpi_init: orte_init failed 
   --> Returned "Data unpack would read past end of buffer" (-26) instead of "Success" (0) 
 -------------------------------------------------------------------------- 
 *** An error occurred in MPI_Init 
 *** before MPI was initialized 
 *** MPI_ERRORS_ARE_FATAL (your MPI job will now abort) 
 [caelinux:5635] Abort before MPI_INIT completed successfully; not able to guarantee that all other processes were killed! 
 [caelinux:05636] [[49395,1],7] ORTE_ERROR_LOG: Data unpack would read past end of buffer in file ../../../orte/util/nidmap.c at line 371 
 [caelinux:05636] [[49395,1],7] ORTE_ERROR_LOG: Data unpack would read past end of buffer in file ../../../../../orte/mca/ess/base/ess_base_nidmap.c at line 62 
 [caelinux:05636] [[49395,1],7] ORTE_ERROR_LOG: Data unpack would read past end of buffer in file ../../../../../../orte/mca/ess/env/ess_env_module.c at line 173 
 [caelinux:05636] [[49395,1],7] ORTE_ERROR_LOG: Data unpack would read past end of buffer in file ../../../orte/runtime/orte_init.c at line 132 
 -------------------------------------------------------------------------- 
 It looks like MPI_INIT failed for some reason; your parallel process is 
 likely to abort.  There are many reasons that a parallel process can 
 fail during MPI_INIT; some of which are due to configuration or environment 
 problems.  This failure appears to be an internal failure; here's some 
 additional information (which may only be relevant to an Open MPI 
 developer): 
  
   ompi_mpi_init: orte_init failed 
   --> Returned "Data unpack would read past end of buffer" (-26) instead of "Success" (0) 
 -------------------------------------------------------------------------- 
 *** An error occurred in MPI_Init 
 *** before MPI was initialized 
 *** MPI_ERRORS_ARE_FATAL (your MPI job will now abort) 
 [caelinux:5636] Abort before MPI_INIT completed successfully; not able to guarantee that all other processes were killed! 
 -------------------------------------------------------------------------- 
 mpirun has exited due to process rank 1 with PID 5633 on 
 node caelinux exiting improperly. There are two reasons this could occur: 
  
 1. this process did not call "init" before exiting, but others in 
 the job did. This can cause a job to hang indefinitely while it waits 
 for all processes to call "init". By rule, if one process calls "init", 
 then ALL processes must call "init" prior to termination. 
  
 2. this process called "init", but exited without calling "finalize". 
 By rule, all processes that call "init" MUST call "finalize" prior to 
 exiting or it will be considered an "abnormal termination" 
  
 This may have caused other processes in the application to be 
 terminated by signals sent by mpirun (as reported here). 
 -------------------------------------------------------------------------- 
 [caelinux:05630] 3 more processes have sent help message help-orte-runtime.txt / orte_init:startup:internal-failure 
 [caelinux:05630] Set MCA parameter "orte_base_help_aggregate" to 0 to see all help / error messages 
 [caelinux:05630] 3 more processes have sent help message help-orte-runtime / orte_init:startup:internal-failure
So I will also give my OpenFOAM decomposeParDict setup for 14 cores:




Code:
/*--------------------------------*- C++ -*----------------------------------*\ 
 | =========                 |                                                 | 
 | \\      /  F ield         | OpenFOAM Extend Project: Open Source CFD        | 
 |  \\    /   O peration     | Version:  1.6-ext                               | 
 |   \\  /    A nd           | Web:      www.extend-project.de                 | 
 |    \\/     M anipulation  |                                                 | 
 \*---------------------------------------------------------------------------*/ 
 FoamFile 
 { 
     version     2.0; 
     format      ascii; 
     class       dictionary; 
     object      decomposeParDict; 
 } 
 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 
  
 numberOfSubdomains 14; 
  
 method          hierarchical; 
 //method          metis; 
 //method          parMetis; 
  
 simpleCoeffs 
 { 
     n               (4 1 1); 
     delta           0.001; 
 } 
  
 hierarchicalCoeffs 
 { 
     n               (14 1 1); 
     delta           0.001; 
     order           xyz; 
 } 
  
 manualCoeffs 
 { 
     dataFile        "cellDecomposition"; 
 } 
  
 metisCoeffs 
 { 
     //n                   (5 1 1); 
     //cellWeightsFile     "constant/cellWeightsFile"; 
 } 
  
 // ************************************************************************* //
just in case there is a fault in that. Please help me I am totally confused and thanks in advance.

Last edited by wyldckat; October 27, 2013 at 16:04. Reason: Changed [QUOTE] to [CODE][/CODE]
TommiPLaiho is offline   Reply With Quote

Old   October 27, 2013, 16:15
Default
  #4
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
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 to all!

@Tommi:
  1. The two machines should not have the same IP. But they should be on the same network.
  2. Both machines should use the same version and architecture of OpenFOAM and Open-MPI.
    • If different versions of Open-MPI is a must, then it should be a system based Open-MPI, so that there aren't any problems with paths.
  3. Beyond version and architecture, the OpenFOAM installation path on each machine should be identical. Well, at least if you want to keep things simple.
AFAIK, there isn't any perfect guide available online for setting up an OpenFOAM based cluster. Nonetheless, in this blog post of mine: Notes about running OpenFOAM in parallel - you can find a collection of notes, where among them is this thread: Cluster OpenFOAM [Solved] (... start reading from post #2)

Good luck! Best regards,
Bruno
Fahime and erik87 like this.
__________________
wyldckat is offline   Reply With Quote

Reply

Tags
clusters, openfoam 2.2.x, tutorials


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
[OpenFOAM.org] Installing OpenFOAM 2.1.0 on ROCKS cluster aerospain OpenFOAM Installation 6 December 15, 2014 04:35
OpenFOAM on cluster (ubuntu 12.04 LTS x64) novakm OpenFOAM 5 October 19, 2013 07:38
Continuity. Stop critertion of PISO and SIMPLE in OpenFOAM solvers. idrama OpenFOAM 4 September 21, 2010 04:26
OpenFOAM requirements for a cluster farbfilm OpenFOAM 2 September 15, 2010 00:56
Linux Cluster Setup Problems Bob CFX 1 October 3, 2002 19:08


All times are GMT -4. The time now is 19:45.