-
Notifications
You must be signed in to change notification settings - Fork 49
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
Try spack-stack 1.9.0 on Hera for unifying python environment #563
base: main
Are you sure you want to change the base?
Conversation
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.
SCM built and ran successfully with spack-stack 1.9.0. There was a deprecation notice while building that can probably be silenced or something.
SCM UFS case-gen script successfully created a case and the case ran fine with the virtual environment.
Commands used:
./UFS_forcing_ensemble_generator.py -d /scratch1/BMC/gmtb/Dustin.Swales/SCM/replay/rt_3252959/control_c48_intel -sc --C_RES 48 -dt 1200 -n control_c48_intel_C_test -sdf SCM_GFS_v17_p8 -lons 230 -lats 30 -fm 2 -vm 1
./run_scm.py --npz_type gfs --file scm_ufsens_control_c48_intel_C_test.py --timestep 1200
@grantfirl Because Lua modules run in a subshell there isn't a non-hacky and fragile way to source the Python environment from the
|
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.
Didn't test it on Hera (don't have access) but looks good to me.
@scrasmussen Agree to everything you said. I was able to use this line: execute{cmd="source /scratch1/BMC/gmtb/ccpp-scm-software/spack-stack-1.9.0/bin/activate", modeA={"load"}} It sourced the file because I was then able to run case_gen and the scm. Must be in bash of course. |
I created a new modulefile to use an experimental installation of spack-stack 1.9.0 from Ratko Vasic on Hera.
To use:
This load the spack-stack installation of python, although following https://spack-stack.readthedocs.io/en/1.6.0/MaintainersSection.html, I've created a new virtual environment using the spack-stack 1.9.0 python that should have every python package needed by any and all python scripts in the CCPP SCM repo. The environment is located in /scratch1/BMC/gmtb/ccpp-scm-software/spack-stack-1.9.0. To activate this virtual environment: