Remove OpenMP search when not using likwid#303
Conversation
|
@mknaranja do you mind reviewing ? :) |
|
are you not using OpenMP anymore ? And have you mixed up LIKWID/MUMPS above ? Just to be sure that's everything is as intended ;) |
I just aligned the build and install cmake files. Note that grepping
Where exactly ?
Sure you are very right |
|
"This PR removes the search of OpenMP when not using likwid" --> you meant MUMPS, right? |
|
If Likwid=Off and Mumps=Off, OpenMP is not used anymore. Likwid=On: The Likwid markers are initialized inside a parallel region -> OpenMP is used here. AI: "When MUMPS=ON, we don't need find_package(OpenMP) in our CMake, since our code never calls OpenMP directly. MUMPS can be built with or without OpenMP (see GMGPolar README.md file) if built with it, the dependency is already baked into MUMPS's own library/link config, so it comes along transitively when we link against MUMPS." Thus I would move the +1 code addition to the if(Likwid) section. (For the Mumps section I would guess that |
|
Yes of course you are correct let me fix this. |
|
Fixed in 8fcc596. That said, do we still have any OpenMP calls in the repo ? I don't see |
|
The only ones are: At the bottom of include/Definitions/global_definitions.h. We are probably missing an omp.h include in that file. I never tested if Likwid still works. |

This PR removes the search of OpenMP when not using likwid. This mimics the search happening in the build stage,
GMGPolar/CMakeLists.txt
Lines 57 to 60 in 9356b29
Merge Request - GuideLine Checklist
Guideline to check code before resolve WIP and approval, respectively.
As many checkboxes as possible should be ticked.
Checks by code author:
Always to be checked:
If functions were changed or functionality was added:
If new functionality was added:
If new third party software is used:
If new mathematical methods or epidemiological terms are used:
Checks by code reviewer(s):