2013-09-10 19:34:09 +04:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2013 Mellanox Technologies, Inc.
|
|
|
|
* All rights reserved.
|
|
|
|
* $COPYRIGHT$
|
|
|
|
*
|
|
|
|
* Additional copyrights may follow
|
|
|
|
*
|
|
|
|
* $HEADER$
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "params.h"
|
|
|
|
#include "runtime.h"
|
|
|
|
#include "oshmem/constants.h"
|
|
|
|
|
|
|
|
|
|
|
|
int oshmem_shmem_lock_recursive = 0;
|
|
|
|
int oshmem_shmem_api_verbose = 0;
|
2014-03-18 19:07:04 +04:00
|
|
|
int oshmem_preconnect_all = 0;
|
2013-09-10 19:34:09 +04:00
|
|
|
|
|
|
|
int oshmem_shmem_register_params(void)
|
|
|
|
{
|
|
|
|
(void) mca_base_var_register("oshmem",
|
2014-06-06 21:36:47 +04:00
|
|
|
"oshmem",
|
2013-09-10 19:34:09 +04:00
|
|
|
NULL,
|
|
|
|
"lock_recursive",
|
|
|
|
"Whether or not distributed locking support recursive calls (default = no)",
|
|
|
|
MCA_BASE_VAR_TYPE_INT,
|
|
|
|
NULL,
|
|
|
|
0,
|
2013-09-13 00:54:55 +04:00
|
|
|
MCA_BASE_VAR_FLAG_SETTABLE,
|
2013-09-10 19:34:09 +04:00
|
|
|
OPAL_INFO_LVL_9,
|
|
|
|
MCA_BASE_VAR_SCOPE_READONLY,
|
|
|
|
&oshmem_shmem_lock_recursive);
|
|
|
|
|
|
|
|
(void) mca_base_var_register("oshmem",
|
2014-06-06 21:36:47 +04:00
|
|
|
"oshmem",
|
2013-09-10 19:34:09 +04:00
|
|
|
NULL,
|
|
|
|
"api_verbose",
|
|
|
|
"Verbosity level of the shmem c functions (default = 0)",
|
|
|
|
MCA_BASE_VAR_TYPE_INT,
|
|
|
|
NULL,
|
|
|
|
0,
|
2013-09-13 00:54:55 +04:00
|
|
|
MCA_BASE_VAR_FLAG_SETTABLE,
|
2013-09-10 19:34:09 +04:00
|
|
|
OPAL_INFO_LVL_9,
|
|
|
|
MCA_BASE_VAR_SCOPE_READONLY,
|
|
|
|
&oshmem_shmem_api_verbose);
|
|
|
|
|
2014-03-18 19:07:04 +04:00
|
|
|
(void) mca_base_var_register("oshmem",
|
|
|
|
"oshmem",
|
|
|
|
NULL,
|
|
|
|
"preconnect_all",
|
|
|
|
"Whether to force SHMEM processes to fully "
|
|
|
|
"wire-up the connections between SHMEM "
|
|
|
|
"processes during "
|
|
|
|
"initialization (vs. making connections lazily -- "
|
|
|
|
"upon the first SHMEM traffic between each "
|
|
|
|
"process peer pair)",
|
|
|
|
MCA_BASE_VAR_TYPE_INT,
|
|
|
|
NULL,
|
|
|
|
0,
|
|
|
|
MCA_BASE_VAR_FLAG_SETTABLE,
|
|
|
|
OPAL_INFO_LVL_9,
|
|
|
|
MCA_BASE_VAR_SCOPE_READONLY,
|
|
|
|
&oshmem_preconnect_all);
|
|
|
|
|
2013-09-10 19:34:09 +04:00
|
|
|
return OSHMEM_SUCCESS;
|
|
|
|
}
|