@@ -111,7 +111,6 @@ static uint64_t mca_btl_uct_cap_to_btl_atomic_flag[][2] = {
111111static void mca_btl_uct_module_set_atomic_flags (mca_btl_uct_module_t * module , mca_btl_uct_tl_t * tl )
112112{
113113 uint64_t cap_flags = tl -> uct_iface_attr .cap .flags ;
114- uint32_t flags = 0 ;
115114
116115 module -> super .btl_atomic_flags = 0 ;
117116
@@ -173,7 +172,7 @@ static ucs_status_t mca_btl_uct_conn_req_cb (void *arg, void *data, size_t lengt
173172 int32_t ep_flags ;
174173 int rc ;
175174
176- BTL_VERBOSE (("got connection request for endpoint %p. length = %lu" , endpoint , length ));
175+ BTL_VERBOSE (("got connection request for endpoint %p. length = %lu" , ( void * ) endpoint , length ));
177176
178177 if (NULL == endpoint ) {
179178 BTL_ERROR (("could not create endpoint for connection request" ));
@@ -200,7 +199,6 @@ static ucs_status_t mca_btl_uct_conn_req_cb (void *arg, void *data, size_t lengt
200199 * an endpoint can be used. */
201200 if ((ep_flags & (MCA_BTL_UCT_ENDPOINT_FLAG_CONN_REM_READY | MCA_BTL_UCT_ENDPOINT_FLAG_CONN_REC )) ==
202201 (MCA_BTL_UCT_ENDPOINT_FLAG_CONN_REM_READY | MCA_BTL_UCT_ENDPOINT_FLAG_CONN_REC )) {
203- mca_btl_uct_device_context_t * tl_context = mca_btl_uct_module_get_tl_context_specific (module , module -> comm_tls [req -> tl_index ], req -> context_id );
204202 mca_btl_uct_base_frag_t * frag ;
205203
206204 /* to avoid a race with send adding pending frags grab the lock here */
@@ -280,13 +278,17 @@ mca_btl_uct_device_context_t *mca_btl_uct_context_create (mca_btl_uct_module_t *
280278 break ;
281279 }
282280
283- BTL_VERBOSE (("enabling progress for tl %p context id %d" , tl , context_id ));
281+ BTL_VERBOSE (("enabling progress for tl %p context id %d" , ( void * ) tl , context_id ));
284282
283+ #if HAVE_DECL_UCT_PROGRESS_THREAD_SAFE
285284 uct_iface_progress_enable (context -> uct_iface , UCT_PROGRESS_THREAD_SAFE | UCT_PROGRESS_SEND |
286285 UCT_PROGRESS_RECV );
286+ #else
287+ uct_iface_progress_enable (context -> uct_iface , UCT_PROGRESS_SEND | UCT_PROGRESS_RECV );
288+ #endif
287289
288290 if (context_id > 0 && tl == module -> am_tl ) {
289- BTL_VERBOSE (("installing AM handler for tl %p context id %d" , tl , context_id ));
291+ BTL_VERBOSE (("installing AM handler for tl %p context id %d" , ( void * ) tl , context_id ));
290292 uct_iface_set_am_handler (context -> uct_iface , MCA_BTL_UCT_FRAG , mca_btl_uct_am_handler ,
291293 context , UCT_CB_FLAG_SYNC );
292294 }
0 commit comments