Skip to content

Commit 32a86a4

Browse files
committed
spml/ucx: PR fixes
Signed-off-by: Michal Shalev <mshalev.nvidia.com>
1 parent 78d0a63 commit 32a86a4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

oshmem/mca/spml/ucx/spml_ucx.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -692,7 +692,7 @@ int mca_spml_ucx_add_procs(oshmem_group_t* group, size_t nprocs)
692692
}
693693
}
694694

695-
indices = malloc(nprocs * sizeof(int));
695+
indices = malloc(nprocs * sizeof(*indices));
696696
if (!indices) {
697697
goto error;
698698
}
@@ -719,7 +719,7 @@ int mca_spml_ucx_add_procs(oshmem_group_t* group, size_t nprocs)
719719
err = ucp_ep_create(mca_spml_ucx_ctx_default.ucp_worker[0], &ep_params,
720720
&mca_spml_ucx_ctx_default.ucp_peers[indices[proc_index]].ucp_conn);
721721
if (UCS_OK != err) {
722-
SPML_UCX_ERROR("ucp_ep_create(proc=%zu/%zu) failed: %s", n, nprocs,
722+
SPML_UCX_ERROR("ucp_ep_create(proc=%d/%zu) failed: %s", proc_index, nprocs,
723723
ucs_status_string(err));
724724
goto error2;
725725
}

0 commit comments

Comments
 (0)