2004-06-15 01:05:53 +04:00
|
|
|
/*
|
2005-11-05 22:57:48 +03:00
|
|
|
* Copyright (c) 2004-2005 The Trustees of Indiana University and Indiana
|
|
|
|
* University Research and Technology
|
|
|
|
* Corporation. All rights reserved.
|
|
|
|
* Copyright (c) 2004-2005 The University of Tennessee and The University
|
|
|
|
* of Tennessee Research Foundation. All rights
|
|
|
|
* reserved.
|
2004-11-28 23:09:25 +03:00
|
|
|
* Copyright (c) 2004-2005 High Performance Computing Center Stuttgart,
|
|
|
|
* University of Stuttgart. All rights reserved.
|
2005-03-24 15:43:37 +03:00
|
|
|
* Copyright (c) 2004-2005 The Regents of the University of California.
|
|
|
|
* All rights reserved.
|
2004-11-22 04:38:40 +03:00
|
|
|
* $COPYRIGHT$
|
|
|
|
*
|
|
|
|
* Additional copyrights may follow
|
|
|
|
*
|
2004-06-15 01:05:53 +04:00
|
|
|
* $HEADER$
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "ompi_config.h"
|
|
|
|
|
2006-02-12 04:33:29 +03:00
|
|
|
#include "opal/mca/mca.h"
|
|
|
|
#include "opal/mca/base/base.h"
|
|
|
|
#include "ompi/mca/mpool/base/base.h"
|
2004-06-15 01:05:53 +04:00
|
|
|
|
2005-07-03 20:22:16 +04:00
|
|
|
OBJ_CLASS_INSTANCE(mca_mpool_base_selected_module_t, opal_list_item_t, NULL, NULL);
|
2005-04-22 20:18:41 +04:00
|
|
|
static bool mca_mpool_enable_progress_threads = true;
|
2011-03-19 00:36:35 +03:00
|
|
|
static bool mca_mpool_enable_mpi_thread_multiple = true;
|
2005-05-31 23:07:27 +04:00
|
|
|
|
2004-06-15 01:05:53 +04:00
|
|
|
/**
|
2004-06-15 23:07:45 +04:00
|
|
|
* Function for weeding out mpool modules that don't want to run.
|
2004-06-15 01:05:53 +04:00
|
|
|
*
|
2004-06-17 20:13:20 +04:00
|
|
|
* Call the init function on all available components to find out if they
|
|
|
|
* want to run. Select all components that don't fail. Failing modules
|
2004-06-15 01:05:53 +04:00
|
|
|
* will be closed and unloaded. The selected modules will be returned
|
2005-07-03 20:22:16 +04:00
|
|
|
* to the caller in a opal_list_t.
|
2004-06-15 01:05:53 +04:00
|
|
|
*/
|
2011-03-19 00:36:35 +03:00
|
|
|
int mca_mpool_base_init(bool enable_progress_threads, bool enable_mpi_thread_multiple)
|
2005-04-22 20:18:41 +04:00
|
|
|
{
|
|
|
|
mca_mpool_enable_progress_threads = enable_progress_threads;
|
2011-03-19 00:36:35 +03:00
|
|
|
mca_mpool_enable_mpi_thread_multiple = enable_mpi_thread_multiple;
|
2005-09-17 02:22:03 +04:00
|
|
|
return OMPI_SUCCESS;
|
2005-04-22 20:18:41 +04:00
|
|
|
}
|
|
|
|
|