sirius: add mpi datatypes patch for recent cray mpich (#27065)
This commit is contained in:
parent
b8bc030a3c
commit
494ba67704
2 changed files with 23 additions and 0 deletions
22
var/spack/repos/builtin/packages/sirius/mpi_datatypes.patch
Normal file
22
var/spack/repos/builtin/packages/sirius/mpi_datatypes.patch
Normal 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;
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
|
@ -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):
|
||||||
|
|
Loading…
Reference in a new issue