Skip to content

Commit

Permalink
Merge pull request #373 from sourceryinstitute/fix-mpich-patch
Browse files Browse the repository at this point in the history
Fix application of patch for MPICH 3.2
Fixes #355 for real
  • Loading branch information
zbeekman authored May 2, 2017
2 parents 8a1ac56 + 8ff03c8 commit 349c96c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion prerequisites/build-functions/build_and_install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ build_and_install()
if [[ "${package_to_build}" == "mpich" && "${version_to_build}" == "3.2" ]]; then
info "Patching MPICH 3.2 on Mac OS due to segfault bug (see http://lists.mpich.org/pipermail/discuss/2016-May/004764.html)."
sed 's/} MPID_Request ATTRIBUTE((__aligned__(32)));/} ATTRIBUTE((__aligned__(32))) MPID_Request;/g' \
"${download_path}/${package_source_directory}/src/include/mpiimpl.h"
"${download_path}/${package_source_directory}/src/include/mpiimpl.h" > "${download_path}/${package_source_directory}/src/include/mpiimpl.h.patched"
cp "${download_path}/${package_source_directory}/src/include/mpiimpl.h.patched" "${download_path}/${package_source_directory}/src/include/mpiimpl.h"
fi

info "Configuring ${package_to_build} ${version_to_build} with the following command:"
Expand Down

0 comments on commit 349c96c

Please sign in to comment.