Make sure we disable the MX shared memory when we use the MX BTL.
This commit was SVN r12587.
Этот коммит содержится в:
родитель
7b4261001a
Коммит
139f9cf3d0
@ -20,6 +20,7 @@
|
|||||||
#include "ompi_config.h"
|
#include "ompi_config.h"
|
||||||
#include "ompi/constants.h"
|
#include "ompi/constants.h"
|
||||||
#include "opal/event/event.h"
|
#include "opal/event/event.h"
|
||||||
|
#include "opal/util/opal_environ.h"
|
||||||
#include "opal/util/if.h"
|
#include "opal/util/if.h"
|
||||||
#include "opal/util/argv.h"
|
#include "opal/util/argv.h"
|
||||||
#include "opal/util/output.h"
|
#include "opal/util/output.h"
|
||||||
@ -36,6 +37,8 @@
|
|||||||
#include "ompi/mca/btl/base/base.h"
|
#include "ompi/mca/btl/base/base.h"
|
||||||
#include "ompi/mca/btl/base/btl_base_error.h"
|
#include "ompi/mca/btl/base/btl_base_error.h"
|
||||||
|
|
||||||
|
extern char** environ;
|
||||||
|
|
||||||
mca_btl_mx_component_t mca_btl_mx_component = {
|
mca_btl_mx_component_t mca_btl_mx_component = {
|
||||||
{
|
{
|
||||||
/* First, the mca_base_component_t struct containing meta information
|
/* First, the mca_base_component_t struct containing meta information
|
||||||
@ -251,6 +254,7 @@ mca_btl_base_module_t** mca_btl_mx_component_init(int *num_btl_modules,
|
|||||||
mx_set_error_handler(MX_ERRORS_RETURN);
|
mx_set_error_handler(MX_ERRORS_RETURN);
|
||||||
/* Until this BTL reach a stable state let MX library generate assert for the errors */
|
/* Until this BTL reach a stable state let MX library generate assert for the errors */
|
||||||
/*mx_set_error_handler(MX_ERRORS_ARE_FATAL);*/
|
/*mx_set_error_handler(MX_ERRORS_ARE_FATAL);*/
|
||||||
|
opal_setenv( "MX_DISABLE_SHMEM", "1", true, &environ );
|
||||||
|
|
||||||
/* First check if MX is available ... */
|
/* First check if MX is available ... */
|
||||||
if( MX_SUCCESS != (status = mx_init()) ) {
|
if( MX_SUCCESS != (status = mx_init()) ) {
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user