diff options
author | Simon Pintarelli <1237199+simonpintarelli@users.noreply.github.com> | 2021-10-29 20:31:56 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-29 12:31:56 -0600 |
commit | 494ba677049382e133340aefe4fe6ffb13d79d64 (patch) | |
tree | d5a900d61f502febd7a627261cecdf0100f09684 /var | |
parent | b8bc030a3cacc8761d3030965e57339f5bd15e2e (diff) | |
download | spack-494ba677049382e133340aefe4fe6ffb13d79d64.tar.gz spack-494ba677049382e133340aefe4fe6ffb13d79d64.tar.bz2 spack-494ba677049382e133340aefe4fe6ffb13d79d64.tar.xz spack-494ba677049382e133340aefe4fe6ffb13d79d64.zip |
sirius: add mpi datatypes patch for recent cray mpich (#27065)
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/sirius/mpi_datatypes.patch | 22 | ||||
-rw-r--r-- | var/spack/repos/builtin/packages/sirius/package.py | 1 |
2 files changed, 23 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/sirius/mpi_datatypes.patch b/var/spack/repos/builtin/packages/sirius/mpi_datatypes.patch new file mode 100644 index 0000000000..47ddeeec24 --- /dev/null +++ b/var/spack/repos/builtin/packages/sirius/mpi_datatypes.patch @@ -0,0 +1,22 @@ +diff --git a/src/mpi/communicator.hpp b/src/mpi/communicator.hpp +index 709e56cfc..a05375bda 100644 +--- a/src/mpi/communicator.hpp ++++ b/src/mpi/communicator.hpp +@@ -111,7 +111,7 @@ struct mpi_type_wrapper<std::complex<double>> + { + static MPI_Datatype kind() + { +- return MPI_CXX_DOUBLE_COMPLEX; ++ return MPI_C_DOUBLE_COMPLEX; + } + }; + +@@ -174,7 +174,7 @@ struct mpi_type_wrapper<bool> + { + static MPI_Datatype kind() + { +- return MPI_CXX_BOOL; ++ return MPI_C_BOOL; + } + }; + diff --git a/var/spack/repos/builtin/packages/sirius/package.py b/var/spack/repos/builtin/packages/sirius/package.py index e53fec9aae..7574b01048 100644 --- a/var/spack/repos/builtin/packages/sirius/package.py +++ b/var/spack/repos/builtin/packages/sirius/package.py @@ -147,6 +147,7 @@ class Sirius(CMakePackage, CudaPackage): patch("strip-spglib-include-subfolder.patch", when='@6.1.5') patch("link-libraries-fortran.patch", when='@6.1.5') patch("cmake-fix-shared-library-installation.patch", when='@6.1.5') + patch("mpi_datatypes.patch", when="@:7.2.6") @property def libs(self): |