summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthieu Dorier <mdorier@anl.gov>2020-07-24 23:42:00 +0100
committerGitHub <noreply@github.com>2020-07-24 15:42:00 -0700
commitb04f9e6774da91b3de544563f078f5c459f32cef (patch)
treefd7101546368352d7f138cf9beae62c41b6f5736
parent0e090064c4cc90f36590516934e45e067c8b25dc (diff)
downloadspack-b04f9e6774da91b3de544563f078f5c459f32cef.tar.gz
spack-b04f9e6774da91b3de544563f078f5c459f32cef.tar.bz2
spack-b04f9e6774da91b3de544563f078f5c459f32cef.tar.xz
spack-b04f9e6774da91b3de544563f078f5c459f32cef.zip
MPICH (package): add optional support for argobots (#17678)
-rw-r--r--var/spack/repos/builtin/packages/mpich/package.py10
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