|
[Sponsors] |
February 12, 2018, 00:30 |
Compiling New solver on HPC machine
|
#1 |
Member
Ali Noaman Ibrahim
Join Date: Sep 2015
Location: US_Chicago
Posts: 97
Rep Power: 11 |
Hello All
I have successfully compiled a solver on my laptop. However, it is not the case when I tried to compile it on the HPC machine where there is a library includes some dependencies (.H files) and for some unknown reasons it is unable to identify them from the source code as it suppose to ( and as it happened without any problem on my laptop). It gives error like:- fatal error: incompressibleTwoPhaseMixture.H: No such file or directory #include "incompressibleTwoPhaseMixture.H" I made different trials without success like compiling the solver from inside applications/ solver or trying to include the .H files inside the main folder of that library. Any suggestion? Thanks |
|
February 17, 2018, 01:15 |
|
#2 |
Member
Ali Noaman Ibrahim
Join Date: Sep 2015
Location: US_Chicago
Posts: 97
Rep Power: 11 |
I have found the reason behind the described issue. It is the version of OpenFoam! Where on my laptop, I have compiled the solver on OF2.2.2 but when tried to compile it on the HPC with OF Centos 2.2.2 , it is complaining and does not compile the solver because the locations of the dependencies and the files on Centos version are not the same as the regular OpenFoam version although they are the same!
To solve that we have to install the same exact OF version ! But , put in your mind : not all the HPC computers would accept that even if you compiled the same OF version ( Look at my next post which will report that kind of issue) |
|
February 17, 2018, 03:12 |
|
#3 | |
Member
Maximus Arelius
Join Date: Jan 2017
Location: Morocco
Posts: 36
Rep Power: 9 |
Quote:
We had kind of a similar issue with our HPC compiling OpenFoam. What you can do is: 1.Compile OpenFoam direclty on the HPC after compiling Gcc,MPI,etc in third party folder. It may take time but will work fine. 2.Copy the compiled OF from your laptop to your HPC , the compiled applications will work but newly compiled solvers will have to be compiled on your local machines and then moved on to the HPC. Note: OpenMPI needs to be compiled on the HPC for the laptop compiled OF to work in parallel on the HPC. 3.Or you can use the precompiled versions such as Open-Foam-in-Box which work direclty. ES7 |
||
February 18, 2018, 02:43 |
|
#4 | |
Member
Ali Noaman Ibrahim
Join Date: Sep 2015
Location: US_Chicago
Posts: 97
Rep Power: 11 |
Quote:
1. How could you know the suitable version of Gcc, .. etc ? Do they need root access ? 2. Unfortunately, it does not work where I got error like :- make: Target `application' not remade because of errors. after doing ./Allwmak inside applications folder. 3. Again ,that does not work. I have tried it! for e.g. when you try to do blockMesh, you will get something like:- blockMesh: /lib64/libc.so.6: version `GLIBC_2.14' not found (required by /export/home/XXX/OpenFOAM/OpenFOAM-2.2.2/platforms/linux64GccDPOpt/lib/libblockMesh.so) |
||
February 18, 2018, 03:36 |
|
#5 | |
Member
Maximus Arelius
Join Date: Jan 2017
Location: Morocco
Posts: 36
Rep Power: 9 |
Quote:
1. Check the Readme in the ThirdParty(or makeGcc script) , it will mention the version of GCC supported. No root access is not needed if you compile it in your user area. 2.Once you have compiled the solvers on your laptop, then just copy the compiled OF to your HPC account , source the bashrc and it'll run the compiled applications, may be not in parallel but serial would work. 3.I am pretty sure that a precompiled version such as Open-FOAM-in-Box will work directly on yor HPC as it is compiled and has all the dependent libraries. https://www.cfdsupport.com/openfoam-in-box.html <-Check this I am sure if you perform the steps carefully , it'll work. We also have CentOS in out HPC, and we are not provided root permissions. ES7 |
||
February 18, 2018, 23:12 |
|
#6 | |
Member
Ali Noaman Ibrahim
Join Date: Sep 2015
Location: US_Chicago
Posts: 97
Rep Power: 11 |
Quote:
Thanks though for all your comments. |
||
February 18, 2018, 23:25 |
|
#7 | |
Member
Maximus Arelius
Join Date: Jan 2017
Location: Morocco
Posts: 36
Rep Power: 9 |
Quote:
It is interesting to know that the compiled version "OpenFoam-in-box" did not work. May be if you explained in detail the steps you followed then someone may be able to help you in a better manner. |
||
February 18, 2018, 23:42 |
|
#8 | |
Member
Ali Noaman Ibrahim
Join Date: Sep 2015
Location: US_Chicago
Posts: 97
Rep Power: 11 |
Quote:
1. I have Installed OF2.2.2 on my laptop from the link :- http://openfoamwiki.net/index.php/In...u#Ubuntu_15.10 2. I copied the main compiled folder of OF2.2.2 to the home of HPC, loaded of222 and then I changed the directory to application folder and inside i did :- ./Allwmake but after certain time of compilation I got :- make: Target 'application' not remade because of errors |
||
February 19, 2018, 00:07 |
|
#9 | |
Member
Maximus Arelius
Join Date: Jan 2017
Location: Morocco
Posts: 36
Rep Power: 9 |
Quote:
You don't need to compile again on the HPC. Why are you running ./Allwamke again?? Just copy your full OpenFOAM folder, source the bashrc and run a simple cavity problem. Also I think you do not understand what a pre-compiled version on OF is! It has all the dependent libraries , nothing is needed, it works out of the box. Are you a beginner with linux system?? No offence though. |
||
February 19, 2018, 00:18 |
|
#10 | |
Member
Ali Noaman Ibrahim
Join Date: Sep 2015
Location: US_Chicago
Posts: 97
Rep Power: 11 |
Quote:
: /lib64/libc.so.6: version `GLIBC_2.14' not found (required by /export/home/XXX/OpenFOAM/OpenFOAM-2.2.2/platforms/linux64GccDPOpt/lib/libblockMesh.so) Regarding the pre-compiled version, I have tried all the possible trials you could imagine! But without successful compilation! |
||
February 19, 2018, 00:33 |
|
#11 | |
Member
Maximus Arelius
Join Date: Jan 2017
Location: Morocco
Posts: 36
Rep Power: 9 |
Quote:
But regarding the pre-compiled version, if you notice it is aroun 2Gb when uncompressed and there is no need ti compile it again. Could you please mention the steps you followed for the pre-compiled version Open-Foam-in-box from cfd-support.com. I find it hard to believe as I had done the same procedure, but did not face any issues. may be you are missing something. Best ES7 |
||
February 19, 2018, 00:39 |
|
#12 | |
Member
Ali Noaman Ibrahim
Join Date: Sep 2015
Location: US_Chicago
Posts: 97
Rep Power: 11 |
Quote:
Thanks! |
||
February 19, 2018, 00:53 |
|
#13 | |
Member
Maximus Arelius
Join Date: Jan 2017
Location: Morocco
Posts: 36
Rep Power: 9 |
Quote:
https://www.cfdsupport.com/download-...am-in-box.html move it to you HPC. Just extract(run) it and source . You are good to go. I did not understand the 'general' steps. |
||
February 19, 2018, 00:56 |
Compiling New solver on HPC machine
|
#14 |
Member
Ali Noaman Ibrahim
Join Date: Sep 2015
Location: US_Chicago
Posts: 97
Rep Power: 11 |
That what I did exactly! But does not work for me!
I meant it is a general Website ( there is nothing specific relates to what are we talking about) thanks , long talk |
|
February 19, 2018, 01:09 |
|
#15 |
Member
Maximus Arelius
Join Date: Jan 2017
Location: Morocco
Posts: 36
Rep Power: 9 |
||
February 21, 2018, 10:11 |
|
#16 |
Member
Andrew Coughtrie
Join Date: May 2011
Posts: 51
Rep Power: 15 |
To compile the version of OpenFOAM you want on your HPC follow the relevant instructions from this page, OpenFOAM installation instructions
Since you're unlikely to have root access on the machine you'll have to hope the dependencies are already installed. If they aren't then you'll probably need to speak to whoever the administrator for the machine is and get them to sort it. Good Luck. Andy |
|
February 21, 2018, 11:06 |
|
#17 | |
Member
Ali Noaman Ibrahim
Join Date: Sep 2015
Location: US_Chicago
Posts: 97
Rep Power: 11 |
Quote:
Unfortunately, I found that there is an old version of GLIBC and I have to contact the administrator as you have suggested. |
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[TUTORIAL] Run fluent on distributed memory with 2 windows 7 64 bit machines | ghost82 | FLUENT | 54 | February 9, 2022 04:32 |
Problem with compiling the custom solver evapVOFHardt | lukasz0004 | OpenFOAM Programming & Development | 6 | March 13, 2016 15:04 |
thobois class engineTopoChangerMesh error | Peter_600 | OpenFOAM | 4 | August 2, 2014 10:52 |
Compiling New Solver | DavidOuellette | OpenFOAM Programming & Development | 4 | February 18, 2013 16:34 |
Working directory via command line | Luiz | CFX | 4 | March 6, 2011 21:02 |