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

fixes for eamxx running from e3sm repo for sycl changes #6636

Closed
wants to merge 2 commits into from

Conversation

oksanaguba
Copy link
Contributor

@oksanaguba oksanaguba commented Sep 22, 2024

fixes for eamxx running from e3sm repo for sycl changes

Fixes #6635

[bfb]

Copy link

PR Preview Action v1.4.8
🚀 Deployed preview to https://E3SM-Project.github.io/E3SM/pr-preview/pr-6636/
on branch gh-pages at 2024-09-22 22:51 UTC

@mahf708 mahf708 added the EAMxx PRs focused on capabilities for EAMxx label Sep 23, 2024
@ambrad
Copy link
Member

ambrad commented Sep 23, 2024

This is fine as long as we're OK with doing the changes in this repo rather than in the SCREAM repo. I think it's reasonable in this case.

Copy link
Contributor

@tcclevenger tcclevenger left a comment

Choose a reason for hiding this comment

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

Do we need to issue a PR cherry-picking this into SCREAM?

@ambrad
Copy link
Member

ambrad commented Sep 23, 2024

Do we need to issue a PR cherry-picking this into SCREAM?

No. The next upstream merge to SCREAM will bring in the Hxx changes (original PR) and these current ones, consistently updating SCREAM.

@@ -277,7 +277,7 @@ apply_iop_forcing(const Real dt)

ElementOps elem_ops;
elem_ops.init(hvcoord);
const bool use_moisture = (params.moisture == Homme::MoistDry::MOIST);
const bool use_moisture = params.use_moisture;
Copy link
Member

Choose a reason for hiding this comment

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

I just remembered: It's better to remove this line entirely. The local variable use_moisture is not actually used. This is already fixed in the downstream repo.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

That did not work. There are calls in that file that use it, dpxx version of this file is very different.

Copy link
Member

Choose a reason for hiding this comment

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

Ok.

We might actually not want to merge this PR so that our next up- and downstream merges do not hit conflicts. A better course of action might be to (1) do an upstream merge (E3SM -> SCREAM) to bring in the Hxx changes, fix the issues due to these, then (2) do a downstream merge (SCREAM -> E3SM) to fix the EAMxx build in E3SM.

@bartgol @jgfouca or others, do you have an opinion on the best course of action?

I'll approve this PR as is in case merging this PR is decided as best.

Copy link
Member

Choose a reason for hiding this comment

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

Simple alternative: We can easily work around these issue with some temporary changes in Hxx. Then after the repos are unified, we'd back out the workarounds. That way, only Hxx code would be touched for now.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

i am not sure what you mean by the alternative?

Copy link
Member

Choose a reason for hiding this comment

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

Yes, I'll submit a PR later today and see if others object to the approach.

Copy link
Member

Choose a reason for hiding this comment

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

have disabled the EAMxx tests on PRs (disabled all 4 F tests but 2 W tests

Thanks @mahf708. I looked at other PRs and note that really only this test needs to be disabled: SMS_D_Ln5_P4.ne4pg2_oQU480.F2010-SCREAMv1-MPASSI.ghci-oci_gnu, not all the F cases. Up to you; I'm just pointing out disabling all four F tests is not necessary.

Copy link
Contributor

Choose a reason for hiding this comment

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

I can't disable them one by one... The F suite has 4 cases:

      matrix:
        test:
          - SMS_D_Ln5_P4.ne4pg2_oQU480.F2010.ghci-oci_gnu
          - ERS_Ld5_P4.ne4pg2_oQU480.F2010.ghci-oci_gnu.eam-wcprod_F2010
          - SMS_D_Ln5_P4.ne4pg2_oQU480.F2010-SCREAMv1-MPASSI.ghci-oci_gnu
          - ERS_Ld5_P4.ne4pg2_oQU480.F2010-SCREAMv1-MPASSI.ghci-oci_gnu.eamxx-prod

The last two are affected. But I can only disable them all at once, or I have to submit a PR. I think it's okay to disable them all at once because the following W tests run whenever F tests run:

      matrix:
        test:
          - SMS_D_Ld1_P8.ne4pg2_oQU480.WCYCL2010NS.ghci-oci_gnu
          - ERS_Ld3_P8.ne4pg2_oQU480.WCYCL2010NS.ghci-oci_gnu.allactive-wcprod_1850

Copy link
Contributor

@mahf708 mahf708 Sep 24, 2024

Choose a reason for hiding this comment

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

(This shows that I should likely split these tests at some point... this is all the early days... fyi, standalone-single-precision passes because we don't run homme with that, see #6637)

Copy link
Member

Choose a reason for hiding this comment

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

The simple alternative I proposed is here: #6645.

@ambrad ambrad self-requested a review September 23, 2024 17:02
Copy link
Member

@ambrad ambrad left a comment

Choose a reason for hiding this comment

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

See comment re: IOP local variable.

@ambrad
Copy link
Member

ambrad commented Sep 24, 2024

I'm closing this PR now that #6645 is in next.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
EAMxx PRs focused on capabilities for EAMxx
Projects
None yet
Development

Successfully merging this pull request may close these issues.

class "Homme::SimulationParams" has no member "moisture"
5 participants