diff options
author | Erik Schnetter <schnetter@gmail.com> | 2022-04-20 12:15:45 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-20 18:15:45 +0200 |
commit | 8556f832380ce77a9ccdd97386ff7f774f956cba (patch) | |
tree | 3d905ffb4c58807766f713016ea1c6c24fb6b323 | |
parent | a717c5df4064a6fdbed14ca634941d0aa97707d6 (diff) | |
download | spack-8556f832380ce77a9ccdd97386ff7f774f956cba.tar.gz spack-8556f832380ce77a9ccdd97386ff7f774f956cba.tar.bz2 spack-8556f832380ce77a9ccdd97386ff7f774f956cba.tar.xz spack-8556f832380ce77a9ccdd97386ff7f774f956cba.zip |
mpitrampoline: New version 4.0.0 (#30106)
-rw-r--r-- | var/spack/repos/builtin/packages/mpitrampoline/package.py | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/mpitrampoline/package.py b/var/spack/repos/builtin/packages/mpitrampoline/package.py index 65522fbbdd..b185d86db1 100644 --- a/var/spack/repos/builtin/packages/mpitrampoline/package.py +++ b/var/spack/repos/builtin/packages/mpitrampoline/package.py @@ -17,6 +17,21 @@ class Mpitrampoline(CMakePackage): maintainers = ['eschnett'] version('develop', branch='main') + version('4.0.1', sha256='b1622b408c76bd6ac7ccd30b66066d8b08dd0a67596988b215ee9870ba0a9811') + version('4.0.0', sha256='6fcd9683059da79e530bedf61ec27ce98567b6b39575272fd2fa637fe3df3edd') + version('3.8.0', sha256='493e9a383012a43d77d142775c332928aa3302a1f591ee06b88d5f9145281e00') + version('3.7.0', sha256='f2d018dd7bbed4ed177b49fcbfef9cabdd5f2c614257ce4c599ab7214130b097') + version('3.6.0', sha256='cc2c0630243aae43e6502ebe52f1cfe7fecbcf2930e9fe0f69b77c0bbb3f08ff') + version('3.5.1', sha256='5e6439b2cceb69c53f2fee8bec1b913c527166a03207e8739dab7d6b41d47747') + version('3.5.0', sha256='e7497bfa5902cd62fdd40aff1de654c782218cf07f776ba2a8b78815044d2df3') + version('3.4.1', sha256='03728045f1d19b2ed3eeb10e9c86b2db8891d3eedd5db7ce81a647c88b2cd98f') + version('3.4.0', sha256='9dd4d7434a2df4ac3807d07ffe46f00316a6f7f8e6393213b900d4ceb24403bb') + version('3.3.1', sha256='53ce6db1f6197330883243543401d85ebab25d204687ea699f4767f6bd9890aa') + version('3.3.0', sha256='0a4b465fdf0a7329bf998c1adb47dfaed0b1a85d41ff305fa3205f2d2a6f39ba') + version('3.2.0', sha256='88efa3b9b116c89db0c819306caef85b2a97dd4596531856187d6bf59eb4a8b1') + version('3.1.0', sha256='588adba1c84b2a828b054be5e12a4acac820744ab18762c830e9c606f36b50c3') + version('3.0.0', sha256='4a2a1f1d5108e27e4d7f2b46a1dce3c9211f65ac67d0a3281812beade45901d8') + version('2.8.1', sha256='97a1f0c4e06d3b5a92034ebdb334e711b2859e4648a7f728b98abd8e8c96edd7') version('2.8.0', sha256='bc2a075ced19e5f7ea547060e284887bdbb0761d34d1adb6f16d2e9e096a7d38') version('2.7.0', sha256='b188657e41b240bba663ce5b3d7b73377a27a64edcc1e0aaa7c924cf00e30b42') version('2.6.0', sha256='5425085f4b8772990b28a643b7dfc7ac37a399ee35ffa3d6113a06e5b508dfac') @@ -37,6 +52,28 @@ class Mpitrampoline(CMakePackage): def cmake_args(self): return [self.define_from_variant('BUILD_SHARED_LIBS', 'shared')] + @property + def headers(self): + return HeaderList(find(self.prefix.include, 'mpi.h')) + + @property + def libs(self): + query_parameters = self.spec.last_query.extra_parameters + # MPItrampoline does not support the (outdated) C++ API + assert 'cxx' not in query_parameters + libraries = ['libmpitrampoline'] + return find_libraries(libraries, root=self.prefix.lib, shared=True) + + def setup_build_environment(self, env): + fflags = ['-fcray-pointer'] + if self.spec.satisfies('%apple-clang@11:'): + fflags.append('-fallow-argument-mismatch') + if self.spec.satisfies('%clang@11:'): + fflags.append('-fallow-argument-mismatch') + if self.spec.satisfies('%gcc@10:'): + fflags.append('-fallow-argument-mismatch') + env.set('FFLAGS', ' '.join(fflags)) + def setup_run_environment(self, env): # Because MPI implementations provide compilers, they have to add to # their run environments the code to make the compilers available. @@ -50,6 +87,10 @@ class Mpitrampoline(CMakePackage): def setup_dependent_build_environment(self, env, dependent_spec): self.setup_run_environment(env) + # Use the Spack compiler wrappers under MPI + env.set('MPITRAMPOLINE_CC', spack_cc) + env.set('MPITRAMPOLINE_CXX', spack_cxx) + env.set('MPITRAMPOLINE_FC', spack_fc) def setup_dependent_package(self, module, dependent_spec): self.spec.mpicc = join_path(self.prefix.bin, 'mpicc') |