66 * reserved.
77 * Copyright (c) 2018-2020 Amazon.com, Inc. or its affiliates. All rights
88 * reserved.
9- *
9+ * Copyright (c) 2021 Cisco Systems, Inc. All rights reserved
1010 * $COPYRIGHT$
1111 *
1212 * Additional copyrights may follow
@@ -68,16 +68,16 @@ extern int ompi_mtl_ofi_del_procs(struct mca_mtl_base_module_t *mtl,
6868int ompi_mtl_ofi_progress_no_inline (void );
6969
7070#if OPAL_HAVE_THREAD_LOCAL
71- extern opal_thread_local int per_thread_ctx ;
72- extern opal_thread_local struct fi_cq_tagged_entry wc [MTL_OFI_MAX_PROG_EVENT_COUNT ];
71+ extern opal_thread_local int ompi_mtl_ofi_per_thread_ctx ;
72+ extern opal_thread_local struct fi_cq_tagged_entry ompi_mtl_ofi_wc [MTL_OFI_MAX_PROG_EVENT_COUNT ];
7373#endif
7474
7575/* Set OFI context for operations which generate completion events */
7676__opal_attribute_always_inline__ static inline void
7777set_thread_context (int ctxt )
7878{
7979#if OPAL_HAVE_THREAD_LOCAL
80- per_thread_ctx = ctxt ;
80+ ompi_mtl_ofi_per_thread_ctx = ctxt ;
8181 return ;
8282#endif
8383}
@@ -87,7 +87,7 @@ __opal_attribute_always_inline__ static inline void
8787get_thread_context (int * ctxt )
8888{
8989#if OPAL_HAVE_THREAD_LOCAL
90- * ctxt = per_thread_ctx ;
90+ * ctxt = ompi_mtl_ofi_per_thread_ctx ;
9191#endif
9292 return ;
9393}
@@ -106,24 +106,24 @@ ompi_mtl_ofi_context_progress(int ctxt_id)
106106 struct fi_cq_err_entry error = { 0 };
107107 ssize_t ret ;
108108#if !OPAL_HAVE_THREAD_LOCAL
109- struct fi_cq_tagged_entry wc [MTL_OFI_MAX_PROG_EVENT_COUNT ];
109+ struct fi_cq_tagged_entry ompi_mtl_ofi_wc [MTL_OFI_MAX_PROG_EVENT_COUNT ];
110110#endif
111111
112112 /**
113113 * Read the work completions from the CQ.
114114 * From the completion's op_context, we get the associated OFI request.
115115 * Call the request's callback.
116116 */
117- ret = fi_cq_read (ompi_mtl_ofi .ofi_ctxt [ctxt_id ].cq , (void * )& wc ,
117+ ret = fi_cq_read (ompi_mtl_ofi .ofi_ctxt [ctxt_id ].cq , (void * )& ompi_mtl_ofi_wc ,
118118 ompi_mtl_ofi .ofi_progress_event_count );
119119 if (ret > 0 ) {
120120 count += ret ;
121121 events_read = ret ;
122122 for (i = 0 ; i < events_read ; i ++ ) {
123- if (NULL != wc [i ].op_context ) {
124- ofi_req = TO_OFI_REQ (wc [i ].op_context );
123+ if (NULL != ompi_mtl_ofi_wc [i ].op_context ) {
124+ ofi_req = TO_OFI_REQ (ompi_mtl_ofi_wc [i ].op_context );
125125 assert (ofi_req );
126- ret = ofi_req -> event_callback (& wc [i ], ofi_req );
126+ ret = ofi_req -> event_callback (& ompi_mtl_ofi_wc [i ], ofi_req );
127127 if (OMPI_SUCCESS != ret ) {
128128 opal_output (0 , "%s:%d: Error returned by request event callback: %zd.\n"
129129 "*** The Open MPI OFI MTL is aborting the MPI job (via exit(3)).\n" ,
0 commit comments