Installation OpenFOAM-1.7.x with wmakeScheduler
Hey I am Tobi and a new community member,
first of all. Hello everybody. I am working with Ubuntu 10.04 an had installed OpenFoam 1.7.1 with the Ubuntu/Debian Pack without problems. So a good CFD - eng said, that the only version is up to date is the git responsitory. I had downloaded everything and did all steps in the introductions. Got so much mistakes and issues with compiling OpenFoam, but hope i have fixed it now. The only thing i can 't fix until now is using wmakeScheduler for compiling OF with my two cores :/ -> export WM_SCHEDULER=wmakeScheduler -> export WM_HOSTS="shorty:2" -> export WM_NCOMPPROCS=$($WM_SCHEDULER -count) after typing echo $WM_NCOMPPROCS I got --> 2 After starting ./Allwmake it will stop at the beginning of line "SOURCE=..." "SOURCE=..." what did i wrong? Sorry but i am new on Ubuntu - Distributions and so on. Hope someone can help me. Couse i need the new Solver added in the new update. Thanks Tobi |
Greetings Tobi and welcome to the forum!
Mmm, they should really put up a warning that for single machines, the wmakeScheduler isn't necessary. You can simply just do: Code:
export WM_NCOMPPROCS=2 edit: Wait... but WM_NCOMPPROCS did get set properly, since you said that 'export WM_HOSTS="shorty:2"' !! There was nothing wrong there, as far as I can tell! Additionally, there are a few packages that you'll need to install to ensure that OpenFOAM will build: Building OpenFOAM1.7.0 from source post #4 and onward In that thread you'll find the packages needed for building OpenFOAM and the code documentation (a few posts down). Finally, to keep a log of the building process, run Allwmake like this: Code:
./Allwmake > make.log 2>&1 Best regards and good luck! Bruno |
Hi Bruno,
I have read your thread that you have linked above a hour befor and added all the packages. Think that was my real problem to compile it without issues. Just, i compile with 1 core :/ although i set WM_NCOMPPROS=2 Don 't know why it don' t work. Will install OF on my new computer in three day's (6 cores) I will test it with your Code Code:
./Allwmake > make.log 2>&1 Couse i need the chtMultiRegionLiquidFoam solver :) Tobi |
Hi Tobi,
Quote:
Code:
export WM_NCOMPPROCS=2 If you want a more self-adapting code for setting that variable, you can use this: Quote:
Best regards, Bruno |
Quote:
Will try your last post and set it into my .bashrc. Thx. Will make an answer how it work. |
Okay :)
OpenFoam-1.7.x (git) is now working (jehaaa) (: if i install it on my new machine i will try to set the "WM_HOSTS" variable to Code:
export WM_HOSTS="localhost:6" Maybe this will work. Greetings Tobi |
Hey again,
included your code to my ~/.bashrc Code:
shorty@shorty:~/OpenFOAM/OpenFOAM-1.7.x$ . $HOME/.bashrc Got Ubuntu 10.04. A CFD-eng. said today, that the compiling with more cores doen 't work. He has linux and there it works but on his ubuntu don 't work the Scheduler. I tested everything. If i build on 2 cores he is working until that code end Code:
Done ThirdParty Allwmake Any ideas ? Can make a log if this will help. Tobi |
Hi Tobi,
Only when building libscotch and OpenMPI, it will only use a single core (the people at OpenCFD forgot about it :( ). What does this output: Code:
egrep "^processor" /proc/cpuinfo | wc -l -------------------- EDIT: I think I figured it out - run this: Code:
echo $HOST Try running this before you run Allwmake: Code:
export HOST=$HOSTNAME Code:
export WM_HOSTS="$HOSTNAME:6" Otherwise, you will have to make your ssh sessions passwordless. For example: How to connect with ssh without using a password EDIT2: Ironically, this has already been fixed a few days ago in OpenFOAM 1.7.x. Best regards, Bruno |
Hi Bruno,
first of all. Thx for your help. I 'll got a new mainboard etc. so I have to wait until all is received. And then I install everything new. Question: Ubuntu 10.04 or CAE Linux Ubuntu 10.04? After the installation i will check out your commands and post the output here. Your question, if i build in a real or virtual machine, i think a real :( but I am not sure what you mean. Build on my personal computer so i think its real. Hope my english skills aren 't as bad as i think :( Best reguards. Tobi PS: Think i will start compiling at saturdays. |
Hi Tobi,
Quote:
Quote:
Quote:
Quote:
Quote:
Best regards, Bruno |
Quote:
hihi, but only if you can build on 2 - 3 - 4 - 6 cores etc. You build OF - 1.5 dev on Linux or Ubuntu? A friend told me that if you use Linux, its very easy to build with more cores couse you just have to type the WM_HOSTS compared with ubuntu. I hope it will work with more cores in a few days ;) Tobi |
Hi Tobi,
Quote:
Code:
export WM_NCOMPPROCS=6 Best regards, Bruno |
Hey Bruno,
i know that Ubuntu is a distribution of Linux (: So far. I will get the latest OpenFoam Version with git and hope that you are right (but i know that you are right (: ) But one problem still exists. I am still waiting for my new mainbaord and cpu :/ But tomorrow - yea tomorrow it will be mine ;) Thx a lot. If any errors occur i ll post it. Tobi |
Wrong entry :(
Sorry for that post. |
Hi Bruno,
Quote:
Quote:
After setting HOST the variable exists and the output is: "shorty" (my computer name) but you said, that it is fixed now. I ll see. I will try it now and if it doesn 't work i ll try it with SSH Bye Tobi |
Hey Bruno,
its me Tobi. It 's working with all 6 cores. Nice - very nice. So last question. Is a process that is in background faster than a process which is shown on the terminal? Tobi |
Hi Tobi,
Quote:
Quote:
In theory, outputting to the screen will require additional processing, so it will depend if it's the graphics card job to fully interpret what needs to be shown, therefore done in parallel, without holding back the CPU. If that's done properly, it should not weight very much. Otherwise, you're better off outputting to a file, since it will only require CPU+memory operations, some of which already necessary, and then the occasional flush to the hard drive. I know that psychologically, I always feel that outputting to a file is faster :D Best regards, Bruno |
Quote:
I have followed numerous threads here on this topic. Bruno, thank you for all of your input - it's been very helpful for me. Currently, I am installing in RHEL 6.2 on multiple cores using the following command: Code:
./Allwmake > make.log 2>&1 Could you please offer an explanation of the command above? In particular, Code:
> make.log 2>&1 Lastly, where is the log file written to? Thank you, Shaun |
Greetings Shaun and welcome to the forum!
The "make.log" file is placed in the same folder where you ran Allwmake.
Bruno |
Ok thanks! Great explanation.
Unfortunately, the log file created indicates that the installation process flopped. :( I would like to figure out what is going on, but I am not sure how I should go about seeking help. :confused: - Should I start another thread so as not to hi-jack this one? - How can I use this log file to figure out what went wrong? (All I can tell right now is that there are a heck of a lot of "undefined references" and nearly every one has something to do with one of a myriad of libraries.) Thanks for any thoughts and suggestions :), Shaun |
Hi Shaun,
well you can use the following command: Code:
./Allwmake 1> make.log 2> error.log Upload it and we can help you :) Tobi You installed the necessary packages ? Are you compiling 1.7.x? Quote:
|
Hey again,
Thanks for the response, Tobi. :D I am installing OpenFOAM-2.1.x (Repository Release) Currently, it is OpenFOAM-2.1.0 Seeing as it's not 1.7.0, I created a new thread to post to. In reference to installing the necessary packages: I have installed all of the packages that were brought to my attention. However, there may be some that were not mentioned since the closest Linux distro to RHEL 6.2 on the OpenFOAM installation tutorial is Fedora 15/16. (I mention these in more detail in the new thread.) Therefore, I simply installed as if my distro was Fedora 15 or 16 and downloaded the packages described as necessary for installation on these distros. Finally I uploaded a portion of the error log in the new thread. Check it out if you'd like. Feel free to let me know any ways I can clean it up to make it easier to read/debug. Thanks again, Shaun |
Hi Shaun and Tobi,
@Tobi: Quote:
And it's really simple when we have a single log file: search for the first or second occurrence of "Error " and voilą, reason for the problem found. @Shaun: I'm heading now to the other thread: http://www.cfd-online.com/Forums/ope...hel-6-2-a.html Best regards, Bruno |
Hello there,
first of all my name is Christopher and I stumbled across this thread while searching for an answer for the parallel compilation of OpenFoam. I am using OpenFoam 2.3.0 on Ubuntu 14.04. I followed the description of the official support of using the wmakeScheduler but compilation only works on one processor. Also the hints in this thread of setting up the hostname does not fix the problem. Do you have any up-to-date hint for me? Is there any known bug? Best Regards Chris |
Greetings Chris and welcome to the forum!
Using wmakeScheduler is only useful when using more than one machine in parallel. Clearer instructions for installing OpenFOAM 2.3.0 on Ubuntu 14.04 are given here: http://openfoamwiki.net/index.php/In...u#Ubuntu_14.04 - there you've find how to build with multiple cores with a single machine. Best regards, Bruno |
Hi wyldckat,
this perfectly answered my question. Thank you very much. Nice Forum! Chris |
All times are GMT -4. The time now is 06:55. |