1
1

switch to ompi_mpi_thread_provided for ts check

Use ompi_mpi_thread_provided rather than opal_using_threads macro
to check whether MPI_THREAD_MULTIPLE is being used.

This commit was SVN r32815.
Этот коммит содержится в:
Howard Pritchard 2014-09-29 22:20:35 +00:00
родитель 7069f2361a
Коммит 0f74467264

Просмотреть файл

@ -2896,7 +2896,7 @@ mca_coll_ml_comm_query(struct ompi_communicator_t *comm, int *priority)
return NULL; return NULL;
} }
if (opal_using_threads()) { if (MPI_THREAD_MULTIPLE == ompi_mpi_thread_provided) {
ML_VERBOSE(10, ("coll:ml: MPI_THREAD_MULTIPLE not suppported; skipping this component")); ML_VERBOSE(10, ("coll:ml: MPI_THREAD_MULTIPLE not suppported; skipping this component"));
*priority = -1; *priority = -1;
return NULL; return NULL;