Disable checksum.
Signed-off-by: George Bosilca <bosilca@icl.utk.edu>
Этот коммит содержится в:
родитель
46ddf5460d
Коммит
75a53976a3
@ -579,8 +579,9 @@ int32_t opal_convertor_prepare_for_recv( opal_convertor_t* convertor,
|
|||||||
assert(! (convertor->flags & CONVERTOR_SEND));
|
assert(! (convertor->flags & CONVERTOR_SEND));
|
||||||
OPAL_CONVERTOR_PREPARE( convertor, datatype, count, pUserBuf );
|
OPAL_CONVERTOR_PREPARE( convertor, datatype, count, pUserBuf );
|
||||||
|
|
||||||
if( convertor->flags & CONVERTOR_WITH_CHECKSUM ) {
|
#if defined(CHECKSUM)
|
||||||
if( !(convertor->flags & CONVERTOR_HOMOGENEOUS) ) {
|
if( OPAL_UNLIKELY(convertor->flags & CONVERTOR_WITH_CHECKSUM) ) {
|
||||||
|
if( OPAL_UNLIKELY(!(convertor->flags & CONVERTOR_HOMOGENEOUS)) ) {
|
||||||
convertor->fAdvance = opal_unpack_general_checksum;
|
convertor->fAdvance = opal_unpack_general_checksum;
|
||||||
} else {
|
} else {
|
||||||
if( convertor->pDesc->flags & OPAL_DATATYPE_FLAG_CONTIGUOUS ) {
|
if( convertor->pDesc->flags & OPAL_DATATYPE_FLAG_CONTIGUOUS ) {
|
||||||
@ -589,8 +590,9 @@ int32_t opal_convertor_prepare_for_recv( opal_convertor_t* convertor,
|
|||||||
convertor->fAdvance = opal_generic_simple_unpack_checksum;
|
convertor->fAdvance = opal_generic_simple_unpack_checksum;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else
|
||||||
if( !(convertor->flags & CONVERTOR_HOMOGENEOUS) ) {
|
#endif /* defined(CHECKSUM) */
|
||||||
|
if( OPAL_UNLIKELY(!(convertor->flags & CONVERTOR_HOMOGENEOUS)) ) {
|
||||||
convertor->fAdvance = opal_unpack_general;
|
convertor->fAdvance = opal_unpack_general;
|
||||||
} else {
|
} else {
|
||||||
if( convertor->pDesc->flags & OPAL_DATATYPE_FLAG_CONTIGUOUS ) {
|
if( convertor->pDesc->flags & OPAL_DATATYPE_FLAG_CONTIGUOUS ) {
|
||||||
@ -599,7 +601,6 @@ int32_t opal_convertor_prepare_for_recv( opal_convertor_t* convertor,
|
|||||||
convertor->fAdvance = opal_generic_simple_unpack;
|
convertor->fAdvance = opal_generic_simple_unpack;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
return OPAL_SUCCESS;
|
return OPAL_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -618,6 +619,7 @@ int32_t opal_convertor_prepare_for_send( opal_convertor_t* convertor,
|
|||||||
|
|
||||||
OPAL_CONVERTOR_PREPARE( convertor, datatype, count, pUserBuf );
|
OPAL_CONVERTOR_PREPARE( convertor, datatype, count, pUserBuf );
|
||||||
|
|
||||||
|
#if defined(CHECKSUM)
|
||||||
if( convertor->flags & CONVERTOR_WITH_CHECKSUM ) {
|
if( convertor->flags & CONVERTOR_WITH_CHECKSUM ) {
|
||||||
if( CONVERTOR_SEND_CONVERSION == (convertor->flags & (CONVERTOR_SEND_CONVERSION|CONVERTOR_HOMOGENEOUS)) ) {
|
if( CONVERTOR_SEND_CONVERSION == (convertor->flags & (CONVERTOR_SEND_CONVERSION|CONVERTOR_HOMOGENEOUS)) ) {
|
||||||
convertor->fAdvance = opal_pack_general_checksum;
|
convertor->fAdvance = opal_pack_general_checksum;
|
||||||
@ -632,7 +634,8 @@ int32_t opal_convertor_prepare_for_send( opal_convertor_t* convertor,
|
|||||||
convertor->fAdvance = opal_generic_simple_pack_checksum;
|
convertor->fAdvance = opal_generic_simple_pack_checksum;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else
|
||||||
|
#endif /* defined(CHECKSUM) */
|
||||||
if( CONVERTOR_SEND_CONVERSION == (convertor->flags & (CONVERTOR_SEND_CONVERSION|CONVERTOR_HOMOGENEOUS)) ) {
|
if( CONVERTOR_SEND_CONVERSION == (convertor->flags & (CONVERTOR_SEND_CONVERSION|CONVERTOR_HOMOGENEOUS)) ) {
|
||||||
convertor->fAdvance = opal_pack_general;
|
convertor->fAdvance = opal_pack_general;
|
||||||
} else {
|
} else {
|
||||||
@ -646,7 +649,6 @@ int32_t opal_convertor_prepare_for_send( opal_convertor_t* convertor,
|
|||||||
convertor->fAdvance = opal_generic_simple_pack;
|
convertor->fAdvance = opal_generic_simple_pack;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
return OPAL_SUCCESS;
|
return OPAL_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -332,8 +332,10 @@ opal_convertor_set_position( opal_convertor_t* convertor,
|
|||||||
/* Remove the completed flag if it's already set */
|
/* Remove the completed flag if it's already set */
|
||||||
convertor->flags &= ~CONVERTOR_COMPLETED;
|
convertor->flags &= ~CONVERTOR_COMPLETED;
|
||||||
|
|
||||||
if( !(convertor->flags & CONVERTOR_WITH_CHECKSUM) &&
|
if( (convertor->flags & OPAL_DATATYPE_FLAG_NO_GAPS) &&
|
||||||
(convertor->flags & OPAL_DATATYPE_FLAG_NO_GAPS) &&
|
#if defined(CHECKSUM)
|
||||||
|
!(convertor->flags & CONVERTOR_WITH_CHECKSUM) &&
|
||||||
|
#endif /* defined(CHECKSUM) */
|
||||||
(convertor->flags & (CONVERTOR_SEND | CONVERTOR_HOMOGENEOUS)) ) {
|
(convertor->flags & (CONVERTOR_SEND | CONVERTOR_HOMOGENEOUS)) ) {
|
||||||
/* Contiguous and no checkpoint and no homogeneous unpack */
|
/* Contiguous and no checkpoint and no homogeneous unpack */
|
||||||
convertor->bConverted = *position;
|
convertor->bConverted = *position;
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user