Skip to content

Commit 06bbcf4

Browse files
committed
Correctly set baseptr in contiguous shared memory window with local size zero
Signed-off-by: Joseph Schuchart <schuchart@hlrs.de>
1 parent b50d568 commit 06bbcf4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ompi/mca/osc/sm/osc_sm_component.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@ component_select(struct ompi_win_t *win, void **base, size_t size, int disp_unit
340340
}
341341

342342
module->sizes[i] = rbuf[i];
343-
if (module->sizes[i]) {
343+
if (module->sizes[i] || !module->noncontig) {
344344
module->bases[i] = ((char *) module->segment_base) + total;
345345
total += rbuf[i];
346346
} else {

0 commit comments

Comments
 (0)