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

Add util/nrl/batch_install.sh, add patch to build py-netcdf4 without mpi #1464

Merged
merged 16 commits into from
Jan 22, 2025

Conversation

climbfuji
Copy link
Collaborator

@climbfuji climbfuji commented Jan 21, 2025

Summary

Add util/nrl_batch_install.sh. This includes a workaround for installing the cycl environment on Narwhal, for which we need to switch from the Cray compiler wrappers for gcc@10 to the native compilers (lines 258-264 in nrl_batch_install.sh). I will work on a better solution for this in the next weeks.

During the installation, three problems were discovered that are fixed in this PR:

  1. For gcc@:10, need to use older version of cdo in configs/common/packages.yaml that uses C++-17 instead of C++-20 (same as existing modifications for Intel Classic)
  2. For Atlantis, remove external (old) bison to avoi duplicate packages
  3. We need to be able to build py-netcdf without MPI (~mpi) even when netcdf-c was built with +mpi to avoid errors mentioned in py-netcdf4 must be buildable with ~mpi, even if netcdf is built with ~+mpi` #1463

Also update submodule pointer for spack for changes recently merges into spack-stack-dev (py-numpy bug fix for %intel).

Testing

Used util/nrl_batch_install.sh to install all necessary environments on Atlantis, Narwhal, Nautilus.

Applications affected

None

Systems affected

Atlantis, Narwhal, Nautilus

Dependencies

Issue(s) addressed

Resolves #1463

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.

…nfigs/sites/tier1/narwhal/compilers.gcc-direct.tmp to /site/compilers.yaml
@climbfuji climbfuji changed the title Add util/nrl_batch_install.sh Add util/nrl_batch_install.sh, add patch to build py-netcdf4 without mpi Jan 21, 2025
@climbfuji climbfuji self-assigned this Jan 21, 2025
…atch_install.sh -> util/nrl/batch_install.sh
@climbfuji climbfuji changed the title Add util/nrl_batch_install.sh, add patch to build py-netcdf4 without mpi Add util/nrl/batch_install.sh, add patch to build py-netcdf4 without mpi Jan 21, 2025
@climbfuji climbfuji enabled auto-merge (squash) January 21, 2025 22:13
@climbfuji climbfuji merged commit 52066c5 into JCSDA:develop Jan 22, 2025
9 checks passed
@climbfuji climbfuji deleted the feature/nrl_batch_install branch January 22, 2025 13:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

Successfully merging this pull request may close these issues.

py-netcdf4 must be buildable with ~mpi, even if netcdf is built with ~+mpi`
3 participants