SPML/UCX: Fix coverity error
Signed-off-by: Mikhail Brinskii <mikhailb@mellanox.com> (cherry picked from commit d81dc533f6f7ebba0b00c1652190975f0aca9e06)
Этот коммит содержится в:
родитель
8c9a3d1d1f
Коммит
ff9ecc183f
@ -886,8 +886,10 @@ int mca_spml_ucx_put_all_nb(void *dest, const void *source, size_t size, long *c
|
|||||||
ctx = oshmem_ctx_default;
|
ctx = oshmem_ctx_default;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
assert(ctx != NULL); /* make coverity happy */
|
||||||
|
|
||||||
for (peer = 0; peer < oshmem_num_procs(); peer++) {
|
for (peer = 0; peer < oshmem_num_procs(); peer++) {
|
||||||
dst_pe = (peer + my_pe) % oshmem_group_all->proc_count;
|
dst_pe = (peer + my_pe) % oshmem_num_procs();
|
||||||
rc = mca_spml_ucx_put_nb(ctx,
|
rc = mca_spml_ucx_put_nb(ctx,
|
||||||
(void*)((uintptr_t)dest + my_pe * size),
|
(void*)((uintptr_t)dest + my_pe * size),
|
||||||
size,
|
size,
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user