mtl/query: squash compiler warning
Squash compiler warnings now showing up in the query methods for the mtls. Cast pointers to the different mtl module specific types to the mca_base_module_t. Also, fix up a missing extern in mtl_psm_types.h. This was causing "multiple definition" errors when building the mca_mtl_psm.so shared library.
Этот коммит содержится в:
родитель
41cfad1e0d
Коммит
69d2b818f7
@ -267,7 +267,7 @@ static int ompi_mtl_mxm_component_query(mca_base_module_t **module, int *priorit
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
*priority = param_priority;
|
*priority = param_priority;
|
||||||
*module = &ompi_mtl_mxm.super;
|
*module = (mca_base_module_t *)&ompi_mtl_mxm.super;
|
||||||
return OMPI_SUCCESS;
|
return OMPI_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -108,7 +108,7 @@ static int
|
|||||||
ompi_mtl_ofi_component_query(mca_base_module_t **module, int *priority)
|
ompi_mtl_ofi_component_query(mca_base_module_t **module, int *priority)
|
||||||
{
|
{
|
||||||
*priority = param_priority;
|
*priority = param_priority;
|
||||||
*module = &ompi_mtl_ofi.base;
|
*module = (mca_base_module_t *)&ompi_mtl_ofi.base;
|
||||||
return OMPI_SUCCESS;
|
return OMPI_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -232,7 +232,7 @@ ompi_mtl_portals4_component_query(mca_base_module_t **module, int *priority)
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
*priority = param_priority;
|
*priority = param_priority;
|
||||||
*module = &ompi_mtl_portals4.base;
|
*module = (mca_base_module_t *)&ompi_mtl_portals4.base;
|
||||||
return OMPI_SUCCESS;
|
return OMPI_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -200,7 +200,7 @@ ompi_mtl_psm_component_query(mca_base_module_t **module, int *priority)
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
*priority = param_priority;
|
*priority = param_priority;
|
||||||
*module = &ompi_mtl_psm.super;
|
*module = (mca_base_module_t *)&ompi_mtl_psm.super;
|
||||||
return OMPI_SUCCESS;
|
return OMPI_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -70,7 +70,7 @@ struct mca_mtl_psm_component_t {
|
|||||||
};
|
};
|
||||||
typedef struct mca_mtl_psm_component_t mca_mtl_psm_component_t;
|
typedef struct mca_mtl_psm_component_t mca_mtl_psm_component_t;
|
||||||
|
|
||||||
OMPI_DECLSPEC mca_mtl_psm_component_t mca_mtl_psm_component;
|
OMPI_DECLSPEC extern mca_mtl_psm_component_t mca_mtl_psm_component;
|
||||||
|
|
||||||
#define PSM_MAKE_MQTAG(ctxt,rank,utag) \
|
#define PSM_MAKE_MQTAG(ctxt,rank,utag) \
|
||||||
( (((ctxt)&0xffffULL)<<48)| (((rank)&0xffffULL)<<32)| \
|
( (((ctxt)&0xffffULL)<<48)| (((rank)&0xffffULL)<<32)| \
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user