|
[Sponsors] |
wmake - options for parallel code using omp.h |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
May 15, 2014, 09:30 |
wmake - options for parallel code using omp.h
|
#1 |
New Member
Paweł Kuczyński
Join Date: Feb 2011
Location: Warsaw, Poland
Posts: 19
Rep Power: 15 |
Dear forumers,
I want to compile a code that incorporates omp.h library. This library uses '#pragma' statements in order to inform the compiler about the parallel parts of the code. So the if I compile the file test.cpp using g++ I have to put a flag '-fopenmp': Code:
g++ test.cpp -fopenmp Any help will be greatly appreciated.
__________________
Best regards P. Kuczynski. |
|
May 15, 2014, 17:00 |
|
#2 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Greetings Paweł,
I got the PM you sent me. The quick answer is: have a look into the files located at "wmake/rules/linux*Gcc/c*". Problem is that editing those files will affect the whole building process. I'll try to have a better look into this during the coming weekend. Best regards, Bruno
__________________
|
|
May 17, 2014, 17:23 |
|
#3 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Hi Paweł,
OK, I've finally managed to have a look into this. The files I looked at were:
Code:
ptFLAGS += -fopenmp Bruno
__________________
Last edited by wyldckat; May 17, 2014 at 17:29. Reason: mistakenly posted without finishing the post |
|
May 19, 2014, 05:15 |
|
#4 |
New Member
Paweł Kuczyński
Join Date: Feb 2011
Location: Warsaw, Poland
Posts: 19
Rep Power: 15 |
Hi Bruno,
tanks a lot for your quick and precise answer. It saved me a lot of time! My model is added to OF in the form of separate dynamic library - where I would like to include parallel parts of the code. So I think it should be enough to compile only my library with -fopenmp flag and then use it normally inside the OF. Many thanks!
__________________
Best regards P. Kuczynski. |
|
Tags |
compile, omp, parallel, wmake |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[OpenFOAM.com] erros in Allwmake | jiwon | OpenFOAM Installation | 7 | December 30, 2015 13:34 |
Installation OF1.5-dev | ttdtud | OpenFOAM Installation | 46 | May 5, 2009 03:32 |
State of the art in CFD technology | Juan Carlos GARCIA SALAS | Main CFD Forum | 39 | November 1, 1999 15:34 |
public CFD Code development | Heinz Wilkening | Main CFD Forum | 38 | March 5, 1999 12:44 |
What kind of Cmmercial CFD code you feel well? | Lans | Main CFD Forum | 13 | October 27, 1998 11:20 |