diff --git a/var/spack/repos/builtin/packages/scalasca/package.py b/var/spack/repos/builtin/packages/scalasca/package.py index 276cdf05a5..81c08802fa 100644 --- a/var/spack/repos/builtin/packages/scalasca/package.py +++ b/var/spack/repos/builtin/packages/scalasca/package.py @@ -63,4 +63,9 @@ def configure_args(self): config_args.append("--with-cube=%s" % spec['cube'].prefix.bin) config_args.append("--with-otf2=%s" % spec['otf2'].prefix.bin) + if self.spec['mpi'].name == 'openmpi': + config_args.append("--with-mpi=openmpi") + elif self.spec.satisfies('^mpich@3:'): + config_args.append("--with-mpi=mpich3") + return config_args