diff options
author | Patrick Gartung <gartung@fnal.gov> | 2020-07-27 16:30:29 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-27 16:30:29 -0500 |
commit | 7c61d6d45f5236013ce405c401b3f064df27da48 (patch) | |
tree | 50c03327e149e63ffe6f6d74b0bd43458873141a | |
parent | ff529e6dc110fdfe106706bfc2c8104c56d54c01 (diff) | |
download | spack-7c61d6d45f5236013ce405c401b3f064df27da48.tar.gz spack-7c61d6d45f5236013ce405c401b3f064df27da48.tar.bz2 spack-7c61d6d45f5236013ce405c401b3f064df27da48.tar.xz spack-7c61d6d45f5236013ce405c401b3f064df27da48.zip |
Update darshan package with mpi variant (#17717)
* Update darshan package with nompi variant.
* Change variant to mpi and default to True
-rw-r--r-- | var/spack/repos/builtin/packages/darshan-runtime/package.py | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/var/spack/repos/builtin/packages/darshan-runtime/package.py b/var/spack/repos/builtin/packages/darshan-runtime/package.py index c58bc9edd5..1c81045e69 100644 --- a/var/spack/repos/builtin/packages/darshan-runtime/package.py +++ b/var/spack/repos/builtin/packages/darshan-runtime/package.py @@ -29,12 +29,13 @@ class DarshanRuntime(Package): version('3.1.0', sha256='b847047c76759054577823fbe21075cfabb478cdafad341d480274fb1cef861c') version('3.0.0', sha256='95232710f5631bbf665964c0650df729c48104494e887442596128d189da43e0') - depends_on('mpi') + depends_on('mpi', when='+mpi') depends_on('zlib') 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') def install(self, spec, prefix): @@ -47,11 +48,15 @@ class DarshanRuntime(Package): job_id = 'PBS_JOBID' # TODO: BG-Q and other platform configure options - options = ['CC=%s' % spec['mpi'].mpicc, - '--with-mem-align=8', - '--with-log-path-by-env=DARSHAN_LOG_DIR_PATH', - '--with-jobid-env=%s' % job_id, - '--with-zlib=%s' % spec['zlib'].prefix] + options = [] + if '+mpi' in spec: + options = ['CC=%s' % spec['mpi'].mpicc] + else: + options = ['--without-mpi'] + options.extend(['--with-mem-align=8', + '--with-log-path-by-env=DARSHAN_LOG_DIR_PATH', + '--with-jobid-env=%s' % job_id, + '--with-zlib=%s' % spec['zlib'].prefix]) with working_dir('spack-build', create=True): configure = Executable('../darshan-runtime/configure') |