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-2017 Research Organization for Information Science
2121 * and Technology (RIST). All rights reserved.
2222 * $COPYRIGHT$
2323 *
@@ -93,13 +93,11 @@ static int mca_btl_tcp_component_open(void);
9393static int mca_btl_tcp_component_close (void );
9494
9595opal_event_base_t * mca_btl_tcp_event_base = NULL ;
96- #if MCA_BTL_TCP_SUPPORT_PROGRESS_THREAD
9796int mca_btl_tcp_progress_thread_trigger = -1 ;
9897int mca_btl_tcp_pipe_to_progress [2 ] = { -1 , -1 };
9998static opal_thread_t mca_btl_tcp_progress_thread = { { 0 } };
10099opal_list_t mca_btl_tcp_ready_frag_pending_queue = { { 0 } };
101100opal_mutex_t mca_btl_tcp_ready_frag_mutex = OPAL_MUTEX_STATIC_INIT ;
102- #endif /* MCA_BTL_TCP_SUPPORT_PROGRESS_THREAD */
103101
104102mca_btl_tcp_component_t mca_btl_tcp_component = {
105103 .super = {
@@ -288,16 +286,6 @@ static int mca_btl_tcp_component_register(void)
288286 /* Check if we should support async progress */
289287 mca_btl_tcp_param_register_int ("progress_thread" , NULL , 0 , OPAL_INFO_LVL_1 ,
290288 & mca_btl_tcp_component .tcp_enable_progress_thread );
291- #if !defined(MCA_BTL_TCP_SUPPORT_PROGRESS_THREAD )
292- if ( mca_btl_tcp_component .tcp_enable_progress_thread ) {
293- opal_show_help ("help-mpi-btl-tcp.txt" ,
294- "unsuported progress thread" ,
295- true, "progress thread" ,
296- opal_process_info .nodename ,
297- mca_btl_tcp_component .tcp_if_seq ,
298- "Progress thread support compiled out" );
299- }
300- #endif /* !defined(MCA_BTL_TCP_SUPPORT_PROGRESS_THREAD) */
301289 mca_btl_tcp_component .report_all_unfound_interfaces = false;
302290 (void ) mca_base_component_var_register (& mca_btl_tcp_component .super .btl_version ,
303291 "warn_all_unfound_interfaces" ,
@@ -355,13 +343,11 @@ static int mca_btl_tcp_component_open(void)
355343 OBJ_CONSTRUCT (& mca_btl_tcp_component .tcp_frag_user , opal_free_list_t );
356344 opal_proc_table_init (& mca_btl_tcp_component .tcp_procs , 16 , 256 );
357345
358- #if MCA_BTL_TCP_SUPPORT_PROGRESS_THREAD
359346 OBJ_CONSTRUCT (& mca_btl_tcp_component .tcp_frag_eager_mutex , opal_mutex_t );
360347 OBJ_CONSTRUCT (& mca_btl_tcp_component .tcp_frag_max_mutex , opal_mutex_t );
361348 OBJ_CONSTRUCT (& mca_btl_tcp_component .tcp_frag_user_mutex , opal_mutex_t );
362349 OBJ_CONSTRUCT (& mca_btl_tcp_ready_frag_mutex , opal_mutex_t );
363350 OBJ_CONSTRUCT (& mca_btl_tcp_ready_frag_pending_queue , opal_list_t );
364- #endif /* MCA_BTL_TCP_SUPPORT_PROGRESS_THREAD */
365351
366352 /* if_include and if_exclude need to be mutually exclusive */
367353 if (OPAL_SUCCESS !=
@@ -759,7 +745,6 @@ static int mca_btl_tcp_component_create_instances(void)
759745 return ret ;
760746}
761747
762- #if MCA_BTL_TCP_SUPPORT_PROGRESS_THREAD
763748static void * mca_btl_tcp_progress_thread_engine (opal_object_t * obj )
764749{
765750 opal_thread_t * current_thread = (opal_thread_t * )obj ;
@@ -786,7 +771,6 @@ static void mca_btl_tcp_component_event_async_handler(int fd, short unused, void
786771 opal_event_add (event , 0 );
787772 }
788773}
789- #endif
790774
791775/*
792776 * Create a listen socket and bind to all interfaces
0 commit comments