Skip to content

Commit 5880cb4

Browse files
authored
Merge pull request #6661 from brminich/topic/fix_cov_errors_4.0.x
SPML/UCX: Fix coverity error - 4.0.x
2 parents 0dc2c72 + ff9ecc1 commit 5880cb4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

oshmem/mca/spml/ucx/spml_ucx.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -886,8 +886,10 @@ int mca_spml_ucx_put_all_nb(void *dest, const void *source, size_t size, long *c
886886
ctx = oshmem_ctx_default;
887887
}
888888

889+
assert(ctx != NULL); /* make coverity happy */
890+
889891
for (peer = 0; peer < oshmem_num_procs(); peer++) {
890-
dst_pe = (peer + my_pe) % oshmem_group_all->proc_count;
892+
dst_pe = (peer + my_pe) % oshmem_num_procs();
891893
rc = mca_spml_ucx_put_nb(ctx,
892894
(void*)((uintptr_t)dest + my_pe * size),
893895
size,

0 commit comments

Comments
 (0)