fix typos in the ugni and vader btls
This commit was SVN r28772.
Этот коммит содержится в:
родитель
8f9b7926ec
Коммит
dfca3d4804
@ -60,7 +60,6 @@ typedef union mca_btl_ugni_frag_hdr_t {
|
||||
|
||||
enum {
|
||||
MCA_BTL_UGNI_FRAG_BUFFERED = 1, /* frag data is buffered */
|
||||
k
|
||||
MCA_BTL_UGNI_FRAG_COMPLETE = 2, /* smsg complete for frag */
|
||||
MCA_BTL_UGNI_FRAG_EAGER = 4, /* eager get frag */
|
||||
MCA_BTL_UGNI_FRAG_IGNORE = 8, /* ignore local smsg completion */
|
||||
|
@ -64,7 +64,7 @@ void mca_btl_vader_frag_return (mca_btl_vader_frag_t *frag)
|
||||
frag->hdr->flags = 0;
|
||||
frag->segments[0].seg_addr.pval = (char *)(frag->hdr + 1);
|
||||
|
||||
OMPI_FREE_LIST_RETURN(frag->my_list, (ompi_free_list_item_t *)frag);
|
||||
OMPI_FREE_LIST_RETURN_MT(frag->my_list, (ompi_free_list_item_t *)frag);
|
||||
}
|
||||
|
||||
OBJ_CLASS_INSTANCE(mca_btl_vader_frag_t, mca_btl_base_descriptor_t,
|
||||
|
@ -61,13 +61,12 @@ OBJ_CLASS_DECLARATION(mca_btl_vader_frag_t);
|
||||
|
||||
static inline int mca_btl_vader_frag_alloc (mca_btl_vader_frag_t **frag, ompi_free_list_t *list) {
|
||||
ompi_free_list_item_t *item;
|
||||
int rc;
|
||||
|
||||
OMPI_FREE_LIST_GET(list, item, rc);
|
||||
OMPI_FREE_LIST_GET_MT(list, item);
|
||||
*frag = (mca_btl_vader_frag_t *) item;
|
||||
if (OPAL_LIKELY(NULL != item)) {
|
||||
if (NULL == (*frag)->hdr) {
|
||||
OMPI_FREE_LIST_RETURN(list, (ompi_free_list_item_t *)*frag);
|
||||
OMPI_FREE_LIST_RETURN_MT(list, (ompi_free_list_item_t *)*frag);
|
||||
*frag = NULL;
|
||||
return OMPI_ERR_TEMP_OUT_OF_RESOURCE;
|
||||
}
|
||||
@ -76,7 +75,7 @@ static inline int mca_btl_vader_frag_alloc (mca_btl_vader_frag_t **frag, ompi_fr
|
||||
(*frag)->my_list = list;
|
||||
}
|
||||
|
||||
return rc;
|
||||
return OMPI_SUCCESS;
|
||||
}
|
||||
|
||||
void mca_btl_vader_frag_return (mca_btl_vader_frag_t *frag);
|
||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user