Skip to content
Snippets Groups Projects
Unverified Commit b04f9e67 authored by Matthieu Dorier's avatar Matthieu Dorier Committed by GitHub
Browse files

MPICH (package): add optional support for argobots (#17678)

parent 0e090064
Branches
Tags
No related merge requests found
...@@ -67,6 +67,8 @@ class Mpich(AutotoolsPackage): ...@@ -67,6 +67,8 @@ class Mpich(AutotoolsPackage):
variant('libxml2', default=True, variant('libxml2', default=True,
description='Use libxml2 for XML support instead of the custom ' description='Use libxml2 for XML support instead of the custom '
'minimalistic implementation') 'minimalistic implementation')
variant('argobots', default=False,
description='Enable Argobots support')
provides('mpi') provides('mpi')
provides('mpi@:3.0', when='@3:') provides('mpi@:3.0', when='@3:')
...@@ -141,6 +143,9 @@ class Mpich(AutotoolsPackage): ...@@ -141,6 +143,9 @@ class Mpich(AutotoolsPackage):
depends_on('pmix', when='pmi=pmix') depends_on('pmix', when='pmi=pmix')
# +argobots variant requires Argobots
depends_on('argobots', when='+argobots')
# building from git requires regenerating autotools files # building from git requires regenerating autotools files
depends_on('automake@1.15:', when='@develop', type=("build")) depends_on('automake@1.15:', when='@develop', type=("build"))
depends_on('libtool@2.4.4:', when='@develop', type=("build")) depends_on('libtool@2.4.4:', when='@develop', type=("build"))
...@@ -307,4 +312,9 @@ def configure_args(self): ...@@ -307,4 +312,9 @@ def configure_args(self):
# for hydra, for hydra2, and for MPICH itself). # for hydra, for hydra2, and for MPICH itself).
config_args += self.enable_or_disable('libxml2') 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 return config_args
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment