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$ |
---|
15 | // |
---|
16 | // Additional copyrights may follow |
---|
17 | // |
---|
18 | // $HEADER$ |
---|
19 | // |
---|
20 | |
---|
21 | // |
---|
22 | // Point-to-Point Communication |
---|
23 | // |
---|
24 | |
---|
25 | void |
---|
26 | Attach_buffer(void* buffer, int size); |
---|
27 | |
---|
28 | int |
---|
29 | Detach_buffer(void*& buffer); |
---|
30 | |
---|
31 | // |
---|
32 | // Process Topologies |
---|
33 | // |
---|
34 | |
---|
35 | void |
---|
36 | Compute_dims(int nnodes, int ndims, int dims[]); |
---|
37 | |
---|
38 | // |
---|
39 | // Environmental Inquiry |
---|
40 | // |
---|
41 | |
---|
42 | void |
---|
43 | Get_processor_name(char* name, int& resultlen); |
---|
44 | |
---|
45 | void |
---|
46 | Get_error_string(int errorcode, char* string, int& resultlen); |
---|
47 | |
---|
48 | int |
---|
49 | Get_error_class(int errorcode); |
---|
50 | |
---|
51 | double |
---|
52 | Wtime(); |
---|
53 | |
---|
54 | double |
---|
55 | Wtick(); |
---|
56 | |
---|
57 | void |
---|
58 | Init(int& argc, char**& argv); |
---|
59 | |
---|
60 | void |
---|
61 | Init(); |
---|
62 | |
---|
63 | void |
---|
64 | InitializeIntercepts(); |
---|
65 | |
---|
66 | void |
---|
67 | Real_init(); |
---|
68 | |
---|
69 | void |
---|
70 | Finalize(); |
---|
71 | |
---|
72 | bool |
---|
73 | Is_initialized(); |
---|
74 | |
---|
75 | bool |
---|
76 | Is_finalized(); |
---|
77 | |
---|
78 | // |
---|
79 | // External Interfaces |
---|
80 | // |
---|
81 | |
---|
82 | int |
---|
83 | Init_thread(int &argc, char**&argv, int required); |
---|
84 | |
---|
85 | int |
---|
86 | Init_thread(int required); |
---|
87 | |
---|
88 | bool |
---|
89 | Is_thread_main(); |
---|
90 | |
---|
91 | int |
---|
92 | Query_thread(); |
---|
93 | |
---|
94 | |
---|
95 | // |
---|
96 | // Miscellany |
---|
97 | // |
---|
98 | |
---|
99 | |
---|
100 | void* |
---|
101 | Alloc_mem(Aint size, const Info& info); |
---|
102 | |
---|
103 | |
---|
104 | void |
---|
105 | Free_mem(void* base); |
---|
106 | |
---|
107 | // |
---|
108 | // Process Creation |
---|
109 | // |
---|
110 | |
---|
111 | void |
---|
112 | Close_port(const char* port_name); |
---|
113 | |
---|
114 | |
---|
115 | void |
---|
116 | Lookup_name(const char* service_name, const Info& info, char* port_name); |
---|
117 | |
---|
118 | |
---|
119 | void |
---|
120 | Open_port(const Info& info, char* port_name); |
---|
121 | |
---|
122 | |
---|
123 | void |
---|
124 | Publish_name(const char* service_name, const Info& info, |
---|
125 | const char* port_name); |
---|
126 | |
---|
127 | void |
---|
128 | Unpublish_name(const char* service_name, const Info& info, |
---|
129 | const char* port_name); |
---|
130 | |
---|
131 | // |
---|
132 | // Profiling |
---|
133 | // |
---|
134 | |
---|
135 | void |
---|
136 | Pcontrol(const int level, ...); |
---|
137 | |
---|
138 | void |
---|
139 | Get_version(int& version, int& subversion); |
---|
140 | |
---|
141 | MPI::Aint |
---|
142 | Get_address(void* location); |
---|
143 | |
---|
144 | |
---|
145 | |
---|
146 | |
---|