Skip to content

Commit

Permalink
oshmem/shmem: Allocate and exchange base segment address beforehand
Browse files Browse the repository at this point in the history
Signed-off-by: Thomas Vegas <[email protected]>
  • Loading branch information
tvegas1 committed Nov 15, 2024
1 parent ac70aad commit c901f81
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion oshmem/mca/memheap/base/memheap_base_select.c
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ static void *memheap_mmap_get(void *hint, size_t size)
static int memheap_exchange_base_address(size_t size, void **address)
{
int nprocs = oshmem_num_procs();
int need_sync = (*address != NULL);
int need_sync = (*address == NULL);
void *base = NULL;
void *ptr = NULL;
int rc, i;
Expand Down

0 comments on commit c901f81

Please sign in to comment.