Skip to content

Commit 6dc87d1

Browse files
committed
spml/ucx: fix swap
Signed-off-by: Michal Shalev <mshalev.nvidia.com>
1 parent 32a86a4 commit 6dc87d1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

oshmem/mca/spml/ucx/spml_ucx.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -710,7 +710,7 @@ int mca_spml_ucx_add_procs(oshmem_group_t* group, size_t nprocs)
710710
swap_index = rand() % (proc_index + 1);
711711
temp_index = indices[proc_index];
712712
indices[proc_index] = indices[swap_index];
713-
indices[proc_index] = temp_index;
713+
indices[swap_index] = temp_index;
714714
}
715715

716716
ep_params.field_mask = UCP_EP_PARAM_FIELD_REMOTE_ADDRESS;

0 commit comments

Comments
 (0)