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

Enable threaded ocean and ice tests #1038

Closed

Conversation

douglasjacobsen
Copy link
Member

This merge re-enables threading within the ocean and sea ice models for
PET and PMT tests.

Fixes: #828

This commit re-enables threading within the ocean and sea ice models for
PET and PMT tests.

[Non-BFB]
Fixes: #828
@douglasjacobsen douglasjacobsen added the non-BFB PR makes roundoff changes to answers. label Aug 30, 2016
@rljacob rljacob added this to the v1.0alpha.9 milestone Sep 23, 2016
@rljacob
Copy link
Member

rljacob commented Sep 23, 2016

@jgfouca This makes mods to cime2 test scripts. See if they need to be translated to cime5.

@rljacob
Copy link
Member

rljacob commented Sep 30, 2016

@amametjanov can you take care of merging this?

amametjanov added a commit that referenced this pull request Oct 1, 2016
… (PR #1038)

Enable threaded ocean and ice tests:
This merge re-enables threading within the ocean and sea ice models for
PET and PMT tests.

Fixes: #828
@rljacob
Copy link
Member

rljacob commented Oct 4, 2016

I would like this to reverted since it breaks PET tests for the Wcycle case. Unless you can figure out a way to turn threading off for WCYCLE but on for ocean-only PET tests.

amametjanov added a commit that referenced this pull request Oct 5, 2016
…nto next (PR #1038)"

This reverts commit ee4056a, reversing
changes made to 40e97ca.
@rljacob rljacob removed this from the v1.0alpha.9 milestone Oct 20, 2016
@rljacob
Copy link
Member

rljacob commented Oct 20, 2016

@jonbob This PR is yours to fix.

@rljacob
Copy link
Member

rljacob commented Jan 6, 2017

This PR probably needs to be redone. @jgfouca I don't think those PET mods for ocn and sea ice made it in to CIME5 so they don't have to be undone. the PMT test no longer exists. The config_pe changes need to be redone for cime5.

# echo "WARNING: component OCN is not threaded, changing NTHRDS_OCN to 2"
# ./xmlchange -file env_mach_pes.xml -id NTHRDS_OCN -val 2
#endif
if ( $NTHRDS_ICE <= 1) then
Copy link
Member

Choose a reason for hiding this comment

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

The new python version of PET sets nthrds to 2 for all components

# @ nthrd = $NTHRDS_OCN * 2
# ./xmlchange -file env_mach_pes.xml -id NTHRDS_OCN -val $nthrd
#endif
if ($NTHRDS_ICE == 1) then
Copy link
Member

Choose a reason for hiding this comment

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

test no longer exists.

@@ -231,8 +231,8 @@
<pes PECOUNT="T" MACH="redsky|skybridge">
<NTASKS_ATM>128</NTASKS_ATM> <NTHRDS_ATM>4</NTHRDS_ATM> <ROOTPE_ATM>0</ROOTPE_ATM> <NINST_ATM>1</NINST_ATM>
<NTASKS_LND>$NTASKS_ATM</NTASKS_LND> <NTHRDS_LND>$NTHRDS_ATM</NTHRDS_LND> <ROOTPE_LND>$ROOTPE_ATM</ROOTPE_LND> <NINST_LND>1</NINST_LND>
<NTASKS_ICE>$NTASKS_ATM</NTASKS_ICE> <NTHRDS_ICE>1</NTHRDS_ICE> <ROOTPE_ICE>$ROOTPE_ATM</ROOTPE_ICE> <NINST_ICE>1</NINST_ICE>
<NTASKS_OCN>$NTASKS_ATM</NTASKS_OCN> <NTHRDS_OCN>1</NTHRDS_OCN> <ROOTPE_OCN>$ROOTPE_ATM</ROOTPE_OCN> <NINST_OCN>1</NINST_OCN>
Copy link
Member

Choose a reason for hiding this comment

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

Needs to be ported to new config_pes for cime5

@rljacob
Copy link
Member

rljacob commented Jan 10, 2017

@jonbob I recommend closing this and redoing the pe layout changes in a new PR.

@jonbob
Copy link
Contributor

jonbob commented Feb 13, 2017

Fixed by #1257 - PET tests now passing

@jonbob jonbob closed this Feb 13, 2017
@jonbob jonbob deleted the douglasjacobsen/script/enable-threaded-tests branch February 13, 2017 22:23
agsalin pushed a commit that referenced this pull request Apr 13, 2017
Big refactor of CaseStatus management

Write a special handler in utils.py in order to be able to
easily encapsulate the concept that a function needs to log
its status to CaseStatus and be robust in the face of exceptions.

Rearrange and rename some functions in build.py in order to make
it more clear what is the public API and what are internal functions.

Test suite: scripts_regression_tests
Test baseline:
Test namelist changes:
Test status: bit for bit

Fixes #1038

User interface changes?: CaseStatus will look slightly different

Code review: @jedwards4b @bertinia
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug fix PR non-BFB PR makes roundoff changes to answers. Scripts
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants