Коммит
190d5f1339
@ -50,11 +50,6 @@ opal_convertor_master_t* opal_convertor_find_or_create_master( uint32_t remote_a
|
|||||||
void opal_convertor_destroy_masters( void );
|
void opal_convertor_destroy_masters( void );
|
||||||
|
|
||||||
|
|
||||||
#if OPAL_ENABLE_DEBUG
|
|
||||||
extern bool opal_pack_debug;
|
|
||||||
extern bool opal_unpack_debug;
|
|
||||||
#endif /* OPAL_ENABLE_DEBUG */
|
|
||||||
|
|
||||||
END_C_DECLS
|
END_C_DECLS
|
||||||
|
|
||||||
#endif /* OPAL_CONVERTOR_INTERNAL_HAS_BEEN_INCLUDED */
|
#endif /* OPAL_CONVERTOR_INTERNAL_HAS_BEEN_INCLUDED */
|
||||||
|
@ -25,7 +25,7 @@
|
|||||||
#if OPAL_ENABLE_DEBUG
|
#if OPAL_ENABLE_DEBUG
|
||||||
#include "opal/util/output.h"
|
#include "opal/util/output.h"
|
||||||
|
|
||||||
#define DO_DEBUG(INST) if( opal_pack_debug ) { INST }
|
#define DO_DEBUG(INST) if( opal_ddt_raw_debug ) { INST }
|
||||||
#else
|
#else
|
||||||
#define DO_DEBUG(INST)
|
#define DO_DEBUG(INST)
|
||||||
#endif /* OPAL_ENABLE_DEBUG */
|
#endif /* OPAL_ENABLE_DEBUG */
|
||||||
@ -126,8 +126,8 @@ opal_convertor_raw( opal_convertor_t* pConvertor,
|
|||||||
const ddt_elem_desc_t* current = &(pElem->elem);
|
const ddt_elem_desc_t* current = &(pElem->elem);
|
||||||
|
|
||||||
if( count_desc != (current->count * current->blocklen) ) { /* Not the full element description */
|
if( count_desc != (current->count * current->blocklen) ) { /* Not the full element description */
|
||||||
do_now = current->blocklen - (count_desc % current->blocklen); /* how much left in the block */
|
if( (do_now = count_desc % current->blocklen) ) {
|
||||||
if( do_now ) {
|
do_now = current->blocklen - do_now; /* how much left in the block */
|
||||||
source_base += current->disp;
|
source_base += current->disp;
|
||||||
blength = do_now * opal_datatype_basicDatatypes[current->common.type]->size;
|
blength = do_now * opal_datatype_basicDatatypes[current->common.type]->size;
|
||||||
OPAL_DATATYPE_SAFEGUARD_POINTER( source_base, blength, pConvertor->pBaseBuf,
|
OPAL_DATATYPE_SAFEGUARD_POINTER( source_base, blength, pConvertor->pBaseBuf,
|
||||||
@ -136,12 +136,12 @@ opal_convertor_raw( opal_convertor_t* pConvertor,
|
|||||||
index, (void*)source_base, blength ); );
|
index, (void*)source_base, blength ); );
|
||||||
opal_convertor_merge_iov( iov, iov_count,
|
opal_convertor_merge_iov( iov, iov_count,
|
||||||
(IOVBASE_TYPE *) source_base, blength, &index );
|
(IOVBASE_TYPE *) source_base, blength, &index );
|
||||||
/* not check the return value, we know there was at least one element in the iovec */
|
/* ignore the return value, we know there was at least one element in the iovec */
|
||||||
sum_iov_len += blength;
|
sum_iov_len += blength;
|
||||||
count_desc -= do_now;
|
count_desc -= do_now;
|
||||||
|
|
||||||
source_base += (current->extent - current->disp +
|
source_base += (blength - current->blocklen * opal_datatype_basicDatatypes[current->common.type]->size +
|
||||||
(current->blocklen - do_now) * opal_datatype_basicDatatypes[current->common.type]->size);
|
current->extent - current->disp);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -258,7 +258,7 @@ opal_convertor_raw( opal_convertor_t* pConvertor,
|
|||||||
}
|
}
|
||||||
/* I complete an element, next step I should go to the next one */
|
/* I complete an element, next step I should go to the next one */
|
||||||
PUSH_STACK( pStack, pConvertor->stack_pos, pos_desc, OPAL_DATATYPE_UINT1, count_desc,
|
PUSH_STACK( pStack, pConvertor->stack_pos, pos_desc, OPAL_DATATYPE_UINT1, count_desc,
|
||||||
source_base - pStack->disp - pConvertor->pBaseBuf );
|
source_base - pConvertor->pBaseBuf );
|
||||||
DO_DEBUG( opal_output( 0, "raw save stack stack_pos %d pos_desc %d count_desc %" PRIsize_t " disp %ld\n",
|
DO_DEBUG( opal_output( 0, "raw save stack stack_pos %d pos_desc %d count_desc %" PRIsize_t " disp %ld\n",
|
||||||
pConvertor->stack_pos, pStack->index, pStack->count, (long)pStack->disp ); );
|
pConvertor->stack_pos, pStack->index, pStack->count, (long)pStack->disp ); );
|
||||||
return 0;
|
return 0;
|
||||||
|
@ -36,7 +36,7 @@
|
|||||||
|
|
||||||
|
|
||||||
#if OPAL_ENABLE_DEBUG
|
#if OPAL_ENABLE_DEBUG
|
||||||
#define DO_DEBUG(INST) if( opal_copy_debug ) { INST }
|
#define DO_DEBUG(INST) if( opal_ddt_copy_debug ) { INST }
|
||||||
#else
|
#else
|
||||||
#define DO_DEBUG(INST)
|
#define DO_DEBUG(INST)
|
||||||
#endif /* OPAL_ENABLE_DEBUG */
|
#endif /* OPAL_ENABLE_DEBUG */
|
||||||
|
@ -514,10 +514,11 @@ OPAL_DECLSPEC int opal_datatype_contain_basic_datatypes( const struct opal_datat
|
|||||||
OPAL_DECLSPEC int opal_datatype_dump_data_flags( unsigned short usflags, char* ptr, size_t length );
|
OPAL_DECLSPEC int opal_datatype_dump_data_flags( unsigned short usflags, char* ptr, size_t length );
|
||||||
OPAL_DECLSPEC int opal_datatype_dump_data_desc( union dt_elem_desc* pDesc, int nbElems, char* ptr, size_t length );
|
OPAL_DECLSPEC int opal_datatype_dump_data_desc( union dt_elem_desc* pDesc, int nbElems, char* ptr, size_t length );
|
||||||
|
|
||||||
extern bool opal_position_debug;
|
extern bool opal_ddt_position_debug;
|
||||||
extern bool opal_copy_debug;
|
extern bool opal_ddt_copy_debug;
|
||||||
extern bool opal_unpack_debug;
|
extern bool opal_ddt_unpack_debug;
|
||||||
extern bool opal_pack_debug;
|
extern bool opal_ddt_pack_debug;
|
||||||
|
extern bool opal_ddt_raw_debug;
|
||||||
|
|
||||||
END_C_DECLS
|
END_C_DECLS
|
||||||
#endif /* OPAL_DATATYPE_INTERNAL_H_HAS_BEEN_INCLUDED */
|
#endif /* OPAL_DATATYPE_INTERNAL_H_HAS_BEEN_INCLUDED */
|
||||||
|
@ -41,10 +41,11 @@
|
|||||||
|
|
||||||
/* by default the debuging is turned off */
|
/* by default the debuging is turned off */
|
||||||
int opal_datatype_dfd = -1;
|
int opal_datatype_dfd = -1;
|
||||||
bool opal_unpack_debug = false;
|
bool opal_ddt_unpack_debug = false;
|
||||||
bool opal_pack_debug = false;
|
bool opal_ddt_pack_debug = false;
|
||||||
bool opal_position_debug = false;
|
bool opal_ddt_position_debug = false;
|
||||||
bool opal_copy_debug = false;
|
bool opal_ddt_copy_debug = false;
|
||||||
|
bool opal_ddt_raw_debug = false;
|
||||||
int opal_ddt_verbose = -1; /* Has the datatype verbose it's own output stream */
|
int opal_ddt_verbose = -1; /* Has the datatype verbose it's own output stream */
|
||||||
|
|
||||||
extern int opal_cuda_verbose;
|
extern int opal_cuda_verbose;
|
||||||
@ -163,7 +164,7 @@ int opal_datatype_register_params(void)
|
|||||||
ret = mca_base_var_register ("opal", "mpi", NULL, "ddt_unpack_debug",
|
ret = mca_base_var_register ("opal", "mpi", NULL, "ddt_unpack_debug",
|
||||||
"Whether to output debugging information in the ddt unpack functions (nonzero = enabled)",
|
"Whether to output debugging information in the ddt unpack functions (nonzero = enabled)",
|
||||||
MCA_BASE_VAR_TYPE_BOOL, NULL, 0, MCA_BASE_VAR_FLAG_SETTABLE, OPAL_INFO_LVL_3,
|
MCA_BASE_VAR_TYPE_BOOL, NULL, 0, MCA_BASE_VAR_FLAG_SETTABLE, OPAL_INFO_LVL_3,
|
||||||
MCA_BASE_VAR_SCOPE_LOCAL, &opal_unpack_debug);
|
MCA_BASE_VAR_SCOPE_LOCAL, &opal_ddt_unpack_debug);
|
||||||
if (0 > ret) {
|
if (0 > ret) {
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
@ -171,7 +172,15 @@ int opal_datatype_register_params(void)
|
|||||||
ret = mca_base_var_register ("opal", "mpi", NULL, "ddt_pack_debug",
|
ret = mca_base_var_register ("opal", "mpi", NULL, "ddt_pack_debug",
|
||||||
"Whether to output debugging information in the ddt pack functions (nonzero = enabled)",
|
"Whether to output debugging information in the ddt pack functions (nonzero = enabled)",
|
||||||
MCA_BASE_VAR_TYPE_BOOL, NULL, 0, MCA_BASE_VAR_FLAG_SETTABLE, OPAL_INFO_LVL_3,
|
MCA_BASE_VAR_TYPE_BOOL, NULL, 0, MCA_BASE_VAR_FLAG_SETTABLE, OPAL_INFO_LVL_3,
|
||||||
MCA_BASE_VAR_SCOPE_LOCAL, &opal_pack_debug);
|
MCA_BASE_VAR_SCOPE_LOCAL, &opal_ddt_pack_debug);
|
||||||
|
if (0 > ret) {
|
||||||
|
return ret;
|
||||||
|
}
|
||||||
|
|
||||||
|
ret = mca_base_var_register ("opal", "mpi", NULL, "ddt_raw_debug",
|
||||||
|
"Whether to output debugging information in the ddt raw functions (nonzero = enabled)",
|
||||||
|
MCA_BASE_VAR_TYPE_BOOL, NULL, 0, MCA_BASE_VAR_FLAG_SETTABLE, OPAL_INFO_LVL_3,
|
||||||
|
MCA_BASE_VAR_SCOPE_LOCAL, &opal_ddt_raw_debug);
|
||||||
if (0 > ret) {
|
if (0 > ret) {
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
@ -179,7 +188,7 @@ int opal_datatype_register_params(void)
|
|||||||
ret = mca_base_var_register ("opal", "mpi", NULL, "ddt_position_debug",
|
ret = mca_base_var_register ("opal", "mpi", NULL, "ddt_position_debug",
|
||||||
"Non zero lead to output generated by the datatype position functions",
|
"Non zero lead to output generated by the datatype position functions",
|
||||||
MCA_BASE_VAR_TYPE_BOOL, NULL, 0, MCA_BASE_VAR_FLAG_SETTABLE, OPAL_INFO_LVL_3,
|
MCA_BASE_VAR_TYPE_BOOL, NULL, 0, MCA_BASE_VAR_FLAG_SETTABLE, OPAL_INFO_LVL_3,
|
||||||
MCA_BASE_VAR_SCOPE_LOCAL, &opal_position_debug);
|
MCA_BASE_VAR_SCOPE_LOCAL, &opal_ddt_position_debug);
|
||||||
if (0 > ret) {
|
if (0 > ret) {
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
@ -187,7 +196,7 @@ int opal_datatype_register_params(void)
|
|||||||
ret = mca_base_var_register ("opal", "mpi", NULL, "ddt_copy_debug",
|
ret = mca_base_var_register ("opal", "mpi", NULL, "ddt_copy_debug",
|
||||||
"Whether to output debugging information in the ddt copy functions (nonzero = enabled)",
|
"Whether to output debugging information in the ddt copy functions (nonzero = enabled)",
|
||||||
MCA_BASE_VAR_TYPE_BOOL, NULL, 0, MCA_BASE_VAR_FLAG_SETTABLE, OPAL_INFO_LVL_3,
|
MCA_BASE_VAR_TYPE_BOOL, NULL, 0, MCA_BASE_VAR_FLAG_SETTABLE, OPAL_INFO_LVL_3,
|
||||||
MCA_BASE_VAR_SCOPE_LOCAL, &opal_copy_debug);
|
MCA_BASE_VAR_SCOPE_LOCAL, &opal_ddt_copy_debug);
|
||||||
if (0 > ret) {
|
if (0 > ret) {
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
@ -31,7 +31,7 @@
|
|||||||
#if OPAL_ENABLE_DEBUG
|
#if OPAL_ENABLE_DEBUG
|
||||||
#include "opal/util/output.h"
|
#include "opal/util/output.h"
|
||||||
|
|
||||||
#define DO_DEBUG(INST) if( opal_pack_debug ) { INST }
|
#define DO_DEBUG(INST) if( opal_ddt_pack_debug ) { INST }
|
||||||
#else
|
#else
|
||||||
#define DO_DEBUG(INST)
|
#define DO_DEBUG(INST)
|
||||||
#endif /* OPAL_ENABLE_DEBUG */
|
#endif /* OPAL_ENABLE_DEBUG */
|
||||||
|
@ -33,7 +33,7 @@
|
|||||||
#if OPAL_ENABLE_DEBUG
|
#if OPAL_ENABLE_DEBUG
|
||||||
#include "opal/util/output.h"
|
#include "opal/util/output.h"
|
||||||
|
|
||||||
#define DO_DEBUG(INST) if( opal_position_debug ) { INST }
|
#define DO_DEBUG(INST) if( opal_ddt_position_debug ) { INST }
|
||||||
#else
|
#else
|
||||||
#define DO_DEBUG(INST)
|
#define DO_DEBUG(INST)
|
||||||
#endif /* OPAL_ENABLE_DEBUG */
|
#endif /* OPAL_ENABLE_DEBUG */
|
||||||
|
@ -33,7 +33,7 @@
|
|||||||
#if OPAL_ENABLE_DEBUG
|
#if OPAL_ENABLE_DEBUG
|
||||||
#include "opal/util/output.h"
|
#include "opal/util/output.h"
|
||||||
|
|
||||||
#define DO_DEBUG(INST) if( opal_unpack_debug ) { INST }
|
#define DO_DEBUG(INST) if( opal_ddt_unpack_debug ) { INST }
|
||||||
#else
|
#else
|
||||||
#define DO_DEBUG(INST)
|
#define DO_DEBUG(INST)
|
||||||
#endif /* OPAL_ENABLE_DEBUG */
|
#endif /* OPAL_ENABLE_DEBUG */
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user