summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authort-karatsu <49965247+t-karatsu@users.noreply.github.com>2019-10-06 10:58:43 +0900
committerAdam J. Stewart <ajstewart426@gmail.com>2019-10-05 20:58:43 -0500
commitc6b8d79ea6960609ec62fada1ab210725a464886 (patch)
tree6dbda35f28646f4192c43e9d26d22487a25fa019 /var
parent608f7321016d5a9937930d3163fdef9af0a194af (diff)
downloadspack-c6b8d79ea6960609ec62fada1ab210725a464886.tar.gz
spack-c6b8d79ea6960609ec62fada1ab210725a464886.tar.bz2
spack-c6b8d79ea6960609ec62fada1ab210725a464886.tar.xz
spack-c6b8d79ea6960609ec62fada1ab210725a464886.zip
Package/fujitsu mpi (#12807)
* fujitsu-mpi: commit new package * Add homepage. * * Modified the MPI commands to a simple form. * Unnecessary processing has been deleted. * Add conflict for all compilers except the Fujitsu compiler. * Fix typo. * Delete versions. * Delete conditions for specifying the Fujitsu compiler.
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/fujitsu-mpi/package.py40
1 files changed, 40 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/fujitsu-mpi/package.py b/var/spack/repos/builtin/packages/fujitsu-mpi/package.py
new file mode 100644
index 0000000000..3370cc3b21
--- /dev/null
+++ b/var/spack/repos/builtin/packages/fujitsu-mpi/package.py
@@ -0,0 +1,40 @@
+# Copyright 2013-2019 Lawrence Livermore National Security, LLC and other
+# Spack Project Developers. See the top-level COPYRIGHT file for details.
+#
+# SPDX-License-Identifier: (Apache-2.0 OR MIT)
+
+from spack import *
+
+
+class FujitsuMpi(Package):
+ """Fujitsu MPI implementation only for Fujitsu compiler."""
+
+ homepage = "https://www.fujitsu.com/us/"
+
+ conflicts('%arm')
+ conflicts('%cce')
+ conflicts('%clang')
+ conflicts('%gcc')
+ conflicts('%intel')
+ conflicts('%nag')
+ conflicts('%pgi')
+ conflicts('%xl')
+ conflicts('%xl_r')
+
+ provides('mpi@3.1:')
+
+ def install(self, spec, prefix):
+ raise InstallError(
+ 'Fujitsu MPI is not installable; it is vendor supplied')
+
+ def setup_dependent_package(self, module, dependent_spec):
+ self.spec.mpicc = self.prefix.bin.mpifcc
+ self.spec.mpicxx = self.prefix.bin.mpiFCC
+ self.spec.mpif77 = self.prefix.bin.mpifrt
+ self.spec.mpifc = self.prefix.bin.mpifrt
+
+ def setup_dependent_environment(self, spack_env, run_env, dependent_spec):
+ spack_env.set('MPICC', self.prefix.bin.mpifcc)
+ spack_env.set('MPICXX', self.prefix.bin.mpiFCC)
+ spack_env.set('MPIF77', self.prefix.bin.mpifrt)
+ spack_env.set('MPIF90', self.prefix.bin.mpifrt)