-
Notifications
You must be signed in to change notification settings - Fork 251
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot turn off OpenMP if hpc-stack (NCEPLIBS) is built with OpenMP #410
Comments
@DusanJovic-NOAA @aerorahul Is this true we have to run the model with openmp if hpc_stack is built with OpenMP? |
Correct. |
This needs a clarification. NCEPlibs are currently being built with OpenMP ON and the OpenMP is linked
This needs to be turned to:
Doing so, will prevent OpenMP to be transiently propagated to the application linking against Someone needs to independently verify this. I had myself convinced with a simple test of my own. |
@climbfuji Try:
after all the |
Then, specifying dependency on OpenMP should be conditional on
should be:
In fact only |
Code updates were committed, close the issue |
Description
Turning off OpenMP for the ufs-weather-model has no effect when the NCEPLIBS are built with OpenMP enabled. In particular, flags like
-fopenmp
are still passed to the subcomponents (e.g. FMS as in PR #392) even if these turn off OpenMP in theirCMakeLists.txt
.To Reproduce:
Tested on Cheyenne with GNU.
set(OPENMP OFF CACHE BOOL "Enable OpenMP threading" FORCE)
tocmake/configure_cheyenne.gnu.cmake
BUILD_VERBOSE
flag forbuild.sh
to see the output ofmake
Additional context
I added an
INFO
message to the twoif
tests related to OpenMP in the top-levelCMakeLists.txt
:Output
The text was updated successfully, but these errors were encountered: