1
1

Set the destination descriptor before calling the recv registration. Once

this call is completed, we have to remove it in order to be able to cleanup
correctly the fragments.

This commit was SVN r10428.
Этот коммит содержится в:
George Bosilca 2006-06-20 14:11:09 +00:00
родитель 1b18b7d934
Коммит 044868df45

Просмотреть файл

@ -303,8 +303,16 @@ int mca_btl_self_send(
struct mca_btl_base_descriptor_t* des, struct mca_btl_base_descriptor_t* des,
mca_btl_base_tag_t tag) mca_btl_base_tag_t tag)
{ {
/**
* We have to set the dst before the call to the function and reset them
* after.
*/
des->des_dst = des->des_src;
des->des_dst_cnt = des->des_src_cnt;
/* upcall */ /* upcall */
mca_btl_self_component.self_reg[tag].cbfunc(btl,tag,des,OMPI_SUCCESS); mca_btl_self_component.self_reg[tag].cbfunc(btl,tag,des,OMPI_SUCCESS);
des->des_dst = NULL;
des->des_dst_cnt = 0;
/* send completion */ /* send completion */
des->des_cbfunc(btl,endpoint,des,OMPI_SUCCESS); des->des_cbfunc(btl,endpoint,des,OMPI_SUCCESS);
return OMPI_SUCCESS; return OMPI_SUCCESS;