Skip to content

Commit 9da9e62

Browse files
committed
oshmem: spml ucx: on error print ucx error string
Signed-off-by: Alex Mikheev <[email protected]>
1 parent 986ca00 commit 9da9e62

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

oshmem/mca/spml/ucx/spml_ucx.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ int mca_spml_ucx_add_procs(ompi_proc_t** procs, size_t nprocs)
289289
&ep_params,
290290
&mca_spml_ucx.ucp_peers[i].ucp_conn);
291291
if (UCS_OK != err) {
292-
SPML_ERROR("ucp_ep_create failed!!!\n");
292+
SPML_ERROR("ucp_ep_create failed: %s\n", ucs_status_string(err));
293293
goto error2;
294294
}
295295
OSHMEM_PROC_DATA(procs[i])->num_transports = 1;
@@ -372,7 +372,7 @@ void mca_spml_ucx_rmkey_unpack(sshmem_mkey_t *mkey, uint32_t segno, int pe, int
372372
mkey->u.data,
373373
&ucx_mkey->rkey);
374374
if (UCS_OK != err) {
375-
SPML_ERROR("failed to unpack rkey");
375+
SPML_ERROR("failed to unpack rkey: %s", ucs_status_string(err));
376376
goto error_fatal;
377377
}
378378

@@ -408,8 +408,8 @@ void mca_spml_ucx_memuse_hook(void *addr, size_t length)
408408

409409
status = ucp_mem_advise(mca_spml_ucx.ucp_context, ucx_mkey->mem_h, &params);
410410
if (UCS_OK != status) {
411-
SPML_ERROR("ucp_mem_advise failed addr %p len %llu",
412-
addr, (unsigned long long)length);
411+
SPML_ERROR("ucp_mem_advise failed addr %p len %llu : %s",
412+
addr, (unsigned long long)length, ucs_status_string(status));
413413
}
414414
}
415415

@@ -568,7 +568,7 @@ int mca_spml_ucx_fence(void)
568568

569569
err = ucp_worker_flush(mca_spml_ucx.ucp_worker);
570570
if (UCS_OK != err) {
571-
SPML_ERROR("fence failed");
571+
SPML_ERROR("fence failed: %s", ucs_status_string(err));
572572
oshmem_shmem_abort(-1);
573573
return OSHMEM_ERROR;
574574
}
@@ -581,7 +581,7 @@ int mca_spml_ucx_quiet(void)
581581

582582
err = ucp_worker_flush(mca_spml_ucx.ucp_worker);
583583
if (UCS_OK != err) {
584-
SPML_ERROR("fence failed");
584+
SPML_ERROR("fence failed: %s", ucs_status_string(err));
585585
oshmem_shmem_abort(-1);
586586
return OSHMEM_ERROR;
587587
}

0 commit comments

Comments
 (0)