1010 * University of Stuttgart. All rights reserved.
1111 * Copyright (c) 2004-2005 The Regents of the University of California.
1212 * All rights reserved.
13- * Copyright (c) 2010 Sandia National Laboratories. All rights reserved.
13+ * Copyright (c) 2010-2022 Sandia National Laboratories. All rights reserved.
1414 * Copyright (c) 2015 Los Alamos National Security, LLC. All rights
1515 * reserved.
1616 * $COPYRIGHT$
@@ -114,7 +114,7 @@ ompi_mtl_portals4_callback(ptl_event_t *ev,
114114 ptl_request -> opcount , ev -> type ));
115115
116116 /* First put achieved successfully (In the Priority List), so it may be necessary to decrement the number of pending get
117- * If the protocol is eager, just decrement pending_get
117+ * If the protocol is eager, just decrement pending_get
118118 * Else (the protocol is rndv), decrement pending_get only if length % max_msg_size <= eager_limit
119119 * (This is the case where the eager part allows to save one get)
120120 */
@@ -229,7 +229,7 @@ ompi_mtl_portals4_isend_callback(ptl_event_t *ev,
229229
230230static inline int
231231ompi_mtl_portals4_short_isend (mca_pml_base_send_mode_t mode ,
232- void * start , int length , int contextid , int tag ,
232+ void * start , int length , uint32_t contextid , int tag ,
233233 int localrank ,
234234 ptl_process_t ptl_proc ,
235235 ompi_mtl_portals4_isend_request_t * ptl_request )
@@ -239,7 +239,9 @@ ompi_mtl_portals4_short_isend(mca_pml_base_send_mode_t mode,
239239 ptl_me_t me ;
240240 ptl_hdr_data_t hdr_data ;
241241
242- MTL_PORTALS4_SET_SEND_BITS (match_bits , contextid , localrank , tag ,
242+ MTL_PORTALS4_SET_SEND_BITS (match_bits ,
243+ contextid ,
244+ localrank , tag ,
243245 MTL_PORTALS4_SHORT_MSG );
244246
245247 MTL_PORTALS4_SET_HDR_DATA (hdr_data , ptl_request -> opcount , length ,
@@ -316,7 +318,7 @@ ompi_mtl_portals4_short_isend(mca_pml_base_send_mode_t mode,
316318}
317319
318320static inline int
319- ompi_mtl_portals4_long_isend (void * start , size_t length , int contextid , int tag ,
321+ ompi_mtl_portals4_long_isend (void * start , size_t length , uint32_t contextid , int tag ,
320322 int localrank ,
321323 ptl_process_t ptl_proc ,
322324 ompi_mtl_portals4_isend_request_t * ptl_request )
@@ -327,7 +329,9 @@ ompi_mtl_portals4_long_isend(void *start, size_t length, int contextid, int tag,
327329 ptl_hdr_data_t hdr_data ;
328330 ptl_size_t put_length ;
329331
330- MTL_PORTALS4_SET_SEND_BITS (match_bits , contextid , localrank , tag ,
332+ MTL_PORTALS4_SET_SEND_BITS (match_bits ,
333+ contextid ,
334+ localrank , tag ,
331335 MTL_PORTALS4_LONG_MSG );
332336
333337 MTL_PORTALS4_SET_HDR_DATA (hdr_data , ptl_request -> opcount , length , 0 );
@@ -513,7 +517,7 @@ ompi_mtl_portals4_send_start(struct mca_mtl_base_module_t* mtl,
513517 pending -> mode = mode ;
514518 pending -> start = start ;
515519 pending -> length = length ;
516- pending -> contextid = comm -> c_contextid ;
520+ pending -> contextid = ompi_comm_get_local_cid ( comm ) ;
517521 pending -> tag = tag ;
518522 pending -> my_rank = comm -> c_my_rank ;
519523 pending -> fc_notified = 0 ;
@@ -546,15 +550,15 @@ ompi_mtl_portals4_send_start(struct mca_mtl_base_module_t* mtl,
546550 ret = ompi_mtl_portals4_short_isend (mode ,
547551 start ,
548552 length ,
549- comm -> c_contextid ,
553+ ompi_comm_get_local_cid ( comm ) ,
550554 tag ,
551555 comm -> c_my_rank ,
552556 ptl_proc ,
553557 ptl_request );
554558 } else {
555559 ret = ompi_mtl_portals4_long_isend (start ,
556560 length ,
557- comm -> c_contextid ,
561+ ompi_comm_get_local_cid ( comm ) ,
558562 tag ,
559563 comm -> c_my_rank ,
560564 ptl_proc ,
0 commit comments