1414 * Copyright (c) 2012-2013 Sandia National Laboratories. All rights reserved.
1515 * Copyright (c) 2015 Research Organization for Information Science
1616 * and Technology (RIST). All rights reserved.
17+ * Copyright (c) 2016 FUJITSU LIMITED. All rights reserved.
1718 * $COPYRIGHT$
1819 *
1920 * Additional copyrights may follow
@@ -363,9 +364,9 @@ static inline int ompi_osc_pt2pt_put_w_req (const void *origin_addr, int origin_
363364
364365 OBJ_RETAIN (target_dt );
365366
366- ret = ompi_osc_pt2pt_isend_w_cb ((void * ) packed_ddt , ddt_len , MPI_BYTE , target ,
367- tag , module -> comm , ompi_osc_pt2pt_dt_send_complete ,
368- target_dt );
367+ ret = ompi_osc_pt2pt_isend_w_cb ((void * ) packed_ddt , ddt_len , MPI_BYTE ,
368+ target , tag_to_target ( tag ) , module -> comm ,
369+ ompi_osc_pt2pt_dt_send_complete , target_dt );
369370 if (OPAL_UNLIKELY (OMPI_SUCCESS != ret )) {
370371 break ;
371372 }
@@ -394,8 +395,8 @@ static inline int ompi_osc_pt2pt_put_w_req (const void *origin_addr, int origin_
394395 header -> tag = tag ;
395396 osc_pt2pt_hton (header , proc );
396397
397- ret = ompi_osc_pt2pt_data_isend (module ,origin_addr , origin_count , origin_dt , target , tag ,
398- request );
398+ ret = ompi_osc_pt2pt_data_isend (module ,origin_addr , origin_count , origin_dt ,
399+ target , tag_to_target ( tag ), request );
399400 }
400401 } while (0 );
401402
@@ -491,7 +492,7 @@ ompi_osc_pt2pt_accumulate_w_req (const void *origin_addr, int origin_count,
491492 }
492493
493494 is_long_msg = true;
494- tag = get_rtag (module );
495+ tag = get_tag (module );
495496 }
496497
497498 if (is_long_msg ) {
@@ -519,9 +520,9 @@ ompi_osc_pt2pt_accumulate_w_req (const void *origin_addr, int origin_count,
519520
520521 OBJ_RETAIN (target_dt );
521522
522- ret = ompi_osc_pt2pt_isend_w_cb ((void * ) packed_ddt , ddt_len , MPI_BYTE , target ,
523- tag , module -> comm , ompi_osc_pt2pt_dt_send_complete ,
524- target_dt );
523+ ret = ompi_osc_pt2pt_isend_w_cb ((void * ) packed_ddt , ddt_len , MPI_BYTE ,
524+ target , tag_to_target ( tag ) , module -> comm ,
525+ ompi_osc_pt2pt_dt_send_complete , target_dt );
525526 if (OPAL_UNLIKELY (OMPI_SUCCESS != ret )) {
526527 break ;
527528 }
@@ -553,8 +554,8 @@ ompi_osc_pt2pt_accumulate_w_req (const void *origin_addr, int origin_count,
553554 OPAL_OUTPUT_VERBOSE ((25 , ompi_osc_base_framework .framework_output ,
554555 "acc: starting long accumulate with tag %d" , tag ));
555556
556- ret = ompi_osc_pt2pt_data_isend (module , origin_addr , origin_count , origin_dt , target , tag ,
557- request );
557+ ret = ompi_osc_pt2pt_data_isend (module , origin_addr , origin_count , origin_dt ,
558+ target , tag_to_target ( tag ), request );
558559 }
559560 } while (0 );
560561
@@ -663,7 +664,8 @@ int ompi_osc_pt2pt_compare_and_swap (const void *origin_addr, const void *compar
663664 osc_pt2pt_copy_for_send (ptr , dt -> super .size , compare_addr , proc , 1 , dt );
664665
665666 request -> outstanding_requests = 1 ;
666- ret = ompi_osc_pt2pt_irecv_w_cb (result_addr , 1 , dt , target , tag , module -> comm ,
667+ ret = ompi_osc_pt2pt_irecv_w_cb (result_addr , 1 , dt ,
668+ target , tag_to_origin (tag ), module -> comm ,
667669 NULL , ompi_osc_pt2pt_req_comm_complete , request );
668670 if (OPAL_UNLIKELY (OMPI_SUCCESS != ret )) {
669671 return ret ;
@@ -786,7 +788,7 @@ static inline int ompi_osc_pt2pt_rget_internal (void *origin_addr, int origin_co
786788 ret = ompi_osc_pt2pt_frag_alloc (module , target , frag_len , & frag , & ptr , false, release_req );
787789 if (OMPI_SUCCESS != ret ) {
788790 /* allocate space for the header plus space to store ddt_len */
789- frag_len = sizeof (ompi_osc_pt2pt_header_put_t ) + 8 ;
791+ frag_len = sizeof (ompi_osc_pt2pt_header_get_t ) + 8 ;
790792 ret = ompi_osc_pt2pt_frag_alloc (module , target , frag_len , & frag , & ptr , false, release_req );
791793 if (OPAL_UNLIKELY (OMPI_SUCCESS != ret )) {
792794 return OMPI_ERR_OUT_OF_RESOURCE ;
@@ -827,9 +829,9 @@ static inline int ompi_osc_pt2pt_rget_internal (void *origin_addr, int origin_co
827829
828830 OBJ_RETAIN (target_dt );
829831
830- ret = ompi_osc_pt2pt_isend_w_cb ((void * ) packed_ddt , ddt_len , MPI_BYTE , target ,
831- tag , module -> comm , ompi_osc_pt2pt_dt_send_complete ,
832- target_dt );
832+ ret = ompi_osc_pt2pt_isend_w_cb ((void * ) packed_ddt , ddt_len , MPI_BYTE ,
833+ target , tag_to_target ( tag ) , module -> comm ,
834+ ompi_osc_pt2pt_dt_send_complete , target_dt );
833835 if (OPAL_UNLIKELY (OMPI_SUCCESS != ret )) {
834836 break ;
835837 }
@@ -843,8 +845,9 @@ static inline int ompi_osc_pt2pt_rget_internal (void *origin_addr, int origin_co
843845
844846 /* TODO -- store the request somewhere so we can cancel it on error */
845847 pt2pt_request -> outstanding_requests = 1 ;
846- ret = ompi_osc_pt2pt_irecv_w_cb (origin_addr , origin_count , origin_dt , target , tag ,
847- module -> comm , NULL , ompi_osc_pt2pt_req_comm_complete , pt2pt_request );
848+ ret = ompi_osc_pt2pt_irecv_w_cb (origin_addr , origin_count , origin_dt ,
849+ target , tag_to_origin (tag ), module -> comm ,
850+ NULL , ompi_osc_pt2pt_req_comm_complete , pt2pt_request );
848851 } while (0 );
849852
850853 if (OMPI_SUCCESS == ret ) {
@@ -1045,9 +1048,9 @@ int ompi_osc_pt2pt_rget_accumulate_internal (const void *origin_addr, int origin
10451048
10461049 OBJ_RETAIN (target_datatype );
10471050
1048- ret = ompi_osc_pt2pt_isend_w_cb ((void * ) packed_ddt , ddt_len , MPI_BYTE , target_rank ,
1049- tag , module -> comm , ompi_osc_pt2pt_dt_send_complete ,
1050- target_datatype );
1051+ ret = ompi_osc_pt2pt_isend_w_cb ((void * ) packed_ddt , ddt_len , MPI_BYTE ,
1052+ target_rank , tag_to_target ( tag ) , module -> comm ,
1053+ ompi_osc_pt2pt_dt_send_complete , target_datatype );
10511054 if (OPAL_UNLIKELY (OMPI_SUCCESS != ret )) {
10521055 break ;
10531056 }
@@ -1059,8 +1062,9 @@ int ompi_osc_pt2pt_rget_accumulate_internal (const void *origin_addr, int origin
10591062 ptr += ddt_len ;
10601063 }
10611064
1062- ret = ompi_osc_pt2pt_irecv_w_cb (result_addr , result_count , result_datatype , target_rank , tag ,
1063- module -> comm , NULL , ompi_osc_pt2pt_req_comm_complete , pt2pt_request );
1065+ ret = ompi_osc_pt2pt_irecv_w_cb (result_addr , result_count , result_datatype ,
1066+ target_rank , tag_to_origin (tag ), module -> comm ,
1067+ NULL , ompi_osc_pt2pt_req_comm_complete , pt2pt_request );
10641068 if (OPAL_UNLIKELY (OMPI_SUCCESS != ret )) {
10651069 break ;
10661070 }
@@ -1077,8 +1081,9 @@ int ompi_osc_pt2pt_rget_accumulate_internal (const void *origin_addr, int origin
10771081 header -> base .type = OMPI_OSC_PT2PT_HDR_TYPE_GET_ACC_LONG ;
10781082 osc_pt2pt_hton (header , proc );
10791083
1080- ret = ompi_osc_pt2pt_isend_w_cb (origin_addr , origin_count , origin_datatype , target_rank ,
1081- tag , module -> comm , ompi_osc_pt2pt_req_comm_complete , pt2pt_request );
1084+ ret = ompi_osc_pt2pt_isend_w_cb (origin_addr , origin_count , origin_datatype ,
1085+ target_rank , tag_to_target (tag ), module -> comm ,
1086+ ompi_osc_pt2pt_req_comm_complete , pt2pt_request );
10821087 }
10831088 } while (0 );
10841089
0 commit comments