-
Notifications
You must be signed in to change notification settings - Fork 37
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
Find netcdf and pnetcdf with env vars on Chicoma and PM #531
Conversation
This is necessary because the `nc-config` executable cannot be used to locate the correct path for the libraries.
ddf4cd3
to
6467964
Compare
TestingWith these changes, I am able to compile MPAS-Ocean on Chicoma and Perlmutter. Without them, the netcdf and pnetcdf libraries are not found (see #523 (comment)). I also successfully ran the |
@mark-petersen, this is ready for you to try. |
@darincomeau and @mark-petersen, please cherry-pick this commit when you test #523 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This worked for me on chicoma. Specifically, I started with the compass repo on #523, cherry-picked this commit, then:
rm -rf /lustre/scratch5/mpeterse/spack_test
rm -rf /lustre/scratch5/mpeterse/spack_tmp
export CONDA_BASE=/usr/projects/climate/mpeterse/miconda3
./conda/configure_compass_env.py \
--conda ${CONDA_BASE} \
--update_spack \
--spack /lustre/scratch5/mpeterse/spack_test \
--tmpdir /lustre/scratch5/mpeterse/spack_tmp \
--compiler gnu \
--recreate
note that I did not use
--mache_fork xylar/mache --mache_branch update_cime_machines
, and this presumably defaults to
--mache_fork E3SM-Project/mache --mache_branch main
Regardless, this finds the correct netcdf and pnetcdf paths on chicoma. I was able to compile with gnu debug and run a nightly test suite.
@mark-petersen, thanks for testing!
No, that's not quite right. It defaults to getting mache from the latest release (from a conda package rather than the repository). So in the future you would need to explicitly put in that fork and branch to test with |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approved based on testing with #523 on Perlmutter.
Thanks @darincomeau! |
This is necessary because the
nc-config
executable (and equivalents for the other libraries) cannot be used to locate the correct path for the libraries relative to thebin
directory.Checklist
Testing
in this PR) any testing that was used to verify the changes