File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments