From 19f5a3eff4164d12fcefaa2bd112c67049b8708d Mon Sep 17 00:00:00 2001 From: Devendar Bureddy Date: Sat, 18 Apr 2015 00:33:49 +0300 Subject: [PATCH] HCOLL: skip hcoll if enable_mpi_threads is true reasons: 1) default OCOMS is not configured with --enable-ocoms-multi-threads 2) locking overheads --- ompi/mca/coll/hcoll/coll_hcoll_module.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ompi/mca/coll/hcoll/coll_hcoll_module.c b/ompi/mca/coll/hcoll/coll_hcoll_module.c index 725ce74277..0f150a3b51 100644 --- a/ompi/mca/coll/hcoll/coll_hcoll_module.c +++ b/ompi/mca/coll/hcoll/coll_hcoll_module.c @@ -18,6 +18,11 @@ int hcoll_comm_attr_keyval; */ int mca_coll_hcoll_init_query(bool enable_progress_threads, bool enable_mpi_threads) { + + if (enable_mpi_threads) { + HCOL_VERBOSE(1, "MPI_THREAD_MULTIPLE not suppported; skipping hcoll component"); + return OMPI_ERROR; + } return OMPI_SUCCESS; }