Skip to content

Commit 7faa8a7

Browse files
authored
Merge pull request #7503 from artpol84/fix/ucx_error_out
pml/ucx: Warn if UCX is built in a single-threaded mode
2 parents 0012f1b + 05b5984 commit 7faa8a7

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

ompi/mca/pml/ucx/pml_ucx.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -319,8 +319,8 @@ int mca_pml_ucx_init(int enable_mpi_threads)
319319
if (enable_mpi_threads && (attr.thread_mode != UCS_THREAD_MODE_MULTI)) {
320320
/* UCX does not support multithreading, disqualify current PML for now */
321321
/* TODO: we should let OMPI to fallback to THREAD_SINGLE mode */
322-
PML_UCX_VERBOSE(1, "UCP worker does not support MPI_THREAD_MULTIPLE. "
323-
"PML UCX could not be selected");
322+
PML_UCX_WARN("UCP worker does not support MPI_THREAD_MULTIPLE. "
323+
"PML UCX could not be selected");
324324
rc = OMPI_ERR_NOT_SUPPORTED;
325325
goto err_destroy_worker;
326326
}

ompi/mca/pml/ucx/pml_ucx.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
#define PML_UCX_ASSERT MCA_COMMON_UCX_ASSERT
2727
#define PML_UCX_ERROR MCA_COMMON_UCX_ERROR
2828
#define PML_UCX_VERBOSE MCA_COMMON_UCX_VERBOSE
29-
29+
#define PML_UCX_WARN MCA_COMMON_UCX_WARN
3030

3131
typedef struct mca_pml_ucx_module mca_pml_ucx_module_t;
3232
typedef struct pml_ucx_persistent_request mca_pml_ucx_persistent_request_t;

0 commit comments

Comments
 (0)