Skip to content

Commit 0031008

Browse files
Mamzi Bayatpour  mbayatpour@nvidia.com ()janjust
andcommitted
OSC/UCX: Fix data validation issue with derived dt in get accumulate
Signed-off-by: Mamzi Bayatpour <mbayatpour@nvidia.com> Co-authored-by: Tomislav Janjusic <tomislavj@nvidia.com>
1 parent cd16792 commit 0031008

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ompi/mca/osc/ucx/osc_ucx_comm.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -990,6 +990,7 @@ int get_accumulate_req(const void *origin_addr, int origin_count,
990990
if (ret != OMPI_SUCCESS) {
991991
return ret;
992992
}
993+
temp_count *= target_count;
993994
}
994995
ompi_datatype_get_true_extent(temp_dt, &temp_lb, &temp_extent);
995996
temp_addr = free_addr = malloc(temp_extent * temp_count);

0 commit comments

Comments
 (0)