File: params.h

package info (click to toggle)
openmpi 1.2.7~rc2-2
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 41,300 kB
  • ctags: 24,303
  • sloc: ansic: 224,835; sh: 22,627; makefile: 7,037; cpp: 6,353; asm: 3,547; lex: 528; objc: 383; perl: 348; csh: 89; f90: 49; fortran: 47; tcl: 12
file content (171 lines) | stat: -rw-r--r-- 5,649 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
/*
 * 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.
 * Copyright (c) 2004-2005 High Performance Computing Center Stuttgart, 
 *                         University of Stuttgart.  All rights reserved.
 * Copyright (c) 2004-2005 The Regents of the University of California.
 *                         All rights reserved.
 * Copyright (c) 2007      Los Alamos National Security, LLC.  All rights
 *                         reserved. 
 * Copyright (c) 2006-2007 Cisco Systems, Inc.  All rights reserved.
 * $COPYRIGHT$
 * 
 * Additional copyrights may follow
 * 
 * $HEADER$
 */

#ifndef OMPI_RUNTIME_PARAMS_H
#define OMPI_RUNTIME_PARAMS_H
#if defined(c_plusplus) || defined(__cplusplus)
extern "C" {
#endif

/*
 * Global variables
 */

/**
 * Whether or not to check the parameters of top-level MPI API
 * functions or not.
 *
 * This variable should never be checked directly; the macro
 * MPI_PARAM_CHECK should be used instead.  This allows multiple
 * levels of MPI function parameter checking:
 *
 * #- Disable all parameter checking at configure/compile time
 * #- Enable all parameter checking at configure/compile time
 * #- Disable all parameter checking at run time
 * #- Enable all parameter checking at run time
 *
 * Hence, the MPI_PARAM_CHECK macro will either be "0", "1", or
 * "ompi_mpi_param_check".
 */
OMPI_DECLSPEC extern bool ompi_mpi_param_check;

/**
 * Whether or not to check for MPI handle leaks during MPI_FINALIZE.
 * If enabled, each MPI handle type will display a summary of the
 * handles that are still allocated during MPI_FINALIZE.
 *
 * This is good debugging for user applications to find out if they
 * are inadvertantly orphaning MPI handles.
 */
OMPI_DECLSPEC extern bool ompi_debug_show_handle_leaks;

/**
 * Whether or not to actually free MPI handles when their
 * corresponding destructor is invoked.  If enabled, Open MPI will not
 * free handles, but will rather simply mark them as "freed".  Any
 * attempt to use them will result in an MPI exception.
 *
 * This is good debugging for user applications to find out if they
 * are inadvertantly using MPI handles after they have been freed.
 */
OMPI_DECLSPEC extern bool ompi_debug_no_free_handles;

/**
 * Whether or not to print MCA parameters on MPI_INIT
 *
 * This is good debugging for user applications to see exactly which 
 * MCA parameters are being used in the current program execution.
 */
OMPI_DECLSPEC extern bool ompi_mpi_show_mca_params;

/**
 * Whether or not to print the MCA parameters to a file or to stdout
 *
 * If this argument is set then it is used when parameters are dumped
 * when the mpi_show_mca_params is set.
 */
OMPI_DECLSPEC extern char * ompi_mpi_show_mca_params_file;

/**
 * If this value is true, assume that this ORTE job is the only job
 * running on the nodes that have been allocated to it, and bind
 * processes to processors (starting with processor 0).
 */
OMPI_DECLSPEC extern bool ompi_mpi_paffinity_alone;

    /**
     * Whether we should keep the string hostnames of all the MPI
     * process peers around or not (eats up a good bit of memory).
     */
    OMPI_DECLSPEC extern bool ompi_mpi_keep_peer_hostnames;

    /**
     * Whether an MPI_ABORT should print out a stack trace or not.
     */
    OMPI_DECLSPEC extern bool ompi_mpi_abort_print_stack;

    /**
     * Whether we should force all connections to be created during
     * MPI_INIT (vs. potentially making all the connection lazily upon
     * first communication with an MPI peer process).
     */
    OMPI_DECLSPEC extern bool ompi_mpi_preconnect_all;

    /**
     * should we wireup the oob completely during MPI_INIT?
     */
    OMPI_DECLSPEC extern bool ompi_mpi_preconnect_oob;

    /**
     * Whether  MPI_ABORT  should  print  out an  identifying  message
     * (e.g., hostname  and PID)  and loop waiting  for a  debugger to
     * attach.  The value of the integer is how many seconds to wait:
     *
     * 0 = do not print the message and do not loop
     * negative value = print the message and loop forever
     * positive value = print the message and delay for that many seconds
     */
    OMPI_DECLSPEC extern int ompi_mpi_abort_delay;

    /**
     * Whether to use the "leave pinned" protocol or not.
     */
    OMPI_DECLSPEC extern bool ompi_mpi_leave_pinned;

    /**
     * Whether to use the "leave pinned pipeline" protocol or not.
     */
    OMPI_DECLSPEC extern bool ompi_mpi_leave_pinned_pipeline;

    /** 
     * Do we want a warning if MPI_THREAD_MULTIPLE is used? 
     */
    OMPI_DECLSPEC extern bool ompi_mpi_warn_if_thread_multiple;

    /** 
     * Do we want a warning if progress threads are used?
     */
    OMPI_DECLSPEC extern bool ompi_mpi_warn_if_progress_threads;

   /**
     * Register MCA parameters used by the MPI layer.
     *
     * @returns OMPI_SUCCESS
     *
     * Registers several MCA parameters and initializes corresponding
     * global variables to the values obtained from the MCA system.
     */
OMPI_DECLSPEC int ompi_mpi_register_params(void);


    /**
     * Display all MCA parameters used 
     * 
     * @returns OMPI_SUCCESS
     *
     * Displays in key = value format
     */
    int ompi_show_all_mca_params(int32_t, int, char *);
#if defined(c_plusplus) || defined(__cplusplus)
}
#endif

#endif /* OMPI_RUNTIME_PARAMS_H */