Multiple Installation Issue: Parallel Processing No Longer Works
Hello all,
I have been using OF1.7.x for a number of cases, and when OF2 was released I eagerly installed it. Unfortunately, since I installed OF2, I can no longer run applications in parallel in OF1.7.x. Some more info: -Parallel processing works fine in OF2 -There appears to be some kind of MPI problem (MPI installed with OF2 is newer than that installed with OF17x, did it delete the older version?) -I have set up my .bashrc to call one of the two OF bashrc when I call the appropriate alias -using Ubuntu 10.04 -I would like to continue using OF1.7.x for the cases that are in progress since it would take some effort to change the structure to be suitable for use in OF2. -I get the following error: Code:
-------------------------------------------------------------------------- Code:
------------------------------------------------------------------------------- Thanks, Dan |
Greetings Dan,
You forgot to mention how exactly do you differentiate between OpenFOAM versions!? My guess is that your "$HOME/.bashrc" currently looks something like this: Code:
source $HOME/OpenFOAM/OpenFOAM-1.7.x/etc/bashrc Code:
alias of17x='source $HOME/OpenFOAM/OpenFOAM-1.7.x/etc/bashrc' Code:
of17x Code:
mpirun -np 4 simpleFoam -parallel Now, since we are as of now relying on aliases, things will definitely not work, since there is no OpenFOAM environment available for them to use. So, there are at least two solutions:
Bruno |
Hi Bruno,
Thank you for your detailed response. I have set up my .bashrc with aliases for each instance of OF, and I have only called one instance in each terminal window. I also run the solver in parallel using a different command - I use "runParallel simpleFoam 2" as is done in the "Allrun" files in the tutorials. I tried using the "mpirun" command, and using foamJob, and I received the same error as above in both instances. Any other ideas? Thanks, Dan |
Hi Daniel,
I'm sorry, but so much got in the way that I forgot about your thread :( The RunParallel function is only meant to be used in a single machine with a single installation, i.e. with the OpenFOAM environment activated automatically in ~/.bashrc. This does look like something got damaged somewhere somehow, but further experimentation should be done. OK, I've reviewed your first post and only now did something pop out to me, which you had already mentioned... so, to verify this, run with the 1.7.x environment active the following commands: Code:
echo $WM_MPLIB If it doesn't find such folder, check if you have the folder "$WM_THIRD_PARTY_DIR/platforms/": Code:
ls -l $WM_THIRD_PARTY_DIR/platforms/ If you can't find something or nothing at all, then something got damaged along the way :(. Rebuilding OpenFOAM 1.7.x might be the safest bet. Best regards and good luck! Bruno |
Hi Bruno,
Thanks again for your response. I tried a few things, but still no luck. As it turns out, making the cases compatible with OF2 was not as demanding as I had anticipated, so I am now using OF2 without any further difficulty. Thanks for your help, Dan |
Hi Daniel,
I'm glad you've got the hang of OF 2.0 :) And I know this is a bit uncalled for, but this phrase comes to mind: OpenFOAM 2.0 rules, 1.7 drools :p Have fun! Bruno |
Using multiple OF installations on one machine
Recently I installed OF2.0 and yesterday I installed OF 2.1.
As I was looking for information whether two different versions of OF can be run on a single machine I found this thread. The information above was very helpful. I tried to alter the solution of wyldckat and it seems to work properly - but: no guarantee! My ~/.bashrc looks like this: Code:
source $HOME/OpenFOAM/OpenFOAM-2.1.x/etc/bashrc The alias defined, sources the bashrc file of OF2.0. When I want to use OF2.0 I open a new terminal an run of20x as first command. This way I managed to run the cavity tutorial, using domain decomposition and running icoFoam in parallel, using OF2.0 in one tab and OF2.1 in another tab of my Gnome-terminal. Note: All versions were installed from sources using the git-repository. |
Greetings Gerhard and welcome to the forum!
A word of warning: that method you are using only works because you have both installations of OpenFOAM on the same working area. If you were using 2.1.0 on "/opt" and 2.1.x on "$HOME/OpenFOAM", this would not work. The advisable method is to use wmUNSET (available as of 2.0.0) to unload the current OpenFOAM version and then activate the proper version with the respective alias, such as of21x. For more: Advanced tips for working with the OpenFOAM shell environment ;) Best regards, Bruno |
I am getting the same error message as Dan above (with OpenFoam 2.4):
Code:
-------------------------------------------------------------------------- Checking the OpenFOAM env variables set on the LD_LIBRARY_PATH... Code:
------------------------------------------------------------------------------- Code:
echo $MPI_ARCH_PATH I have followed these installation instructions: https://openfoam.org/download/2-4-0-source/ and have set WM_MPILIB=OPENMPI, but only after some initial execution of ./Allmake, then changed the setting and ran ./Allmake again. Should I have done an ./Allclean before running ./Allwmake again? Thank you! Andreas |
I was actually able to fix this issue by following this fix: https://bugs.openfoam.org/view.php?id=1770
and doing: Code:
foam3rdParty Code:
--> FOAM FATAL ERROR: |
I recompiled Pstream and that fixed the issue. Is it possible that the dependencies got somehow mixed up when re-installing openmpi, or what could be a possible explanation for Pstream needing to be recompiled in order for this to work?
|
Just guessing, but it is probably because your environment was linked to "FOAM_LIBBIN/dummy/libPstream.so" instead of the one in the openmpi directory. So the easiest solution would have been either prepending the openmpi directory to the "LD_LIBRARY_PATH" or creating a symbolic link.
|
All times are GMT -4. The time now is 00:31. |