fix compilation warnings.
This commit was SVN r11524.
Этот коммит содержится в:
родитель
d4a2a51921
Коммит
ffe7051488
@ -116,7 +116,7 @@ struct mca_btl_openib_component_t {
|
||||
uint32_t ib_service_level;
|
||||
uint32_t ib_static_rate;
|
||||
uint32_t use_eager_rdma;
|
||||
uint32_t eager_rdma_threshold;
|
||||
int32_t eager_rdma_threshold;
|
||||
uint32_t eager_rdma_num;
|
||||
uint32_t max_eager_rdma;
|
||||
uint32_t btls_per_lid;
|
||||
|
@ -577,7 +577,7 @@ static void mca_btl_openib_endpoint_recv(
|
||||
void* cbdata)
|
||||
{
|
||||
mca_btl_openib_proc_t *ib_proc;
|
||||
mca_btl_openib_endpoint_t *ib_endpoint;
|
||||
mca_btl_openib_endpoint_t *ib_endpoint = NULL;
|
||||
int endpoint_state;
|
||||
int rc;
|
||||
uint32_t i;
|
||||
|
@ -164,7 +164,7 @@ struct mca_btl_base_endpoint_t {
|
||||
|
||||
uint16_t subnet; /**< subnet of this endpoint*/
|
||||
|
||||
uint32_t eager_recv_count; /**< number of eager received */
|
||||
int32_t eager_recv_count; /**< number of eager received */
|
||||
mca_btl_openib_eager_rdma_remote_t eager_rdma_remote;
|
||||
/**< info about remote RDMA buffer */
|
||||
mca_btl_openib_eager_rdma_local_t eager_rdma_local;
|
||||
|
@ -159,7 +159,7 @@ OBJ_CLASS_DECLARATION(mca_btl_openib_send_frag_control_t);
|
||||
|
||||
#define MCA_BTL_IB_FRAG_RETURN(btl, frag) \
|
||||
{ do { \
|
||||
ompi_free_list_t* my_list; \
|
||||
ompi_free_list_t* my_list = NULL; \
|
||||
switch(frag->type) { \
|
||||
case MCA_BTL_OPENIB_FRAG_EAGER_RDMA: \
|
||||
case MCA_BTL_OPENIB_FRAG_EAGER: \
|
||||
|
@ -101,7 +101,7 @@ static inline void show_help(const char *topic);
|
||||
*/
|
||||
int ompi_btl_openib_ini_init(void)
|
||||
{
|
||||
int ret;
|
||||
int ret = OMPI_ERR_NOT_FOUND;
|
||||
char *colon;
|
||||
|
||||
OBJ_CONSTRUCT(&hcas, opal_list_t);
|
||||
@ -308,7 +308,7 @@ cleanup:
|
||||
static int parse_line(parsed_section_values_t *sv)
|
||||
{
|
||||
int val, ret = OMPI_SUCCESS;
|
||||
char *value;
|
||||
char *value = NULL;
|
||||
bool showed_unknown_field_warning = false;
|
||||
|
||||
/* Save the name name */
|
||||
@ -391,7 +391,8 @@ static int parse_line(parsed_section_values_t *sv)
|
||||
|
||||
/* All done */
|
||||
|
||||
free(value);
|
||||
if(NULL != value)
|
||||
free(value);
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
@ -304,7 +304,7 @@ int btl_openib_register_mca_params(void)
|
||||
"messages are received from a given peer "
|
||||
"(must be >= 1)",
|
||||
16, &ival, REGINT_GE_ONE));
|
||||
mca_btl_openib_component.eager_rdma_threshold = (uint32_t) ival;
|
||||
mca_btl_openib_component.eager_rdma_threshold = (int32_t) ival;
|
||||
|
||||
CHECK(reg_int("max_eager_rdma", "Maximum number of peers allowed to use "
|
||||
"RDMA for short messages (RDMA is used for all long "
|
||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user