darshan-runtime: add SGE scheduler (#24160)

* Set job_id for SGE in darshan-runtime package
* Use a multi value variant for scheduler

Only one scheduler can be selected so make the variant multi valued and
set multi=False.
This commit is contained in:
Glenn Johnson 2021-06-06 18:15:40 -05:00 committed by GitHub
parent 09d317c293
commit 986bcef160
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -37,14 +37,18 @@ class DarshanRuntime(Package):
depends_on('hdf5', when='+hdf5')
depends_on('papi', when='+apxc')
variant('slurm', default=False, description='Use Slurm Job ID')
variant('cobalt', default=False, description='Use Coblat Job Id')
variant('pbs', default=False, description='Use PBS Job Id')
variant('mpi', default=True, description='Compile with MPI support')
variant('hdf5', default=False, description='Compile with HDF5 module')
variant('apmpi', default=False, description='Compile with AutoPerf MPI module')
variant('apmpi_sync', default=False, description='Compile with AutoPerf MPI module (with collective synchronization timing)')
variant('apxc', default=False, description='Compile with AutoPerf XC module')
variant(
'scheduler',
default='NONE',
description='queue system scheduler JOB ID',
values=('NONE', 'cobalt', 'pbs', 'sge', 'slurm'),
multi=False
)
conflicts('+hdf5', when='@:3.1.8',
msg='+hdf5 variant only available starting from version 3.2.0')
@ -64,6 +68,8 @@ def install(self, spec, prefix):
job_id = 'COBALT_JOBID'
if '+pbs' in spec:
job_id = 'PBS_JOBID'
if '+sge' in spec:
job_id = 'JOB_ID'
# TODO: BG-Q and other platform configure options
options = []