openfoam 1.6 on debian etch
Hej,
does anyone have any experience with installing openfoam on a debian etch system with the system provided libraries, namely gcc = 4.1.2 openmpi = 1.1.4 and if not, does anyone know if those library versions are high enough to compile openfoam 1.6 |
Greetings Roman,
I have no experience with building OpenFOAM 1.6(.x) in Debian, but lots in Ubuntu, which derives from Debian :) As for versions:
As for the rest, the instructions provided by OpenCFD in www.openfoam.com should be enough to build OpenFOAM. Best regards, Bruno |
thank you almost done
Hej,
thank you. I got everything compiled and almost running. I am stuck with the parallel running though. I got myself the source of the MPI libs that the computer is running and compiled it with this changed in the settings.sh file. Unfortunately, I get error messages when I try to run the simulation in parallel. Single thread does not pose a problem. But I don't really want to run anything on the master machine of the cluster. Code:
CMD: mpirun -hostfile /home/roman/hostfile.uybOCy4QV -np 8 |
Hi Roman,
I don't remember seeing an error like that, but by what it says, it seems to me it's looking for a help file, for it to report on the respective error message. It could be that the language files are missing in the MPI's installation. As for testing the connections, try the parallel test utility. To build it, Quote:
The script foamJob should have created a file named log with the same output. It is only configured for using OpenMPI's mpirun, so adapt it to your needs if you're running another MPI application! The host file that foamJob can use by default, is one of these files: Code:
machines As for the script foamJob, it has the advantage of requiring a lot less commands to type each time you need to run a parallel job :) Now, like I said before, and assuming that you defined properly on how the case should be split in 8 sub-domains and you ran decomposePar. There are a few ways of setting the environment variables, whether:
Best regards, Bruno |
thanks for this extensive reply
hej,
ok, i get the output plus something bad. Code:
[node0014:05178] mca: base: component_find: unable to open: libibverbs.so.1: cannot open shared object file: No such file or directory (ignored) Code:
Build : 1.6-f802ff2d6c5a I just found that it might be bug in the MPI version that i compiled, but I am not sure! when this is done, i will def write a install article for debian etch :) |
Hello again Roman,
Great! Communications work and I believe that the environment is properly set in all slaves. Your Debian box is missing the library libibverbs.so, so you could install it. Or you could try to use the precompiled OpenMPI that comes with OpenFOAM's ThirdParty binary package; or even try compiling it, using the script Allwmake at the ThirdParty-1.6 folder. Now, if I'm not mistaken, MCA is part of the communications section of MPI. And libibverbs is an library for InfiniBand networking. You can check the forum for more info on mpirun or OpenMPI, or check your MPI's manual for command options. Just recently there has been a post about mca included in the command for calling mpirun: SimpleFoam run in Parallel post #4 Have you tried running your case with foamJob? That thing about libibverbs is just a warning, so it should work! Best regards, Bruno |
working
It seems that it is working with foamJob, but not with the wrapper supplied by the cluster. Which is good to know.
Thanks for the extensive help. |
wiki article on installation
here one can find the complete solution to the installation of openfoam 1.6 on debian etch in server mode, as it is used on clusters http://openfoamwiki.net/index.php/In...in_Server_Mode
|
Greetings Roman,
I just saw the post you made on the wiki. I'm astonished that a tweaked script of mine ended up on the wiki, without being me putting it there :) Ah the marvels of GPL :D Long live free source :cool: But there is something I just want to make sure that it's working or not in your installation, specially since I'm the one responsible for the tweaked script! Did you need to change anything in settings.sh for gcc to be properly recognized? Are you sure you used the actual built gcc? Please open a new terminal window, activate (if not sourced automatically) the OpenFOAM environment and confirm that you have the right gcc version up by running: Code:
gcc -v Code:
gcc version 4.3.3 (OpenFOAM) Code:
GMPROOT=${GMP_DIR}/platforms/$WM_ARCH$WM_COMPILER$WM_COMPILER_ARCH Code:
GMPROOT=${GMP_DIR}/platforms/$WM_ARCH$WM_COMPILER_ARCH That particular issue on the first moded version is because I copy-pasted from the version I tweaked for cross-compiling OpenFOAM in Linux for running in Windows... and the two names collided (both paths were named linux), so I added $WM_COMPILER to the path for the build compiler (so it could be linuxGcc and linuxmingw32). By the way, why didn't you build the OpenMPI 1.3.3 that comes in the ThirdParty package? It's more recent than 1.1.4! And the building process is already imbued in the Allwmake script in the ThirdParty-1.6 folder! Or is it incompatible with Debian Etch? Best regards, Bruno |
works
Hej,
yeah, your script worked great, thanks for that. I have gcc-4.3.3 (OpenFOAM) working here. So that is not a problem. I didn't know at that point if the openMPI would work the way I intended it to work, so I basically chose the one that was already installed, but didn't seem to work correctly. But right now, it works like a charm with the 1.1.4, I might try to update over the next couple of days, and see how it turns out. If it works, then I will just give it a try with a higher version of mpi and update the post. |
All times are GMT -4. The time now is 06:06. |