Cleanup debugging output, remove an unnecessary re-compute of the checksum
This commit was SVN r20895.
Этот коммит содержится в:
родитель
d5e6104035
Коммит
cba3708893
@ -27,38 +27,28 @@
|
|||||||
#if defined (OMPI_CSUM_DST)
|
#if defined (OMPI_CSUM_DST)
|
||||||
#define MEMCPY_CSUM( DST, SRC, BLENGTH, CONVERTOR ) \
|
#define MEMCPY_CSUM( DST, SRC, BLENGTH, CONVERTOR ) \
|
||||||
do { \
|
do { \
|
||||||
volatile uint32_t __csum; \
|
|
||||||
volatile uint32_t __ui1, __ui2; \
|
|
||||||
__csum = (CONVERTOR)->checksum; \
|
|
||||||
__ui1 = (CONVERTOR)->csum_ui1; \
|
|
||||||
__ui2 = (CONVERTOR)->csum_ui2; \
|
|
||||||
(CONVERTOR)->checksum += OPAL_CSUM_BCOPY_PARTIAL( (SRC), (DST), (BLENGTH), (BLENGTH), &(CONVERTOR)->csum_ui1, &(CONVERTOR)->csum_ui2 ); \
|
(CONVERTOR)->checksum += OPAL_CSUM_BCOPY_PARTIAL( (SRC), (DST), (BLENGTH), (BLENGTH), &(CONVERTOR)->csum_ui1, &(CONVERTOR)->csum_ui2 ); \
|
||||||
(CONVERTOR)->csum_ui1 = __ui1; \
|
|
||||||
(CONVERTOR)->csum_ui2 = __ui2; \
|
|
||||||
__csum += OPAL_CSUM_PARTIAL( (DST), (BLENGTH), &(CONVERTOR)->csum_ui1, &(CONVERTOR)->csum_ui2); \
|
|
||||||
if (__csum != (CONVERTOR)->checksum) { \
|
|
||||||
opal_output(0, "%s:%d:csum2: Invalid \'MEMCPY_CSUM check\' - dst csum:0x%04x != src csum:0x%04x\n", __FILE__, __LINE__, __csum, (CONVERTOR)->checksum); \
|
|
||||||
} \
|
|
||||||
} while (0)
|
} while (0)
|
||||||
|
|
||||||
#else
|
#else /* if OMPI_CSUM_DST */
|
||||||
|
|
||||||
#define MEMCPY_CSUM( DST, SRC, BLENGTH, CONVERTOR ) \
|
#define MEMCPY_CSUM( DST, SRC, BLENGTH, CONVERTOR ) \
|
||||||
do { \
|
do { \
|
||||||
(CONVERTOR)->checksum += OPAL_CSUM_BCOPY_PARTIAL( (SRC), (DST), (BLENGTH), (BLENGTH), &(CONVERTOR)->csum_ui1, &(CONVERTOR)->csum_ui2 ); \
|
(CONVERTOR)->checksum += OPAL_CSUM_BCOPY_PARTIAL( (SRC), (DST), (BLENGTH), (BLENGTH), &(CONVERTOR)->csum_ui1, &(CONVERTOR)->csum_ui2 ); \
|
||||||
} while (0)
|
} while (0)
|
||||||
#endif
|
#endif /* if OMPI_CSUM_DST */
|
||||||
|
|
||||||
#define COMPUTE_CSUM( SRC, BLENGTH, CONVERTOR ) \
|
#define COMPUTE_CSUM( SRC, BLENGTH, CONVERTOR ) \
|
||||||
do { \
|
do { \
|
||||||
(CONVERTOR)->checksum += OPAL_CSUM_PARTIAL( (SRC), (BLENGTH), &(CONVERTOR)->csum_ui1, &(CONVERTOR)->csum_ui2 ); \
|
(CONVERTOR)->checksum += OPAL_CSUM_PARTIAL( (SRC), (BLENGTH), &(CONVERTOR)->csum_ui1, &(CONVERTOR)->csum_ui2 ); \
|
||||||
} while (0)
|
} while (0)
|
||||||
|
|
||||||
#else
|
#else /* if CHECKSUM */
|
||||||
|
|
||||||
#define MEMCPY_CSUM( DST, SRC, BLENGTH, CONVERTOR ) \
|
#define MEMCPY_CSUM( DST, SRC, BLENGTH, CONVERTOR ) \
|
||||||
MEMCPY( (DST), (SRC), (BLENGTH) )
|
MEMCPY( (DST), (SRC), (BLENGTH) )
|
||||||
|
|
||||||
#define COMPUTE_CSUM( SRC, BLENGTH, CONVERTOR )
|
#define COMPUTE_CSUM( SRC, BLENGTH, CONVERTOR )
|
||||||
|
|
||||||
#endif
|
#endif /* if CHECKSUM */
|
||||||
#endif /* DATATYPE_CHECKSUM_H_HAS_BEEN_INCLUDED */
|
#endif /* DATATYPE_CHECKSUM_H_HAS_BEEN_INCLUDED */
|
||||||
|
@ -376,10 +376,6 @@ int mca_pml_csum_add_procs(ompi_proc_t** procs, size_t nprocs)
|
|||||||
cleanup_and_return:
|
cleanup_and_return:
|
||||||
OBJ_DESTRUCT(&reachable);
|
OBJ_DESTRUCT(&reachable);
|
||||||
|
|
||||||
for (i=0; i < nprocs; i++) {
|
|
||||||
opal_output(0, "procs[%lu]->cflags = %04x", (unsigned long) i,
|
|
||||||
procs[i]->proc_convertor->flags);
|
|
||||||
}
|
|
||||||
return rc;
|
return rc;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -168,8 +168,6 @@ mca_pml_csum_component_init( int* priority,
|
|||||||
{
|
{
|
||||||
opal_output_verbose( 10, 0, "in csum, my priority is 0\n");
|
opal_output_verbose( 10, 0, "in csum, my priority is 0\n");
|
||||||
|
|
||||||
opal_output(0, "hdr size %d", (int)sizeof(mca_pml_csum_match_hdr_t));
|
|
||||||
|
|
||||||
/* select us only if we are specified */
|
/* select us only if we are specified */
|
||||||
if((*priority) > 0) {
|
if((*priority) > 0) {
|
||||||
*priority = 0;
|
*priority = 0;
|
||||||
|
@ -132,10 +132,11 @@ void mca_pml_csum_recv_frag_callback_match(mca_btl_base_module_t* btl,
|
|||||||
csum = opal_csum16(hdr, sizeof(mca_pml_csum_match_hdr_t));
|
csum = opal_csum16(hdr, sizeof(mca_pml_csum_match_hdr_t));
|
||||||
hdr->hdr_common.hdr_csum = csum_received;
|
hdr->hdr_common.hdr_csum = csum_received;
|
||||||
|
|
||||||
opal_output(0, "%s:%s:%d common_hdr: %02x:%02x:%04x match_hdr: %04x:%04x:%08x:%08x:%08x",
|
OPAL_OUTPUT_VERBOSE((5, mca_pml_base_output,
|
||||||
ORTE_NAME_PRINT(ORTE_PROC_MY_NAME), __FILE__, __LINE__,
|
"%s:%s:%d common_hdr: %02x:%02x:%04x match_hdr: %04x:%04x:%08x:%08x:%08x",
|
||||||
hdr->hdr_common.hdr_type, hdr->hdr_common.hdr_flags, hdr->hdr_common.hdr_csum,
|
ORTE_NAME_PRINT(ORTE_PROC_MY_NAME), __FILE__, __LINE__,
|
||||||
hdr->hdr_ctx, hdr->hdr_seq, hdr->hdr_src, hdr->hdr_tag, hdr->hdr_csum);
|
hdr->hdr_common.hdr_type, hdr->hdr_common.hdr_flags, hdr->hdr_common.hdr_csum,
|
||||||
|
hdr->hdr_ctx, hdr->hdr_seq, hdr->hdr_src, hdr->hdr_tag, hdr->hdr_csum));
|
||||||
|
|
||||||
if (csum_received != csum) {
|
if (csum_received != csum) {
|
||||||
opal_output(0, "%s:%s:%d: Invalid \'match header\' - received csum:0x%04x != computed csum:0x%04x\n",
|
opal_output(0, "%s:%s:%d: Invalid \'match header\' - received csum:0x%04x != computed csum:0x%04x\n",
|
||||||
|
@ -578,10 +578,11 @@ int mca_pml_csum_send_request_start_copy( mca_pml_csum_send_request_t* sendreq,
|
|||||||
sendreq->req_send.req_base.req_convertor.checksum : OPAL_CSUM_ZERO);
|
sendreq->req_send.req_base.req_convertor.checksum : OPAL_CSUM_ZERO);
|
||||||
hdr->hdr_common.hdr_csum = opal_csum16(hdr, sizeof(mca_pml_csum_match_hdr_t));
|
hdr->hdr_common.hdr_csum = opal_csum16(hdr, sizeof(mca_pml_csum_match_hdr_t));
|
||||||
|
|
||||||
opal_output(0, "%s:%s:%d common_hdr: %02x:%02x:%04x match_hdr: %04x:%04x:%08x:%08x:%08x",
|
OPAL_OUTPUT_VERBOSE((5, mca_pml_base_output,
|
||||||
ORTE_NAME_PRINT(ORTE_PROC_MY_NAME), __FILE__, __LINE__,
|
"%s:%s:%d common_hdr: %02x:%02x:%04x match_hdr: %04x:%04x:%08x:%08x:%08x",
|
||||||
hdr->hdr_common.hdr_type, hdr->hdr_common.hdr_flags, hdr->hdr_common.hdr_csum,
|
ORTE_NAME_PRINT(ORTE_PROC_MY_NAME), __FILE__, __LINE__,
|
||||||
hdr->hdr_match.hdr_ctx, hdr->hdr_match.hdr_seq, hdr->hdr_match.hdr_src, hdr->hdr_match.hdr_tag, hdr->hdr_match.hdr_csum);
|
hdr->hdr_common.hdr_type, hdr->hdr_common.hdr_flags, hdr->hdr_common.hdr_csum,
|
||||||
|
hdr->hdr_match.hdr_ctx, hdr->hdr_match.hdr_seq, hdr->hdr_match.hdr_src, hdr->hdr_match.hdr_tag, hdr->hdr_match.hdr_csum));
|
||||||
|
|
||||||
OPAL_OUTPUT_VERBOSE((1, mca_pml_base_output,
|
OPAL_OUTPUT_VERBOSE((1, mca_pml_base_output,
|
||||||
"%s:%s:%d Sending \'match\' with data csum:0x%x, header csum:0x%x, size:%lu \n",
|
"%s:%s:%d Sending \'match\' with data csum:0x%x, header csum:0x%x, size:%lu \n",
|
||||||
|
Загрузка…
Ссылка в новой задаче
Block a user