Skip to content

Commit af614af

Browse files
authored
Merge pull request #1800 from thananon/common_sym_fix
Fixed common symbol error in btl/usnic.
2 parents 7bd7c05 + afe07cd commit af614af

File tree

3 files changed

+5
-7
lines changed

3 files changed

+5
-7
lines changed

opal/mca/btl/usnic/btl_usnic.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,10 @@ BEGIN_C_DECLS
6363
* at other times as needed or as tuning dictates.
6464
*/
6565
extern uint64_t opal_btl_usnic_ticks;
66+
67+
/* Lock for MPU_THREAD_MULTIPLE support */
68+
extern opal_recursive_mutex_t btl_usnic_lock;
69+
6670
static inline uint64_t
6771
get_nsec(void)
6872
{

opal/mca/btl/usnic/btl_usnic_component.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@
8787
#define OPAL_BTL_USNIC_NUM_COMPLETIONS 500
8888

8989
/* MPI_THREAD_MULTIPLE_SUPPORT */
90-
opal_recursive_mutex_t btl_usnic_lock;
90+
opal_recursive_mutex_t btl_usnic_lock = OPAL_RECURSIVE_MUTEX_STATIC_INIT;
9191

9292
/* RNG buffer definition */
9393
opal_rng_buff_t opal_btl_usnic_rand_buff = {0};

opal/mca/btl/usnic/btl_usnic_module.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -53,12 +53,6 @@
5353

5454
BEGIN_C_DECLS
5555

56-
/*
57-
* MPI_THREAD_MULTIPLE support
58-
*/
59-
extern opal_recursive_mutex_t btl_usnic_lock;
60-
61-
6256
/*
6357
* Forward declarations to avoid include loops
6458
*/

0 commit comments

Comments
 (0)