summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPramod S Kumbhar <pramod.r.s.kumbhar@gmail.com>2017-08-07 21:56:47 +0200
committerAdam J. Stewart <ajstewart426@gmail.com>2017-08-07 14:56:47 -0500
commit82463f1fd622872b80f80a7c62728992d204b5cc (patch)
tree9c470b893604dd5b994f2598f054c8ccae1f3f98
parentf2871c7529e19318646bad3adbd4493298b3cf4b (diff)
downloadspack-82463f1fd622872b80f80a7c62728992d204b5cc.tar.gz
spack-82463f1fd622872b80f80a7c62728992d204b5cc.tar.bz2
spack-82463f1fd622872b80f80a7c62728992d204b5cc.tar.xz
spack-82463f1fd622872b80f80a7c62728992d204b5cc.zip
Fix Scalasca build error: (#5004)
Build system "usually" autodetects mpi library but this is not the case on many platforms. Provide mpi library name/version as part for configure args.
-rw-r--r--var/spack/repos/builtin/packages/scalasca/package.py5
1 files changed, 5 insertions, 0 deletions
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 @@ class Scalasca(AutotoolsPackage):
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