Skip to content

Commit dd5991f

Browse files
authored
Merge pull request #7204 from devreal/shmwin_contig
Correctly set baseptr in contiguous shared memory window with local size zero
2 parents e8e089c + 06bbcf4 commit dd5991f

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
@@ -341,7 +341,7 @@ component_select(struct ompi_win_t *win, void **base, size_t size, int disp_unit
341341
}
342342

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

0 commit comments

Comments
 (0)