This source file includes following definitions.
- oshmem_shmem_register_params
1
2
3
4
5
6
7
8
9
10
11 #include "oshmem_config.h"
12
13 #include "opal/runtime/opal_params.h"
14
15 #include "oshmem/runtime/params.h"
16 #include "oshmem/runtime/runtime.h"
17 #include "oshmem/constants.h"
18
19
20 int oshmem_shmem_lock_recursive = 0;
21 int oshmem_shmem_api_verbose = 0;
22 int oshmem_preconnect_all = 0;
23
24 int oshmem_shmem_register_params(void)
25 {
26 int value;
27
28 (void) mca_base_var_register("oshmem",
29 "oshmem",
30 NULL,
31 "lock_recursive",
32 "Whether or not distributed locking support recursive calls (default = no)",
33 MCA_BASE_VAR_TYPE_INT,
34 NULL,
35 0,
36 MCA_BASE_VAR_FLAG_SETTABLE,
37 OPAL_INFO_LVL_9,
38 MCA_BASE_VAR_SCOPE_READONLY,
39 &oshmem_shmem_lock_recursive);
40
41 (void) mca_base_var_register("oshmem",
42 "oshmem",
43 NULL,
44 "api_verbose",
45 "Verbosity level of the shmem c functions (default = 0)",
46 MCA_BASE_VAR_TYPE_INT,
47 NULL,
48 0,
49 MCA_BASE_VAR_FLAG_SETTABLE,
50 OPAL_INFO_LVL_9,
51 MCA_BASE_VAR_SCOPE_READONLY,
52 &oshmem_shmem_api_verbose);
53
54 (void) mca_base_var_register("oshmem",
55 "oshmem",
56 NULL,
57 "preconnect_all",
58 "Whether to force SHMEM processes to fully "
59 "wire-up the connections between SHMEM "
60 "processes during "
61 "initialization (vs. making connections lazily -- "
62 "upon the first SHMEM traffic between each "
63 "process peer pair)",
64 MCA_BASE_VAR_TYPE_INT,
65 NULL,
66 0,
67 MCA_BASE_VAR_FLAG_SETTABLE,
68 OPAL_INFO_LVL_9,
69 MCA_BASE_VAR_SCOPE_READONLY,
70 &oshmem_preconnect_all);
71
72 value = mca_base_var_find ("opal", "opal", NULL, "abort_delay");
73 if (0 <= value) {
74 (void) mca_base_var_register_synonym(value, "oshmem", "oshmem", NULL, "abort_delay",
75 MCA_BASE_VAR_SYN_FLAG_DEPRECATED);
76 }
77
78 value = mca_base_var_find ("opal", "opal", NULL, "abort_print_stack");
79 if (0 <= value) {
80 (void) mca_base_var_register_synonym(value, "oshmem", "oshmem", NULL, "abort_print_stack",
81 MCA_BASE_VAR_SYN_FLAG_DEPRECATED);
82 }
83
84 return OSHMEM_SUCCESS;
85 }