Skip to content

Commit d519e19

Browse files
committed
Disable checksum.
Signed-off-by: George Bosilca <[email protected]>
1 parent 5e2dba2 commit d519e19

File tree

2 files changed

+10
-7
lines changed

2 files changed

+10
-7
lines changed

opal/datatype/opal_convertor.c

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -579,8 +579,9 @@ int32_t opal_convertor_prepare_for_recv( opal_convertor_t* convertor,
579579
assert(! (convertor->flags & CONVERTOR_SEND));
580580
OPAL_CONVERTOR_PREPARE( convertor, datatype, count, pUserBuf );
581581

582-
if( convertor->flags & CONVERTOR_WITH_CHECKSUM ) {
583-
if( !(convertor->flags & CONVERTOR_HOMOGENEOUS) ) {
582+
#if defined(CHECKSUM)
583+
if( OPAL_UNLIKELY(convertor->flags & CONVERTOR_WITH_CHECKSUM) ) {
584+
if( OPAL_UNLIKELY(!(convertor->flags & CONVERTOR_HOMOGENEOUS)) ) {
584585
convertor->fAdvance = opal_unpack_general_checksum;
585586
} else {
586587
if( convertor->pDesc->flags & OPAL_DATATYPE_FLAG_CONTIGUOUS ) {
@@ -589,8 +590,9 @@ int32_t opal_convertor_prepare_for_recv( opal_convertor_t* convertor,
589590
convertor->fAdvance = opal_generic_simple_unpack_checksum;
590591
}
591592
}
592-
} else {
593-
if( !(convertor->flags & CONVERTOR_HOMOGENEOUS) ) {
593+
} else
594+
#endif /* defined(CHECKSUM) */
595+
if( OPAL_UNLIKELY(!(convertor->flags & CONVERTOR_HOMOGENEOUS)) ) {
594596
convertor->fAdvance = opal_unpack_general;
595597
} else {
596598
if( convertor->pDesc->flags & OPAL_DATATYPE_FLAG_CONTIGUOUS ) {
@@ -599,7 +601,6 @@ int32_t opal_convertor_prepare_for_recv( opal_convertor_t* convertor,
599601
convertor->fAdvance = opal_generic_simple_unpack;
600602
}
601603
}
602-
}
603604
return OPAL_SUCCESS;
604605
}
605606

opal/datatype/opal_convertor.h

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -332,8 +332,10 @@ opal_convertor_set_position( opal_convertor_t* convertor,
332332
/* Remove the completed flag if it's already set */
333333
convertor->flags &= ~CONVERTOR_COMPLETED;
334334

335-
if( !(convertor->flags & CONVERTOR_WITH_CHECKSUM) &&
336-
(convertor->flags & OPAL_DATATYPE_FLAG_NO_GAPS) &&
335+
if( (convertor->flags & OPAL_DATATYPE_FLAG_NO_GAPS) &&
336+
#if defined(CHECKSUM)
337+
!(convertor->flags & CONVERTOR_WITH_CHECKSUM) &&
338+
#endif /* defined(CHECKSUM) */
337339
(convertor->flags & (CONVERTOR_SEND | CONVERTOR_HOMOGENEOUS)) ) {
338340
/* Contiguous and no checkpoint and no homogeneous unpack */
339341
convertor->bConverted = *position;

0 commit comments

Comments
 (0)