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
11 lines
374 B
C
11 lines
374 B
C
--- 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 */
|