1717 * reserved.
1818 * Copyright (c) 2013-2015 NVIDIA Corporation. All rights reserved.
1919 * Copyright (c) 2014-2016 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 = {
@@ -287,17 +285,6 @@ static int mca_btl_tcp_component_register(void)
287285 /* Check if we should support async progress */
288286 mca_btl_tcp_param_register_int ("progress_thread" , NULL , 0 , OPAL_INFO_LVL_1 ,
289287 & mca_btl_tcp_component .tcp_enable_progress_thread );
290- #if !defined(MCA_BTL_TCP_SUPPORT_PROGRESS_THREAD )
291- if ( mca_btl_tcp_component .tcp_enable_progress_thread ) {
292- opal_show_help ("help-mpi-btl-tcp.txt" ,
293- "unsuported progress thread" ,
294- true, "progress thread" ,
295- opal_process_info .nodename ,
296- mca_btl_tcp_component .tcp_if_seq ,
297- "Progress thread support compiled out" );
298- }
299- #endif /* !defined(MCA_BTL_TCP_SUPPORT_PROGRESS_THREAD) */
300-
301288 mca_btl_tcp_component .report_all_unfound_interfaces = false;
302289 (void ) mca_base_component_var_register (& mca_btl_tcp_component .super .btl_version ,
303290 "warn_all_unfound_interfaces" ,
@@ -355,13 +342,11 @@ static int mca_btl_tcp_component_open(void)
355342 OBJ_CONSTRUCT (& mca_btl_tcp_component .tcp_frag_user , opal_free_list_t );
356343 opal_proc_table_init (& mca_btl_tcp_component .tcp_procs , 16 , 256 );
357344
358- #if MCA_BTL_TCP_SUPPORT_PROGRESS_THREAD
359345 OBJ_CONSTRUCT (& mca_btl_tcp_component .tcp_frag_eager_mutex , opal_mutex_t );
360346 OBJ_CONSTRUCT (& mca_btl_tcp_component .tcp_frag_max_mutex , opal_mutex_t );
361347 OBJ_CONSTRUCT (& mca_btl_tcp_component .tcp_frag_user_mutex , opal_mutex_t );
362348 OBJ_CONSTRUCT (& mca_btl_tcp_ready_frag_mutex , opal_mutex_t );
363349 OBJ_CONSTRUCT (& mca_btl_tcp_ready_frag_pending_queue , opal_list_t );
364- #endif /* MCA_BTL_TCP_SUPPORT_PROGRESS_THREAD */
365350
366351 /* if_include and if_exclude need to be mutually exclusive */
367352 if (OPAL_SUCCESS !=
@@ -753,7 +738,6 @@ static int mca_btl_tcp_component_create_instances(void)
753738 return ret ;
754739}
755740
756- #if MCA_BTL_TCP_SUPPORT_PROGRESS_THREAD
757741static void * mca_btl_tcp_progress_thread_engine (opal_object_t * obj )
758742{
759743 opal_thread_t * current_thread = (opal_thread_t * )obj ;
@@ -780,7 +764,6 @@ static void mca_btl_tcp_component_event_async_handler(int fd, short unused, void
780764 opal_event_add (event , 0 );
781765 }
782766}
783- #endif
784767
785768/*
786769 * Create a listen socket and bind to all interfaces
0 commit comments