mpich: fix MPI_Barrier segfault (#5235)

* mpich: fix MPI_Barrier segfault

* one more link
This commit is contained in:
Denis Davydov 2017-08-31 01:58:23 +02:00 committed by Adam J. Stewart
parent b5a9f8ead1
commit bb29ec1843
2 changed files with 18 additions and 0 deletions

View File

@ -0,0 +1,13 @@
diff --git a/src/include/mpiimpl.h b/src/include/mpiimpl.h
index e705e5d..3bfcbee 100644
--- a/src/include/mpiimpl.h
+++ b/src/include/mpiimpl.h
@@ -1528,7 +1528,7 @@ typedef struct MPID_Request {
#ifdef MPID_DEV_REQUEST_DECL
MPID_DEV_REQUEST_DECL
#endif
-} MPID_Request ATTRIBUTE((__aligned__(32)));
+} ATTRIBUTE((__aligned__(32))) MPID_Request;
extern MPIU_Object_alloc_t MPID_Request_mem;
/* Preallocated request objects */

View File

@ -51,6 +51,11 @@ class Mpich(AutotoolsPackage):
provides('mpi@:3.0', when='@3:')
provides('mpi@:1.3', when='@1:')
# fix MPI_Barrier segmentation fault
# see https://lists.mpich.org/pipermail/discuss/2016-May/004764.html
# and https://lists.mpich.org/pipermail/discuss/2016-June/004768.html
patch('mpich32_clang.patch', when='@3.2%clang')
def setup_dependent_environment(self, spack_env, run_env, dependent_spec):
# On Cray, the regular compiler wrappers *are* the MPI wrappers.
if 'platform=cray' in self.spec: