diff options
-rw-r--r-- | var/spack/repos/builtin/packages/mpich/package.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/mpich/package.py b/var/spack/repos/builtin/packages/mpich/package.py index a485124476..d967611fdd 100644 --- a/var/spack/repos/builtin/packages/mpich/package.py +++ b/var/spack/repos/builtin/packages/mpich/package.py @@ -67,6 +67,8 @@ spack package at this time.''', variant('libxml2', default=True, description='Use libxml2 for XML support instead of the custom ' 'minimalistic implementation') + variant('argobots', default=False, + description='Enable Argobots support') provides('mpi') provides('mpi@:3.0', when='@3:') @@ -141,6 +143,9 @@ spack package at this time.''', depends_on('pmix', when='pmi=pmix') + # +argobots variant requires Argobots + depends_on('argobots', when='+argobots') + # building from git requires regenerating autotools files depends_on('automake@1.15:', when='@develop', type=("build")) depends_on('libtool@2.4.4:', when='@develop', type=("build")) @@ -307,4 +312,9 @@ spack package at this time.''', # for hydra, for hydra2, and for MPICH itself). config_args += self.enable_or_disable('libxml2') + # If +argobots specified, add argobots option + if '+argobots' in spec: + config_args.append('--with-thread-package=argobots') + config_args.append('--with-argobots=' + spec['argobots'].prefix) + return config_args |