1 // -*- c++ -*-
2 //
3 // Copyright (c) 2004-2005 The Trustees of Indiana University and Indiana
4 //                         University Research and Technology
5 //                         Corporation.  All rights reserved.
6 // Copyright (c) 2004-2005 The University of Tennessee and The University
7 //                         of Tennessee Research Foundation.  All rights
8 //                         reserved.
9 // Copyright (c) 2004-2005 High Performance Computing Center Stuttgart,
10 //                         University of Stuttgart.  All rights reserved.
11 // Copyright (c) 2004-2005 The Regents of the University of California.
12 //                         All rights reserved.
13 // Copyright (c) 2008      Cisco Systems, Inc.  All rights reserved.
14 // Copyright (c) 2011      FUJITSU LIMITED.  All rights reserved.
15 // $COPYRIGHT$
16 //
17 // Additional copyrights may follow
18 //
19 // $HEADER$
20 //
21 
22 //
23 // Point-to-Point Communication
24 //
25 
26 void
27 Attach_buffer(void* buffer, int size);
28 
29 int
30 Detach_buffer(void*& buffer);
31 
32 //
33 // Process Topologies
34 //
35 
36 void
37 Compute_dims(int nnodes, int ndims, int dims[]);
38 
39 //
40 // Environmental Inquiry
41 //
42 
43 int
44 Add_error_class();
45 
46 int
47 Add_error_code(int errorclass);
48 
49 void
50 Add_error_string(int errorcode, const char* string);
51 
52 void
53 Get_processor_name(char* name, int& resultlen);
54 
55 void
56 Get_error_string(int errorcode, char* string, int& resultlen);
57 
58 int
59 Get_error_class(int errorcode);
60 
61 double
62 Wtime();
63 
64 double
65 Wtick();
66 
67 void
68 Init(int& argc, char**& argv);
69 
70 void
71 Init();
72 
73 OMPI_DECLSPEC void
74 InitializeIntercepts();
75 
76 void
77 Real_init();
78 
79 void
80 Finalize();
81 
82 bool
83 Is_initialized();
84 
85 bool
86 Is_finalized();
87 
88 //
89 // External Interfaces
90 //
91 
92 int
93 Init_thread(int &argc, char**&argv, int required);
94 
95 int
96 Init_thread(int required);
97 
98 bool
99 Is_thread_main();
100 
101 int
102 Query_thread();
103 
104 
105 //
106 // Miscellany
107 //
108 
109 
110 void*
111 Alloc_mem(Aint size, const Info& info);
112 
113 
114 void
115 Free_mem(void* base);
116 
117 //
118 // Process Creation
119 //
120 
121 void
122 Close_port(const char* port_name);
123 
124 
125 void
126 Lookup_name(const char* service_name, const Info& info, char* port_name);
127 
128 
129 void
130 Open_port(const Info& info, char* port_name);
131 
132 
133 void
134 Publish_name(const char* service_name, const Info& info,
135 	     const char* port_name);
136 
137 void
138 Unpublish_name(const char* service_name, const Info& info,
139 	       const char* port_name);
140 
141 //
142 // Profiling
143 //
144 
145 void
146 Pcontrol(const int level, ...);
147 
148 void
149 Get_version(int& version, int& subversion);
150 
151 MPI::Aint
152 Get_address(void* location);
153 
154 
155 
156 
157