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

Site config updates and bugfixes for NRL systems (Atlantis, Nautilus) #1449

Merged
merged 7 commits into from
Jan 17, 2025

Conversation

climbfuji
Copy link
Collaborator

@climbfuji climbfuji commented Jan 13, 2025

Summary

General

  • Require variant ~libbsd for expat package to avoid duplicate packages when building unified environment on Narwhal

Atlantis

Update compilers.yaml and packages_gcc.yaml: remove unneeded environment modifications, add missing module dependencies.

Narwhal

Fixing the underlying issue for the wrong/old/not-even-default libsci libraries being linked by several packages is not straightforward and will require the HPE Cray admins to make modifications. Therefore, this PR provides a utility script util/narwhal/fix_libsci.sh as a workaround. This script needs to be run after each successful spack-stack environment build.

# Utility script to work arounds issues on Narwhal, where an old cray-libsci
# implementation is found and used by spack packages that use autotools,
# libtool, and configure. This is because of symbolic links in /opt/cray/pe/lib64
# pointing to the old (v21) libsci installation, and /etc/ld.so.conf.d/ containing
# a file that tells the build system to include libraries from /opt/cray/pe/lib64.

# The approach is to scan all shared libraries in a spack-stack environment and
# use patchelf to replace the "bad" libsci references in those with references
# to the "good" libsci version (determined by looking at the module that is loaded).

Nautilus

Revert gcc from 12.2.1 to 11.2.1 to address a known problem with the version of ld from binutils that ships with gcc@12. This particular version leads to compilation errors of downstream packages (e.g. py-pandas) when using openblas as provider for blas, lapack, fftw-api in spack-stack. See https://github.com/OpenMathLib/OpenBLAS/wiki/Faq#ELFoffset for more information.

Testing

(NRL colleagues, please see https://github.nrlmry.navy.mil/NEPTUNE/neptune-atmos/pull/1096 for a testing-only PR (not to be merged) for these changes)

Applications affected

NEPTUNE and JEDI-NEPTUNE on Atlantis, Nautilus, Narwhal

Systems affected

Atlantis, Nautilus, Narwhal

Dependencies

None

Issue(s) addressed

Atlantis

Resolves #1445

Narwhal

Working towards #1447 (this is not a full solution)

Nautilus

Resolves #1446

Checklist

  • This PR addresses one issue/problem/enhancement, or has a very good reason for not doing so.
  • These changes have been tested on the affected systems and applications.
  • All dependency PRs/issues have been resolved and this PR can be merged.

@climbfuji climbfuji self-assigned this Jan 13, 2025
@climbfuji climbfuji added NAVY United States Naval Research Lab cleanup labels Jan 13, 2025
@climbfuji climbfuji changed the title On Narwhal, use system default libsci Site config updates and bugfixes for NRL systems (Atlantis, Narwhal, Nautilus) Jan 14, 2025
@climbfuji climbfuji force-pushed the feature/narwhal_libscidef branch from 3d45023 to 0996876 Compare January 15, 2025 14:29
@climbfuji climbfuji force-pushed the feature/narwhal_libscidef branch from d1cd1c7 to ef2e1ec Compare January 15, 2025 21:04
@climbfuji climbfuji changed the title Site config updates and bugfixes for NRL systems (Atlantis, Narwhal, Nautilus) Site config updates and bugfixes for NRL systems (Atlantis, Nautilus) Jan 15, 2025
@climbfuji climbfuji marked this pull request as ready for review January 16, 2025 18:58
@climbfuji climbfuji enabled auto-merge (squash) January 16, 2025 22:45
@climbfuji climbfuji merged commit 138ca19 into develop Jan 17, 2025
9 checks passed
@climbfuji climbfuji deleted the feature/narwhal_libscidef branch January 17, 2025 02:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cleanup NAVY United States Naval Research Lab
Projects
None yet
4 participants