Skip to content

Commit 2b868c4

Browse files
committed
Fix MPI datatype args.
Compensate for the datatype ID that we add to the array.
1 parent dd9a819 commit 2b868c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ompi/datatype/ompi_datatype_args.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ typedef struct __dt_args {
100100
if( pArgs->ci == 0 ) pArgs->i = NULL; \
101101
else pArgs->i = (int*)buf; \
102102
pArgs->ref_count = 1; \
103-
pArgs->total_pack_size = (4 + (IC)) * sizeof(int) + \
103+
pArgs->total_pack_size = (4 + (IC) + (DC)) * sizeof(int) + \
104104
(AC) * sizeof(OPAL_PTRDIFF_TYPE); \
105105
(PDATA)->args = (void*)pArgs; \
106106
(PDATA)->packed_description = NULL; \

0 commit comments

Comments
 (0)