OpenFOAM 4.1 on cluster with Scientific Linux
Dear all,
I am having a hard time installing OpenFOAM 4.1 on a cluster where I have no admin rights. I was mainly using the information here starting at #5: http://openfoamwiki.net/index.php/In...HEL#CentOS_6.5 Everything worked fine, I think, till step #7. When I type "uname -m" I am getting: "x86_64" So I was using the commands Code:
module load openmpi-x86_64 || export PATH=$PATH:/usr/lib64/openmpi/bin Code:
"source $HOME/OpenFOAM/OpenFOAM-4.1/etc/bashrc WM_LABEL_SIZE=64 WM_COMPILER_TYPE=ThirdParty FOAMY_HEX_MESH=yes" Code:
echo "alias of41='module load openmpi-x86_64; source \$HOME/OpenFOAM/OpenFOAM-4.1/etc/bashrc $FOAM_SETTINGS'" >> $HOME/.bashrc "oduleCmd_Load.c(204):ERROR:105: Unable to locate a modulefile for 'openmpi-x86_64'" So, according to this thread's post #8 and #9: https://www.cfd-online.com/Forums/op...ot-access.html I used "module avail" and got the following results (only showing information regarding openmpi here): Code:
/etc/modulefiles/parallel -------------------------------------------------------------------------------- After ". .bashrc" and "of41" there is no error msg anymore. After that everything works fine, as far as I can tell, but in #14, the compilation stops at 2%. The last lines of the log file: Code:
[ 2%] Building CXX object ThirdParty/protobuf/vtkprotobuf/src/CMakeFiles/protoc_compiler.dir/google/protobuf/compiler/importer.cc.o Running Allwmake in $WM_PROJECT_DIR unfortunately gives me the following error (changed the name of the user to "..."): Code:
Compiling enabled on 4 cores Well, he is looking for openmpi-1.10.2, I guess, but there is no folder for openmpi in the Third Party folder. So, I checked another installation of OpenFOAM 1.6, which was installed by a colleague of mine years ago. In the Third Party folder for version 1.6 I can find an openmpi-1.3.3 folder FWIW. Let me know what information I should provide additionally. Looking forward for your help. |
OK, good news: It is compiling at the moment for some minutes w/o errors yet. I am not really sure why exactly but I changed the following line in the bashrc.
Code:
WM_MPLIB=SYSTEMOPENMPI This time I used the command for 32 Bit instead of 64 Bit as before. |
so your running 32 bit now
forgive me, but I would think that would be a real hindrance to the quality of the simulations. I have constructed my own cluster with Xenserver and Scientific Linux 7 and I hit a very similar issue.
My plan was to go through the SL7 install directions and make sure that I had actually run the commands correctly. It's something that is probably going to take me days, because I am far from fast at this. Mostly because I am still learning how Linux OS system works. So I am expecting there will be a learning curve there. In-case you have a better solution, that you have come up with in the mean time, I just wanted to checkin and ask. Anything that was helpful or other tips for the rest of us SL users? What about the new version. Looks like OF foundation is saying that we should use Docker?! Don't know about you but I am really hesitant to volunteer to learn another software. I am sure that docker is really cool, but I personally have enough on my plate, and would like to avoid this if it is going to be another rabbit hole. |
Greetings to all!
I'm really late on this, but: Quote:
If anything, you are looking for installation instructions to which version of OpenFOAM on SL7? Quote:
The reason why they are not providing more instructions for other distributions is rather simple: no one nor any company is sponsoring that work, namely to support native builds of OpenFOAM on other Linux Distributions. The option of building from source code always exists and it should be a lot easier nowadays. Beyond this, if you need specific installation instructions, you can always ask here on the forum for them. I usually try to make as many available as possible at https://openfoamwiki.net/index.php/Installation - but as time grows short, I've had to keep the instructions to a minimum, mostly to the versions I use and the ones that people ask for. Best regards, Bruno |
All times are GMT -4. The time now is 17:49. |