summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorTomoki, Karatsu <49965247+t-karatsu@users.noreply.github.com>2020-05-25 20:12:13 +0900
committerGitHub <noreply@github.com>2020-05-25 13:12:13 +0200
commit821c729ec00b603271d1118d878899fc546a7186 (patch)
tree233f356bc8d03b6fb972fcc2c2fde63b4fa8cd4a /var
parent6d913ddab7faf9d38447b6cfb62a3fd0133f2632 (diff)
downloadspack-821c729ec00b603271d1118d878899fc546a7186.tar.gz
spack-821c729ec00b603271d1118d878899fc546a7186.tar.bz2
spack-821c729ec00b603271d1118d878899fc546a7186.tar.xz
spack-821c729ec00b603271d1118d878899fc546a7186.zip
netlib-scalapack: specify MPI's location for Fujitsu-MPI. (#16798)
Fujitsu-MPI wrapper commands aren't recognized from 'FindMPI' function of 'cmake'. If we are using the Fujitsu compiler and Fujitsu MPI, specify the MPI path information explicitly.
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/netlib-scalapack/package.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/netlib-scalapack/package.py b/var/spack/repos/builtin/packages/netlib-scalapack/package.py
index 75993c4701..2acc06e6bb 100644
--- a/var/spack/repos/builtin/packages/netlib-scalapack/package.py
+++ b/var/spack/repos/builtin/packages/netlib-scalapack/package.py
@@ -82,6 +82,15 @@ class NetlibScalapack(CMakePackage):
"-DCMAKE_Fortran_FLAGS=%s" % self.compiler.fc_pic_flag
])
+ # Specify Fujitsu-MPI's location
+ if spec.satisfies('%fj') and '^fujitsu-mpi' in spec:
+ options.extend([
+ '-DMPI_C_COMPILER=%s' % spec['mpi'].mpicc,
+ '-DMPI_CXX_COMPILER=%s' % spec['mpi'].mpicxx,
+ '-DMPI_Fortran_COMPILER=%s' % spec['mpi'].mpifc,
+ '-DMPI_BASE_DIR=%s' % spec['mpi'].prefix
+ ])
+
return options
@run_after('install')