Skip to content
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

bugfix: openmp private declarations #91

Merged
merged 1 commit into from
May 13, 2021

Conversation

TomasTorsvik
Copy link
Contributor

Declare indices of do loops (e.g. i,j,k) as private when using
$OMP PARALLEL DO PRIVATE(...)

This makes it possible to compile iHAMOCC with openMP. I have not run any test cases with this version yet, I guess this should be done either on Fram or Betzy. Is there a setup for running BLOM/iHAMOCC stand-alone (without using the NorESM framework)? I have been able to run BLOM stand-alone without the iHAMOCC part.

@TomasTorsvik TomasTorsvik added bug Something isn't working iHAMOCC Issue mainly concerns the iHAMOCC code base labels May 10, 2021
@TomasTorsvik TomasTorsvik self-assigned this May 10, 2021
@TomasTorsvik TomasTorsvik marked this pull request as draft May 10, 2021 08:57
@TomasTorsvik TomasTorsvik linked an issue May 10, 2021 that may be closed by this pull request
@nordmoen
Copy link
Collaborator

I won't comment on the PR code. However, I was able to compile this PR together with #89 and the test began to run. The fuk95 test case is missing a ocn_in file to run to completion, but it is able to start and get there.

Copy link
Contributor

@JorgSchwinger JorgSchwinger left a comment

Choose a reason for hiding this comment

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

Looks good, thank you!

Copy link
Contributor

@matsbn matsbn left a comment

Choose a reason for hiding this comment

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

Great you went through the iHAMOCC OpenMP directives! We should indeed have a standalone test case including iHAMOCC, but I do not have a setup for that currently. For now, maybe the correctness of hybrid MPI/OpenMP execution could be tested using the NorESM case @JorgSchwinger propose in PR #92? I'll approve anyway, since the changes in OpenMP directives should not break any existing functionality.

@TomasTorsvik TomasTorsvik marked this pull request as ready for review May 13, 2021 21:01
Declare indices of do loops (e.g. i,j,k) as private when using
$OMP PARALLEL DO PRIVATE(...)
@TomasTorsvik TomasTorsvik force-pushed the bugfix_hamocc_openmp branch from b841ec6 to eb4c570 Compare May 13, 2021 21:06
@TomasTorsvik TomasTorsvik merged commit fcbc610 into NorESMhub:master May 13, 2021
@TomasTorsvik TomasTorsvik deleted the bugfix_hamocc_openmp branch May 13, 2021 21:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working iHAMOCC Issue mainly concerns the iHAMOCC code base
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Incorrect OpenMP directives in iHAMOCC
4 participants