Skip to content

Commit

Permalink
Merge pull request #12459 from jsquyres/pr/v5.0.x/minor-cleanup
Browse files Browse the repository at this point in the history
v5.0.x: Get rid of local copy of ompi_mpi_thread_multiple.
  • Loading branch information
wenduwan committed Apr 9, 2024
2 parents c114600 + 6a8583d commit 1f87690
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions ompi/mca/pml/base/pml_base_bsend.c
Expand Up @@ -137,7 +137,6 @@ int mca_pml_base_bsend_attach(void* addr, int size)
{
int align;

bool thread_safe = ompi_mpi_thread_multiple;
if(NULL == addr || size <= 0) {
return OMPI_ERR_BUFFER;
}
Expand All @@ -150,7 +149,7 @@ int mca_pml_base_bsend_attach(void* addr, int size)
}

/* try to create an instance of the allocator - to determine thread safety level */
mca_pml_bsend_allocator = mca_pml_bsend_allocator_component->allocator_init(thread_safe, mca_pml_bsend_alloc_segment, NULL, NULL);
mca_pml_bsend_allocator = mca_pml_bsend_allocator_component->allocator_init(ompi_mpi_thread_multiple, mca_pml_bsend_alloc_segment, NULL, NULL);
if(NULL == mca_pml_bsend_allocator) {
OPAL_THREAD_UNLOCK(&mca_pml_bsend_mutex);
return OMPI_ERR_BUFFER;
Expand Down

0 comments on commit 1f87690

Please sign in to comment.