Skip to content

Commit ff9ecc1

Browse files
committed
SPML/UCX: Fix coverity error
Signed-off-by: Mikhail Brinskii <[email protected]> (cherry picked from commit d81dc53)
1 parent 8c9a3d1 commit ff9ecc1

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)