-
Notifications
You must be signed in to change notification settings - Fork 47
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
Revert modules mods #972
Revert modules mods #972
Conversation
@AlexanderRichert-NOAA I think this needs to be tested with all UFS applications as well as JEDI-Skylab (JEDI-FV3, JEDI-UFS, JEDI-MPAS). We also need @sking112 to help us testing with JEDI-NEPTUNE (I can provide instructions / a spack-stack test install for Sarah) and we need to test this with GEOS-GCM, too. |
I tested this with JEDI-Skylab. We'll need minor changes in JEDI (jedi-bundle and repos underneath), but these are trivial to make. We'll also need to check GEOS and NEPTUNE |
@climbfuji I'm happy to try with neptune if you have a test install for me to use |
Yes, let me do that on Nautilus. |
@sking112 I compiled a test stack on Nautilus and tested it with jedi-bundle (that's a good test, because Nautilus uses One complication of course is that this is based on Thanks for your help with testing!
|
@climbfuji Can you open up permissions on /p/app/projects/NEPTUNE/spack-stack/spack-stack-tst-mods? |
This is finally done, apologies for the delay and the hiccup. Setting |
@climbfuji The forecast model build cannot find bacio, sp, and w3nco libs. I'm using the jedi-neptune-env/1.0.0 module. Is this expected behavior? |
Can you check if your build system looks for |
It does indeed look for @areinecke do you have a preference for handling these library paths for the neptune_atmos builds? |
@grantfirl @mkavulich Heads up that with the next version of spack-stack (1.7.0), environment variables that can be used as hints for packages ( |
@AlexanderRichert-NOAA I merged the spack PR, please update the submodule pointer and revert @sking112 We can deal with the |
CI is currently broken, need to merge JCSDA/spack#410 after this PR to fix it |
Summary
Can we live without our module-related Spack tweaks?
This PR is an attempt to eliminate the need for our customizations to Spack's module-building logic. Specifically, it removes our hash length settability for providers (in the hope that we can live with having a hash in the MPI module hierarchy, because it's not something users will have to see or interact with; it's just slightly ugly). Also, it restores the
.upper(...)
thing for generating env variables. For packages that need a path likefoo_ROOT
we can put aenv.set()
call insetup_run_environment
(is this sufficient?).Testing
Tested on hera with hdf5%intel ^intel-oneapi-mpi. Module files are built correctly and can be loaded the usual way.
Applications affected
all
Systems affected
all
Dependencies
JCSDA/spack#400
Issue(s) addressed
Related to #436
Checklist