Skip to content

Updates to make WW3 thread safe #315

Merged
JessicaMeixner-NOAA merged 8 commits into
NOAA-EMC:developfrom
JessicaMeixner-NOAA:bug/threadding
Feb 23, 2021
Merged

Updates to make WW3 thread safe #315
JessicaMeixner-NOAA merged 8 commits into
NOAA-EMC:developfrom
JessicaMeixner-NOAA:bug/threadding

Conversation

@JessicaMeixner-NOAA
Copy link
Copy Markdown
Collaborator

This adds thread private declarations for saved variables (Issue #307) for non-PDLIB cases. There is a long outstanding issue #214 to add regression tests for testing OMP threads and this PR does not address this long standing need. There will be a regression test added for the UFS system for which this bug was originally found. While only the TAUNX/Y in w3srce needed to be added to solve that case, the principal for why that was the fix was applied to the variables I found (except PDLIB). Thanks again to @JamesAbeles-NOAA for finding the solution!

Additionally in this PR two files were removed that should have been removed in PR #284 but were missed when combining a few PRs together.

Lastly, this PR also included porting #306 for WW3 to be used in UFS applications.

Only the usual regtests had differences.
matrixout20200218.tar.gz

@JessicaMeixner-NOAA
Copy link
Copy Markdown
Collaborator Author

As a sanity check, I ran the WW3 regression tests with OMP, OMPH tests with a different number of threads and the only regression test that failed is known to fail: ww3_tp2.10/./work_MPI_OMPH -- granted I tried this also with the develop branch and got the same result.

Copy link
Copy Markdown
Collaborator

@ukmo-ccbunney ukmo-ccbunney left a comment

Choose a reason for hiding this comment

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

Hi @JessicaMeixner-NOAA
These changes all look very sensible.
I will run some relevant regression tests next week.

Copy link
Copy Markdown
Collaborator

@ukmo-ccbunney ukmo-ccbunney left a comment

Choose a reason for hiding this comment

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

Hi @JessicaMeixner-NOAA ,
I've run the regression tests for the hybrid MPI-OMP tests on our system and the results are all identical with those from the develop branch. I'm happy to sign this one off now.

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.

4 participants