Skip to content

Commit

Permalink
need to patch mpich-3.2 to avoid MPID_Request SEGV https://lists.mpic…
Browse files Browse the repository at this point in the history
  • Loading branch information
edoapra committed Sep 12, 2017
1 parent d5eacc9 commit 2b1cd84
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions travis/install-mpi.sh
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,21 @@ case "$os" in
wget --no-check-certificate http://www.mpich.org/static/downloads/3.2/mpich-3.2.tar.gz
tar -xzf mpich-3.2.tar.gz
cd mpich-3.2
cat > mpiimpl.h.patch <<EOF
--- src/include/mpiimpl.h 2017-09-12 11:31:22.104653843 -0700
+++ src/include/mpiimpl.h.new 2017-09-12 11:30:29.696274605 -0700
@@ -1528,7 +1528,8 @@
#ifdef MPID_DEV_REQUEST_DECL
MPID_DEV_REQUEST_DECL
#endif
-} MPID_Request ATTRIBUTE((__aligned__(32)));
+} ATTRIBUTE((__aligned__(32))) MPID_Request;
+/*} MPID_Request ATTRIBUTE((__aligned__(32)));*/
extern MPIU_Object_alloc_t MPID_Request_mem;
/* Preallocated request objects */
EOF
patch -p0 < mpiimpl.h.patch
mkdir build && cd build
../configure CFLAGS="-w" --prefix=$TRAVIS_ROOT/mpich
make -j ${MAKE_JNUM}
Expand Down

0 comments on commit 2b1cd84

Please sign in to comment.