1717 * reserved.
1818 * Copyright (c) 2013-2015 NVIDIA Corporation. All rights reserved.
1919 * Copyright (c) 2014-2015 Intel, Inc. All rights reserved.
20- * Copyright (c) 2014-2015 Research Organization for Information Science
20+ * Copyright (c) 2014-2016 Research Organization for Information Science
2121 * and Technology (RIST). All rights reserved.
2222 * $COPYRIGHT$
2323 *
@@ -97,13 +97,11 @@ static int mca_btl_tcp_component_open(void);
9797static int mca_btl_tcp_component_close (void );
9898
9999opal_event_base_t * mca_btl_tcp_event_base = NULL ;
100- #if MCA_BTL_TCP_SUPPORT_PROGRESS_THREAD
101100int mca_btl_tcp_progress_thread_trigger = -1 ;
102101int mca_btl_tcp_pipe_to_progress [2 ] = { -1 , -1 };
103102static opal_thread_t mca_btl_tcp_progress_thread = { { 0 } };
104103opal_list_t mca_btl_tcp_ready_frag_pending_queue = { { 0 } };
105104opal_mutex_t mca_btl_tcp_ready_frag_mutex = OPAL_MUTEX_STATIC_INIT ;
106- #endif /* MCA_BTL_TCP_SUPPORT_PROGRESS_THREAD */
107105
108106mca_btl_tcp_component_t mca_btl_tcp_component = {
109107 .super = {
@@ -292,16 +290,6 @@ static int mca_btl_tcp_component_register(void)
292290 /* Check if we should support async progress */
293291 mca_btl_tcp_param_register_int ("progress_thread" , NULL , 0 , OPAL_INFO_LVL_1 ,
294292 & mca_btl_tcp_component .tcp_enable_progress_thread );
295- #if !defined(MCA_BTL_TCP_SUPPORT_PROGRESS_THREAD )
296- if ( mca_btl_tcp_component .tcp_enable_progress_thread ) {
297- opal_show_help ("help-mpi-btl-tcp.txt" ,
298- "unsuported progress thread" ,
299- true, "progress thread" ,
300- opal_process_info .nodename ,
301- mca_btl_tcp_component .tcp_if_seq ,
302- "Progress thread support compiled out" );
303- }
304- #endif /* !defined(MCA_BTL_TCP_SUPPORT_PROGRESS_THREAD) */
305293 mca_btl_tcp_component .report_all_unfound_interfaces = false;
306294 (void ) mca_base_component_var_register (& mca_btl_tcp_component .super .btl_version ,
307295 "warn_all_unfound_interfaces" ,
@@ -362,13 +350,11 @@ static int mca_btl_tcp_component_open(void)
362350 OBJ_CONSTRUCT (& mca_btl_tcp_component .tcp_frag_user , opal_free_list_t );
363351 opal_proc_table_init (& mca_btl_tcp_component .tcp_procs , 16 , 256 );
364352
365- #if MCA_BTL_TCP_SUPPORT_PROGRESS_THREAD
366353 OBJ_CONSTRUCT (& mca_btl_tcp_component .tcp_frag_eager_mutex , opal_mutex_t );
367354 OBJ_CONSTRUCT (& mca_btl_tcp_component .tcp_frag_max_mutex , opal_mutex_t );
368355 OBJ_CONSTRUCT (& mca_btl_tcp_component .tcp_frag_user_mutex , opal_mutex_t );
369356 OBJ_CONSTRUCT (& mca_btl_tcp_ready_frag_mutex , opal_mutex_t );
370357 OBJ_CONSTRUCT (& mca_btl_tcp_ready_frag_pending_queue , opal_list_t );
371- #endif /* MCA_BTL_TCP_SUPPORT_PROGRESS_THREAD */
372358
373359 /* if_include and if_exclude need to be mutually exclusive */
374360 if (OPAL_SUCCESS !=
@@ -396,7 +382,6 @@ static int mca_btl_tcp_component_close(void)
396382{
397383 mca_btl_tcp_event_t * event , * next ;
398384
399- #if MCA_BTL_TCP_SUPPORT_PROGRESS_THREAD
400385 /**
401386 * If we have a progress thread we should shut it down before
402387 * moving forward with the TCP tearing down process.
@@ -433,7 +418,6 @@ static int mca_btl_tcp_component_close(void)
433418
434419 OBJ_DESTRUCT (& mca_btl_tcp_ready_frag_mutex );
435420 OBJ_DESTRUCT (& mca_btl_tcp_ready_frag_pending_queue );
436- #endif
437421
438422 if (NULL != mca_btl_tcp_component .tcp_btls ) {
439423 free (mca_btl_tcp_component .tcp_btls );
@@ -786,7 +770,6 @@ static int mca_btl_tcp_component_create_instances(void)
786770 return ret ;
787771}
788772
789- #if MCA_BTL_TCP_SUPPORT_PROGRESS_THREAD
790773static void * mca_btl_tcp_progress_thread_engine (opal_object_t * obj )
791774{
792775 opal_thread_t * current_thread = (opal_thread_t * )obj ;
@@ -813,7 +796,6 @@ static void mca_btl_tcp_component_event_async_handler(int fd, short unused, void
813796 opal_event_add (event , 0 );
814797 }
815798}
816- #endif
817799
818800/*
819801 * Create a listen socket and bind to all interfaces
0 commit comments