Skip to content

Commit c901f81

Browse files
committed
oshmem/shmem: Allocate and exchange base segment address beforehand
Signed-off-by: Thomas Vegas <[email protected]>
1 parent ac70aad commit c901f81

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

oshmem/mca/memheap/base/memheap_base_select.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ static void *memheap_mmap_get(void *hint, size_t size)
124124
static int memheap_exchange_base_address(size_t size, void **address)
125125
{
126126
int nprocs = oshmem_num_procs();
127-
int need_sync = (*address != NULL);
127+
int need_sync = (*address == NULL);
128128
void *base = NULL;
129129
void *ptr = NULL;
130130
int rc, i;

0 commit comments

Comments
 (0)