-
Notifications
You must be signed in to change notification settings - Fork 232
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
Fixing openmp compile #1010
Fixing openmp compile #1010
Conversation
nikizadehgfdl
commented
Sep 30, 2019
- openmp threads produce non-openmp stats
- openmp 1 thread run has to be a test. Otherwise it would be safer not supporting openmp at all.
- Simple tests produce with threads
Codecov Report
@@ Coverage Diff @@
## dev/gfdl #1010 +/- ##
=========================================
Coverage 43.16% 43.16%
=========================================
Files 213 213
Lines 62352 62352
=========================================
Hits 26915 26915
Misses 35437 35437
Continue to review full report at Codecov.
|
This fix is not complete. Dev/gfdl still has openmp issues. I don't know how I was able to compile this branch!! |
- HOWEVER, Answers for 1 thread runs differ from answers with no openmp threads!!! - Not acceptable
- One varible was set before OMP section and needs to be firstprivate. - We have to check for consistency of answers between openmp and non-openmp builds.
This branch fixes -openmp compilation issues as well as answer changes for threaded runs. |
!$OMP pen_TKE_2d,Temp_in,Salin_in,RivermixConst) & | ||
!$OMP firstprivate(start,npts) | ||
!$OMP firstprivate(start,npts,SurfPressure) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This fixes the answers mismatch between openmp and non-openmp execs.
I just tested an OpenMP build and am also seeing errors in the
Assuming it's not too much trouble, I think we should probably add this to the test suite, if only to check that it builds. Edit: Niki's patch will fix this issue (along with others) |
Gaea regression tests: https://gitlab.gfdl.noaa.gov/ogrp/MOM6/pipelines/9074 |
Gaea regressions have passed. I can also build this internally although I am seeing some differences in answers for some of the TCs in the new test suite. But I will look into those in a different PR. |