Skip to content

Commit 02bc0c5

Browse files
authored
Merge pull request #12432 from hpcraink/master
Get rid of local copy of ompi_mpi_thread_multiple.
2 parents bebfc41 + 667536d commit 02bc0c5

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

ompi/mca/pml/base/pml_base_bsend.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,6 @@ int mca_pml_base_bsend_attach(void* addr, int size)
137137
{
138138
int align;
139139

140-
bool thread_safe = ompi_mpi_thread_multiple;
141140
if(NULL == addr || size <= 0) {
142141
return OMPI_ERR_BUFFER;
143142
}
@@ -150,7 +149,7 @@ int mca_pml_base_bsend_attach(void* addr, int size)
150149
}
151150

152151
/* try to create an instance of the allocator - to determine thread safety level */
153-
mca_pml_bsend_allocator = mca_pml_bsend_allocator_component->allocator_init(thread_safe, mca_pml_bsend_alloc_segment, NULL, NULL);
152+
mca_pml_bsend_allocator = mca_pml_bsend_allocator_component->allocator_init(ompi_mpi_thread_multiple, mca_pml_bsend_alloc_segment, NULL, NULL);
154153
if(NULL == mca_pml_bsend_allocator) {
155154
OPAL_THREAD_UNLOCK(&mca_pml_bsend_mutex);
156155
return OMPI_ERR_BUFFER;

0 commit comments

Comments
 (0)