Skip to content

Automatic compilation supports OpenMP#13

Merged
pedro-jm merged 2 commits into
NCAR:developfrom
pedro-jm:paral
Jul 25, 2025
Merged

Automatic compilation supports OpenMP#13
pedro-jm merged 2 commits into
NCAR:developfrom
pedro-jm:paral

Conversation

@pedro-jm
Copy link
Copy Markdown
Collaborator

Updates the cmake compilation to include support for OpenMP builds

Comment thread CMakeLists.txt Outdated
add_compile_definitions(firelib PUBLIC DM_PARALLEL=1)
endif()

if(ENABLE_OPENMP)
Copy link
Copy Markdown
Collaborator

@mkavulich mkavulich Jul 24, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In ufs-weather-model, this activation variable is OPENMP rather than ENABLE_OPENMP (https://github.com/ufs-community/ufs-weather-model/blob/develop/CMakeLists.txt#L74). It may make sense to stay consistent with that convention.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mkavulich yes, thanks, I think you are right. We will have to change it.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

WRF uses USE_OPENMP, however to add to @mkavulich's comment if the CFBM will primarily be meant to be used within ufs-weather-model then this should be changed to be more inline with that.

On the WRF side, we can internally translate USE_OPENMP -> OPENMP just before including the fire project directory.

@pedro-jm pedro-jm merged commit 9d05441 into NCAR:develop Jul 25, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants