17
17
* reserved.
18
18
* Copyright (c) 2013-2015 NVIDIA Corporation. All rights reserved.
19
19
* 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
21
21
* and Technology (RIST). All rights reserved.
22
22
* $COPYRIGHT$
23
23
*
@@ -97,13 +97,11 @@ static int mca_btl_tcp_component_open(void);
97
97
static int mca_btl_tcp_component_close (void );
98
98
99
99
opal_event_base_t * mca_btl_tcp_event_base = NULL ;
100
- #if MCA_BTL_TCP_SUPPORT_PROGRESS_THREAD
101
100
int mca_btl_tcp_progress_thread_trigger = -1 ;
102
101
int mca_btl_tcp_pipe_to_progress [2 ] = { -1 , -1 };
103
102
static opal_thread_t mca_btl_tcp_progress_thread = { { 0 } };
104
103
opal_list_t mca_btl_tcp_ready_frag_pending_queue = { { 0 } };
105
104
opal_mutex_t mca_btl_tcp_ready_frag_mutex = OPAL_MUTEX_STATIC_INIT ;
106
- #endif /* MCA_BTL_TCP_SUPPORT_PROGRESS_THREAD */
107
105
108
106
mca_btl_tcp_component_t mca_btl_tcp_component = {
109
107
.super = {
@@ -292,16 +290,6 @@ static int mca_btl_tcp_component_register(void)
292
290
/* Check if we should support async progress */
293
291
mca_btl_tcp_param_register_int ("progress_thread" , NULL , 0 , OPAL_INFO_LVL_1 ,
294
292
& 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) */
305
293
mca_btl_tcp_component .report_all_unfound_interfaces = false;
306
294
(void ) mca_base_component_var_register (& mca_btl_tcp_component .super .btl_version ,
307
295
"warn_all_unfound_interfaces" ,
@@ -362,13 +350,11 @@ static int mca_btl_tcp_component_open(void)
362
350
OBJ_CONSTRUCT (& mca_btl_tcp_component .tcp_frag_user , opal_free_list_t );
363
351
opal_proc_table_init (& mca_btl_tcp_component .tcp_procs , 16 , 256 );
364
352
365
- #if MCA_BTL_TCP_SUPPORT_PROGRESS_THREAD
366
353
OBJ_CONSTRUCT (& mca_btl_tcp_component .tcp_frag_eager_mutex , opal_mutex_t );
367
354
OBJ_CONSTRUCT (& mca_btl_tcp_component .tcp_frag_max_mutex , opal_mutex_t );
368
355
OBJ_CONSTRUCT (& mca_btl_tcp_component .tcp_frag_user_mutex , opal_mutex_t );
369
356
OBJ_CONSTRUCT (& mca_btl_tcp_ready_frag_mutex , opal_mutex_t );
370
357
OBJ_CONSTRUCT (& mca_btl_tcp_ready_frag_pending_queue , opal_list_t );
371
- #endif /* MCA_BTL_TCP_SUPPORT_PROGRESS_THREAD */
372
358
373
359
/* if_include and if_exclude need to be mutually exclusive */
374
360
if (OPAL_SUCCESS !=
@@ -396,7 +382,6 @@ static int mca_btl_tcp_component_close(void)
396
382
{
397
383
mca_btl_tcp_event_t * event , * next ;
398
384
399
- #if MCA_BTL_TCP_SUPPORT_PROGRESS_THREAD
400
385
/**
401
386
* If we have a progress thread we should shut it down before
402
387
* moving forward with the TCP tearing down process.
@@ -433,7 +418,6 @@ static int mca_btl_tcp_component_close(void)
433
418
434
419
OBJ_DESTRUCT (& mca_btl_tcp_ready_frag_mutex );
435
420
OBJ_DESTRUCT (& mca_btl_tcp_ready_frag_pending_queue );
436
- #endif
437
421
438
422
if (NULL != mca_btl_tcp_component .tcp_btls ) {
439
423
free (mca_btl_tcp_component .tcp_btls );
@@ -786,7 +770,6 @@ static int mca_btl_tcp_component_create_instances(void)
786
770
return ret ;
787
771
}
788
772
789
- #if MCA_BTL_TCP_SUPPORT_PROGRESS_THREAD
790
773
static void * mca_btl_tcp_progress_thread_engine (opal_object_t * obj )
791
774
{
792
775
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
813
796
opal_event_add (event , 0 );
814
797
}
815
798
}
816
- #endif
817
799
818
800
/*
819
801
* Create a listen socket and bind to all interfaces
0 commit comments