|
[Sponsors] |
Building OpenFOAM 2.0.1 on SLES 10 SP1 x86_64 |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
February 8, 2012, 06:39 |
Building OpenFOAM 2.0.1 on SLES 10 SP1 x86_64
|
#1 |
Member
Hrushikesh Khadamkar
Join Date: Jul 2010
Location: Mumbai
Posts: 68
Rep Power: 16 |
Hi,
I am trying to bulid openfoam 2.0.1 on SLES 10 SP1 x86_64 on the lines described in floowing link by Bruno Santos. http://www.cfd-online.com/Forums/blo...untu-8-04.html There was an error in buliding cmake-2.8.3. See mkcmake.log file. However, I went ahead and followed next steps till end as described in above link. I have attached the output of ./Allwmake in two files due to size constraints on file upload. There is problem with paraView also. See mkPV.log file Can anybody help me in this? Thanks Hrushikesh |
|
February 8, 2012, 07:24 |
|
#2 | |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Hi Hrushikesh,
I've searched a bit and found this - http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43882#c5: Quote:
In the mean time, you can check another blog post of mine: Using the official pre-built ParaView 3.10.1 version with OpenFOAM - it's a bit outdated, but a bit of tweaking should fix the differences. Best regards, Bruno
__________________
|
||
February 8, 2012, 17:42 |
|
#3 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Hi Hrushikesh,
I've managed to figure the problem! And the issue was already fixed back in September 2011: https://github.com/OpenFOAM/ThirdPar...c22adcab144d5e - I simply didn't pick up on it sooner Run in the ThirdParty folder the following commands: Code:
rm makeCmake wget "https://raw.github.com/OpenFOAM/ThirdParty-2.0.x/master/makeCmake" chmod +x makeCmake Good luck! Bruno
__________________
|
|
February 9, 2012, 09:18 |
Building OpenFOAM 2.0.1 on SLES 10 SP1 x86_64
|
#4 |
Member
Hrushikesh Khadamkar
Join Date: Jul 2010
Location: Mumbai
Posts: 68
Rep Power: 16 |
Hi Bruno,
Thanks a lot. I will try your suggestion and will update you soon on the same. Again Thanks. Hrushikesh |
|
February 10, 2012, 08:46 |
Building OpenFOAM 2.0.1 on old Linux OSes SUSE 10 SP1 x86_64
|
#5 |
Member
Hrushikesh Khadamkar
Join Date: Jul 2010
Location: Mumbai
Posts: 68
Rep Power: 16 |
Hi Bruno,
Yes, that did the trick. [QUOTE=wyldckat;343460] Run in the ThirdParty folder the following commands: Code:
rm makeCmake wget "https://raw.github.com/OpenFOAM/ThirdParty-2.0.x/master/makeCmake" chmod +x makeCmake Now both OpenFOAM-2.0.1 and paraView 3.10.1 are succesfully built. But then I ran into another problem. I can't run my solvers in parallel. See the error file parallel-error.tar.gz code: mpirun -np 8 'foamExec' interFoam -parallel However I can run solvers using single processor. Can you help me in this? Thanks Hrushikesh |
|
February 10, 2012, 16:28 |
|
#6 | |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Hi Hrushikesh,
Ouch, that's a crazy crash... OK, it looks like it is having problems with the Infiniband system... does your system have Infiniband? Either way, there are at least three options:
Bruno
__________________
|
||
February 11, 2012, 11:03 |
|
#7 |
Member
Hrushikesh Khadamkar
Join Date: Jul 2010
Location: Mumbai
Posts: 68
Rep Power: 16 |
[QUOTE=wyldckat;343854]Hi Hrushikesh,
Ouch, that's a crazy crash... OK, it looks like it is having problems with the Infiniband system... does your system have Infiniband? Either way, there are at least three options:
I tried this. But It still gave me same error as previously. Thanks Hrushikesh |
|
February 11, 2012, 12:36 |
|
#8 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Hi Hrushikesh,
Edit the file "OpenFOAM-2.0.1/etc/config/settings.sh" and you'll see several MPIs available after the following zone: Code:
# Communications library # ~~~~~~~~~~~~~~~~~~~~~~ unset MPI_ARCH_PATH MPI_HOME FOAM_MPI_LIBBIN case "$WM_MPLIB" in OPENMPI) Code:
alias of201='source $HOME/OpenFOAM/OpenFOAM-2.0.1/etc/bashrc foamCompiler=ThirdParty WM_COMPILER=Gcc45 WM_NCOMPPROCS=4 WM_MPLIB=MPICH' Best regards, Bruno
__________________
|
|
February 18, 2012, 14:27 |
|
#9 |
Member
Hrushikesh Khadamkar
Join Date: Jul 2010
Location: Mumbai
Posts: 68
Rep Power: 16 |
Hi Bruno,
I have tried with suggestions made by you. But still I can not fire my runs in parallel using OpenFoam 2.0.1 on the cluster. What can be the reason for this? Shall I need to recompile openmpi? If yes , how to do that? Thanks Hrushikesh |
|
February 18, 2012, 17:24 |
|
#10 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Hi Hrushikesh,
I can't figure it out with so little information... Anyway, to rebuild your custom Open-MPI, you can remove it by running: Code:
echo $MPI_ARCH_PATH ls -l $MPI_ARCH_PATH rm -r $MPI_ARCH_PATH Then it's just a matter of running Allwmake once again. The one thing I don't understand is why the libraries for Infiniband were built!? Did you modify anything in the "ThirdParty-2.1.x/Allwmake" script? Best regards, Bruno
__________________
|
|
February 18, 2012, 18:53 |
|
#11 |
Member
Hrushikesh Khadamkar
Join Date: Jul 2010
Location: Mumbai
Posts: 68
Rep Power: 16 |
Hi Bruno,
I tried with all available mpi. Then modified .bshrc accordingly. The machine is giving me error (See mpi-error file).[had forgotten to attach error file in previous post] Libraries for Infiniband were already built before installing OpenFoam. I have not modified anything in the "ThirdParty-2.1.x/Allwmake" script. So looking at the error, shall I need to rebuild the MPI and again do Allwmake? Thanks Hrushikesh |
|
February 19, 2012, 07:39 |
|
#12 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Hi Hrushikesh,
Mmm... I noticed just now that you are running the command in a very bad way. Do not run it like this: Code:
mpirun -np 8 'foamExec' interFoam -parallel Code:
mpirun -np 8 `which foamExec` interFoam -parallel Code:
foamJob -s -p interFoam If this still doesn't work, then you'll have to do some more tests before trying the solver itself, since this might be a problem with configuring the MPI to work with OpenFOAM and your machine. Here are some old instructions on how to test things: On how to test if MPI is working: post #4 of "openfoam 1.6 on debian etch", and/or post #19 of "OpenFOAM updates" - Note: As of OpenFOAM 2.0.0, the application "parallelTest" is now called "Test-parallel".Best regards, Bruno
__________________
|
|
February 20, 2012, 02:47 |
|
#13 |
Member
Hrushikesh Khadamkar
Join Date: Jul 2010
Location: Mumbai
Posts: 68
Rep Power: 16 |
Hi Bruno,
Code:
mpirun -np 8 `which foamExec` interFoam -parallel Code:
There is a simpler way of doing this: Code: foamJob -s -p interFoam Code:
If this still doesn't work, then you'll have to do some more tests before trying the solver itself, since this might be a problem with configuring the MPI to work with OpenFOAM and your machine. Here are some old instructions on how to test things: On how to test if MPI is working: post #4 of "openfoam 1.6 on debian etch", and/or post #19 of "OpenFOAM updates" - Note: As of OpenFOAM 2.0.0, the application "parallelTest" is now called "Test-parallel". Thanks Hrushikesh |
|
February 20, 2012, 05:33 |
|
#14 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Hi Hrushikesh,
You've got a big problem there, mainly because you're not taking into account several important details:
Best regards, Bruno
__________________
|
|
February 20, 2012, 11:18 |
|
#15 | |
Member
Hrushikesh Khadamkar
Join Date: Jul 2010
Location: Mumbai
Posts: 68
Rep Power: 16 |
Hi Bruno,
Quote:
In .bashrc file, I have this line: alias of201='source /Storage1/cfd/OpenFOAM/OpenFOAM-2.0.1/etc/bashrc foamCompiler=ThirdParty WM_COMPILER=Gcc45 WM_NCOMPPROCS=8' Then I went to damBreak tutorial and decompose the case into 4 domains. Then I ran foamJob -p -s Test-parallel (parallel.txt) and also foamJob -p -s interFoam (error.txt). 2.> I ran foamInstallationTest. It does not show any error. (foamInst.txt) 3.>Before building openFOAM 2.0.1, I had openFOAM 1.6 installed on the cluster. In OpenFOAM 1.6 (openmpi-1.3.3 included in thirdparty-1.6 package), parallel runs were working smoothly without any error on master as well as on nodes. So what can be the reason for parallel runs not working in OpenFoam-2.0.1? Meanwhile, I came across this: http://www.openfoam.com/mantisbt/view.php?id=296 Thanks Hrushikesh |
||
February 20, 2012, 13:12 |
|
#16 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Indeed! I vaguely remember seeing the same here on the forum... about using Open-MPI 1.4.3 instead... Here we go: http://www.cfd-online.com/Forums/ope...s-openmpi.html
By the way, since you are using the alias method for activating OpenFOAM environments, you might be interested in the following bug report for when using foamJob: http://www.openfoam.com/mantisbt/view.php?id=231 - the pertinent file is this: patch4foamJob_send_settings_var Good luck! Bruno
__________________
|
|
April 11, 2012, 14:59 |
|
#17 |
Member
Hrushikesh Khadamkar
Join Date: Jul 2010
Location: Mumbai
Posts: 68
Rep Power: 16 |
Hi Bruno,
I did managed to get the OpenFOAM 2.0.1 and 2.1.0 running in parallel mode (with OpenMPI 1.4.1) on a single node of the cluster using foamJob as well as mpirun command. But I am not been able to float the runs on multiple nodes. log file: /Storage1/cfd/OpenFOAM/OpenFOAM-2.0.1/bin/foamExec: line 145: exec: interFoam: not found /Storage1/cfd/OpenFOAM/OpenFOAM-2.0.1/bin/foamExec: line 145: exec: interFoam: not found /Storage1/cfd/OpenFOAM/OpenFOAM-2.0.1/bin/foamExec: line 145: exec: interFoam: not found /Storage1/cfd/OpenFOAM/OpenFOAM-2.0.1/bin/foamExec: line 145: exec: interFoam: not found /Storage1/cfd/OpenFOAM/OpenFOAM-2.0.1/bin/foamExec: line 145: exec: interFoam: not found /Storage1/cfd/OpenFOAM/OpenFOAM-2.0.1/bin/foamExec: line 145: exec: interFoam: not found /Storage1/cfd/OpenFOAM/OpenFOAM-2.0.1/bin/foamExec: line 145: exec: interFoam: not found /Storage1/cfd/OpenFOAM/OpenFOAM-2.0.1/bin/foamExec: line 145: exec: interFoam: not found /Storage1/cfd/OpenFOAM/OpenFOAM-2.0.1/bin/foamExec: line 145: exec: interFoam: not found /Storage1/cfd/OpenFOAM/OpenFOAM-2.0.1/bin/foamExec: line 145: exec: interFoam: not found Can this be because OpenFOAM environment is not active on other nodes? I usually log onto the node, activate the OF environment, then float the run. What can be done about this? Hrushikesh |
|
April 11, 2012, 17:35 |
|
#18 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Hi Hrushikesh,
Have you made the changes shown in this link: patch4foamJob_send_settings_var ? If not or if you don't understand how to do them, run the following commands: Code:
(echo export foamCompiler=ThirdParty; echo export WM_COMPILER=Gcc45; echo export WM_NCOMPPROCS=8) > /Storage1/cfd/OpenFOAM/OpenFOAM-2.0.1/etc/prefs.sh Code:
export foamCompiler=ThirdParty export WM_COMPILER=Gcc45 export WM_NCOMPPROCS=8 Bruno
__________________
|
|
April 13, 2012, 09:09 |
|
#19 |
Member
Hrushikesh Khadamkar
Join Date: Jul 2010
Location: Mumbai
Posts: 68
Rep Power: 16 |
Hi Bruno,
Yup. That did the trick (patch4foamJob_send_settings_var). Thanks for telling me g=how to do those settings. Now I can run OpenFOAM on multiple nodes. Hrushikesh |
|
April 13, 2012, 09:17 |
|
#20 |
Member
Hrushikesh Khadamkar
Join Date: Jul 2010
Location: Mumbai
Posts: 68
Rep Power: 16 |
Hi Bruno,
Yup. That did the trick (patch4foamJob_send_settings_var). Thanks for telling me g=how to do those settings. Now I can run OpenFOAM on multiple nodes. Hrushikesh |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Experience in building OpenFOAM on LinuxIA64 | Nils Smeds (Smeds) | OpenFOAM Installation | 43 | July 25, 2010 10:09 |
New building machine for OpenFoam | gerbervdgraaf | OpenFOAM Installation | 23 | December 9, 2009 03:39 |
Building OpenFOAM on IRIX | lakeat | OpenFOAM Installation | 7 | July 16, 2008 08:27 |
Building OpenFOAM 13 on solaris10Sun Opteron AMD64 | phil | OpenFOAM Installation | 0 | August 28, 2006 02:12 |
Building OpenFoAm on SGI Altix 64bits | anne | OpenFOAM Installation | 8 | June 15, 2006 10:27 |