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

[INSTALL]: netcdf-c with --enable-logging (in separate env) #1045

Closed
AlexanderRichert-NOAA opened this issue Mar 26, 2024 · 9 comments
Closed
Assignees
Labels
NOAA-EMC OAR-EPIC NOAA Oceanic and Atmospheric Research and Earth Prediction Innovation Center

Comments

@AlexanderRichert-NOAA
Copy link
Collaborator

AlexanderRichert-NOAA commented Mar 26, 2024

Package name

netcdf-c

Package version/tag

(spack-stack default)

Build options

enable logging

Installation timeframe

Let's install the ufs-weather-model-env global-workflow-env subset of the unified env (plus anything that JCSDA wants) as a chained environment (though a lot of stuff will get rebuilt) on Hera (or somewhere comparably central) after the 1.7.0 release. We can call it, e.g., ue-debug-intel, and optionally add other debug/logging-enabled versions of packages in that environment.

Other information

This will require modifications to the netcdf-c spack recipe: spack/spack#43380

@climbfuji climbfuji added INFRA JEDI Infrastructure NOAA-EMC OAR-EPIC NOAA Oceanic and Atmospheric Research and Earth Prediction Innovation Center labels Apr 1, 2024
@climbfuji
Copy link
Collaborator

It might be good to turn on debugging features for hdf5 and esmf, too

@edwardhartnett
Copy link
Collaborator

edwardhartnett commented Apr 1, 2024 via email

@climbfuji
Copy link
Collaborator

When logging is turned on in netcdf-c, it also turns on HDF5 error messages, which are verbose and helpful. I don't know of any other logging mechanism in HDF5. I cannot speak for ESMF. Ed

On Mon, Apr 1, 2024 at 8:10 AM Dom Heinzeller @.> wrote: It might be good to turn on debugging features for hdf5 and esmf, too — Reply to this email directly, view it on GitHub <#1045 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJIOMMH6HYLQDQLT6N6WP7DY3FTE3AVCNFSM6AAAAABFJQXAKWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMRZHAYTQNRQHA . You are receiving this because you were assigned.Message ID: @.>
-- Edward Hartnett CIRES/NOAA EMC

That's good to know, thanks Ed. About ESMF: See https://github.com/JCSDA/spack/blob/4fafe3eadbe330e64423b8ee16c88f8309f48d5b/var/spack/repos/builtin/packages/esmf/package.py#L78 and https://github.com/JCSDA/spack/blob/4fafe3eadbe330e64423b8ee16c88f8309f48d5b/var/spack/repos/builtin/packages/esmf/package.py#L256

@climbfuji
Copy link
Collaborator

has this been started?

@AlexanderRichert-NOAA
Copy link
Collaborator Author

Yes, I have a PR in for main Spack that is awaiting review: spack/spack#43380

@climbfuji climbfuji removed the INFRA JEDI Infrastructure label May 13, 2024
@AlexanderRichert-NOAA
Copy link
Collaborator Author

I'll create the environment as described as part of the 1.8.0 release.

@AlexanderRichert-NOAA
Copy link
Collaborator Author

I created the following environment on Hera, which has netcdf-c and parallelio with logging enabled, esmf and mapl with debug enabled, and a handful of other packages built with CMAKE_BUILD_TYPE=Debug: /contrib/spack-stack/spack-stack-1.8.0/envs/emc-debug-intel-2021.5.0/install/modulefiles/Core

@AlexanderRichert-NOAA
Copy link
Collaborator Author

@climbfuji
Copy link
Collaborator

Perfect, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
NOAA-EMC OAR-EPIC NOAA Oceanic and Atmospheric Research and Earth Prediction Innovation Center
Projects
No open projects
Development

Successfully merging a pull request may close this issue.

5 participants