Skip to content

Commit 9be9094

Browse files
committed
osc/rdma: fix datatype extent usage in ompi_osc_rdma_rget_accumulate_internal()
Refs #3569 Signed-off-by: Gilles Gouaillardet <[email protected]>
1 parent facd6d6 commit 9be9094

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

ompi/mca/osc/rdma/osc_rdma_accumulate.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1027,13 +1027,15 @@ int ompi_osc_rdma_rget_accumulate_internal (ompi_osc_rdma_sync_t *sync, const vo
10271027
return OMPI_SUCCESS;
10281028
}
10291029

1030-
(void) ompi_datatype_get_extent (origin_datatype, &lb, &extent);
1030+
(void) ompi_datatype_get_extent (target_datatype, &lb, &extent);
10311031

10321032
ret = osc_rdma_get_remote_segment (module, peer, target_disp, extent * target_count, &target_address, &target_handle);
10331033
if (OPAL_UNLIKELY(OMPI_SUCCESS != ret)) {
10341034
return ret;
10351035
}
10361036

1037+
(void) ompi_datatype_get_extent (origin_datatype, &lb, &extent);
1038+
10371039
if (module->acc_single_intrinsic && extent <= 8) {
10381040
if (module->acc_use_amo && ompi_datatype_is_predefined (origin_datatype)) {
10391041
if (NULL == result_addr) {

0 commit comments

Comments
 (0)