diff options
author | Robert Brunner <rbrunner@illinois.edu> | 2021-01-20 15:51:46 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-20 15:51:46 -0600 |
commit | 966f6bc2d2a59c6623d72d2969c4f463b2bc927c (patch) | |
tree | b744c740499ccbaded9b995d2a4c59e52275a583 | |
parent | 0e2fa561f3a12dadabe192a3c07cfe934859c50b (diff) | |
download | spack-966f6bc2d2a59c6623d72d2969c4f463b2bc927c.tar.gz spack-966f6bc2d2a59c6623d72d2969c4f463b2bc927c.tar.bz2 spack-966f6bc2d2a59c6623d72d2969c4f463b2bc927c.tar.xz spack-966f6bc2d2a59c6623d72d2969c4f463b2bc927c.zip |
Propagate SCR resource_manager flag to libyogrt dependency (#21168)
* When the SCR spec specifies a resource_manager=SLURM or LSF flag, propagate the spec through to
the libyogrt scheduler=slurm or lsf
* Use libyogrt default scheduler option when the SCR spec does not specify LSF or SLURM
-rw-r--r-- | var/spack/repos/builtin/packages/scr/package.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/scr/package.py b/var/spack/repos/builtin/packages/scr/package.py index 301c08943d..6821f8c5ed 100644 --- a/var/spack/repos/builtin/packages/scr/package.py +++ b/var/spack/repos/builtin/packages/scr/package.py @@ -50,6 +50,8 @@ class Scr(CMakePackage): variant('libyogrt', default=True, description="Build SCR with libyogrt for get_time_remaining.") + depends_on('libyogrt scheduler=slurm', when="+libyogrt resource_manager=SLURM") + depends_on('libyogrt scheduler=lsf', when="+libyogrt resource_manager=LSF") depends_on('libyogrt', when="+libyogrt") # MySQL not yet in spack |