sirius: add mpi datatypes patch for recent cray mpich (#27065)

This commit is contained in:
Simon Pintarelli 2021-10-29 20:31:56 +02:00 committed by GitHub
parent b8bc030a3c
commit 494ba67704
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 23 additions and 0 deletions

View file

@ -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;
}
};

View file

@ -147,6 +147,7 @@ class Sirius(CMakePackage, CudaPackage):
patch("strip-spglib-include-subfolder.patch", when='@6.1.5') patch("strip-spglib-include-subfolder.patch", when='@6.1.5')
patch("link-libraries-fortran.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("cmake-fix-shared-library-installation.patch", when='@6.1.5')
patch("mpi_datatypes.patch", when="@:7.2.6")
@property @property
def libs(self): def libs(self):