Skip to content
This repository was archived by the owner on Sep 30, 2022. It is now read-only.

Commit 3968d6e

Browse files
authored
Merge pull request #1238 from hjelmn/v2.0.0_osc_rdma
osc/rdma: fix typo
2 parents 5b3b1e5 + 2baf6b9 commit 3968d6e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ompi/mca/osc/rdma/osc_rdma_component.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -517,10 +517,10 @@ static int allocate_state_shared (ompi_osc_rdma_module_t *module, void **base, s
517517

518518
if (MPI_WIN_FLAVOR_ALLOCATE == module->flavor) {
519519
for (int i = 0 ; i < local_size ; ++i) {
520-
total_size += temp[i].size;
521520
if (local_rank == i) {
522521
my_base_offset = total_size;
523522
}
523+
total_size += temp[i].size;
524524
}
525525
}
526526

0 commit comments

Comments
 (0)