Skip to content

Commit cf74c5d

Browse files
committed
oshmem: spml ucx: on error print ucx error string
Signed-off-by: Alex Mikheev <[email protected]> (cherry picked from commit 9da9e62)
1 parent 04ec0a8 commit cf74c5d

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
@@ -288,7 +288,7 @@ int mca_spml_ucx_add_procs(ompi_proc_t **procs, size_t nprocs)
288288
&ep_params,
289289
&mca_spml_ucx.ucp_peers[i].ucp_conn);
290290
if (UCS_OK != err) {
291-
SPML_ERROR("ucp_ep_create failed!!!\n");
291+
SPML_ERROR("ucp_ep_create failed: %s\n", ucs_status_string(err));
292292
goto error2;
293293
}
294294
OSHMEM_PROC_DATA(procs[i])->num_transports = 1;
@@ -371,7 +371,7 @@ void mca_spml_ucx_rmkey_unpack(sshmem_mkey_t *mkey, uint32_t segno, int pe, int
371371
mkey->u.data,
372372
&ucx_mkey->rkey);
373373
if (UCS_OK != err) {
374-
SPML_ERROR("failed to unpack rkey");
374+
SPML_ERROR("failed to unpack rkey: %s", ucs_status_string(err));
375375
goto error_fatal;
376376
}
377377

@@ -407,8 +407,8 @@ void mca_spml_ucx_memuse_hook(void *addr, size_t length)
407407

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

@@ -567,7 +567,7 @@ int mca_spml_ucx_fence(void)
567567

568568
err = ucp_worker_flush(mca_spml_ucx.ucp_worker);
569569
if (UCS_OK != err) {
570-
SPML_ERROR("fence failed");
570+
SPML_ERROR("fence failed: %s", ucs_status_string(err));
571571
oshmem_shmem_abort(-1);
572572
return OSHMEM_ERROR;
573573
}
@@ -580,7 +580,7 @@ int mca_spml_ucx_quiet(void)
580580

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

0 commit comments

Comments
 (0)