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

excessive print statements to stdout from MAPL OpenMP_Support.F90 #2853

Open
junwang-noaa opened this issue May 30, 2024 · 11 comments
Open

excessive print statements to stdout from MAPL OpenMP_Support.F90 #2853

junwang-noaa opened this issue May 30, 2024 · 11 comments

Comments

@junwang-noaa
Copy link

When we run with GOCART in UFS weather model, we noticed excessive print statements in the model run output file:

41: OpenMP_Support.F90 536 splitting component:
57: OpenMP_Support.F90 536 splitting component:
43: OpenMP_Support.F90 536 splitting component:
49: OpenMP_Support.F90 536 splitting component:
47: OpenMP_Support.F90 536 splitting component:
59: OpenMP_Support.F90 536 splitting component:
53: OpenMP_Support.F90 536 splitting component:
51: OpenMP_Support.F90 536 splitting component:

This becomes a problem when we run high resolution tests with large number of tasks. Further check shows that the prints are from MAPL OpenMP_Support.F90:

if(myPET==0) print*,__FILE__,__LINE__, 'internal states labels : <',trim(comp_name), (trim(labels(i)),i=1,size(labels)), '>'
print*,__FILE__,__LINE__, 'splitting component: <',trim(comp_name),'>'

This line seems a debug prints, could this line be commented out or only run in debug mode? Thanks

@junwang-noaa
Copy link
Author

@tclune @weiyuan-jiang FYI.

@tclune
Copy link
Collaborator

tclune commented May 30, 2024

@weiyuan-jiang Please either delete or convert these to use pflogger.

@weiyuan-jiang
Copy link
Contributor

@junwang-noaa which tag are you using now ? I can patch your tag and also remove the extra print for the future release.

@junwang-noaa
Copy link
Author

We are using MAPL 2.40.3.

@mathomp4
Copy link
Member

So that'd be a new MAPL v2.40.5 as we already have v2.40.4. I can work with @weiyuan-jiang to get that released.

(Note: v2.40.4 was a minor update for find_package(MAPL).)

@mathomp4
Copy link
Member

@junwang-noaa Thanks to @weiyuan-jiang we now have a MAPL v2.40.5. The only real change is the removal of these prints:

v2.40.4...v2.40.5

@junwang-noaa
Copy link
Author

Thank you all!

@junwang-noaa
Copy link
Author

@mathomp4 Another question, may I ask if you have a major release version with this change? There is request in UFS to install MAPL 2.43.0, which I believe does not contain this fix in this issue. Thanks

@mathomp4
Copy link
Member

@junwang-noaa MAPL v2.46.2 has the fix, but if you can't move to that, we could issue MAPL v2.43.3 with the fix.

@junwang-noaa
Copy link
Author

Thank you, @mathomp4! We will test with MAPL v2.46.2 in UFS.

@mathomp4
Copy link
Member

mathomp4 commented Jun 20, 2024

@junwang-noaa Sounds good. If you can't move to it (needs ESMF 8.6.1 which is in spack-stack v1.7), then we can backport for you.

Edited to correct to ESMF 8.6.1. MAPL 8.6.1 is about 30 years in the future unless we start really cranking out API changes. 😄

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

No branches or pull requests

4 participants