svn commit: r426949 - in head/net/mpich: . files
Tijl Coosemans
tijl at FreeBSD.org
Wed Nov 23 18:16:57 UTC 2016
Author: tijl
Date: Wed Nov 23 18:16:55 2016
New Revision: 426949
URL: https://svnweb.freebsd.org/changeset/ports/426949
Log:
Add patch to apply alignment attribute to a struct instead of a typedef.
This rounds the size of the struct to a multiple of the alignment such that
malloc and friends allocate memory with the correct alignment.
PR: 214784
MFH: 2016Q4
Added:
head/net/mpich/files/patch-src-include-mpiimpl.h (contents, props changed)
Modified:
head/net/mpich/Makefile
Modified: head/net/mpich/Makefile
==============================================================================
--- head/net/mpich/Makefile Wed Nov 23 18:15:24 2016 (r426948)
+++ head/net/mpich/Makefile Wed Nov 23 18:16:55 2016 (r426949)
@@ -2,7 +2,7 @@
PORTNAME= mpich
PORTVERSION= 3.2
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= net parallel
MASTER_SITES= http://www.mpich.org/static/downloads/${DISTVERSION}/
Added: head/net/mpich/files/patch-src-include-mpiimpl.h
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/net/mpich/files/patch-src-include-mpiimpl.h Wed Nov 23 18:16:55 2016 (r426949)
@@ -0,0 +1,11 @@
+--- src/include/mpiimpl.h.orig 2015-11-10 02:39:01 UTC
++++ 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 */
More information about the svn-ports-all
mailing list