Skip to content

Commit 05b5984

Browse files
committed
pml/ucx: Warn if UCX is built in a single-threaded mode
Signed-off-by: Artem Polyakov <artpol84@gmail.com>
1 parent 96559fe commit 05b5984

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
@@ -289,8 +289,8 @@ int mca_pml_ucx_init(int enable_mpi_threads)
289289
if (enable_mpi_threads && (attr.thread_mode != UCS_THREAD_MODE_MULTI)) {
290290
/* UCX does not support multithreading, disqualify current PML for now */
291291
/* TODO: we should let OMPI to fallback to THREAD_SINGLE mode */
292-
PML_UCX_VERBOSE(1, "UCP worker does not support MPI_THREAD_MULTIPLE. "
293-
"PML UCX could not be selected");
292+
PML_UCX_WARN("UCP worker does not support MPI_THREAD_MULTIPLE. "
293+
"PML UCX could not be selected");
294294
rc = OMPI_ERR_NOT_SUPPORTED;
295295
goto err_destroy_worker;
296296
}

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)