NewMadeleine

Documentation

« back to PM2 home.
nm_mpi_config.h
Go to the documentation of this file.
1/*
2 * NewMadeleine
3 * Copyright (C) 2006-2026 (see AUTHORS file)
4 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or (at
8 * your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful, but
11 * WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * General Public License for more details.
14 */
15
16
17#ifndef NM_MPI_CONFIG_H
18#define NM_MPI_CONFIG_H
19
27#define MPI_VERSION 4
28#define MPI_SUBVERSION 0
29
31#define MADMPI 1
32
43int MPI_Init(int *argc,
44 char ***argv);
45
56int MPI_Init_thread(int *argc,
57 char ***argv,
58 int required,
59 int *provided);
60
63int MPI_Query_thread(int*provided);
64
69int MPI_Initialized(int *flag);
70
76int MPI_Finalize(void);
77
82int MPI_Finalized(int*flag);
83
91 int errorcode);
92
101 int *resultlen);
102
108double MPI_Wtime(void);
109
114double MPI_Wtick(void);
115
125int MPI_Error_string(int errorcode,
126 char *string,
127 int *resultlen);
128
129
130int MPI_Error_class(int errorcode, int*errorclass);
131
132int MPI_Add_error_class(int*errorclass);
133
134int MPI_Add_error_code(int errorclass, int*errorcode);
135
136int MPI_Add_error_string(int errorcode, const char*string);
137
144int MPI_Get_version(int *version,
145 int *subversion);
146
153int MPI_Get_library_version(char*version, int*resultlen);
154
155int MPI_Pcontrol(const int level, ...);
156
158
160
162
164
166
168
170
171int MPI_Comm_call_errhandler(MPI_Comm comm, int errorcode);
172
179int MPI_Get_address(const void*location, MPI_Aint*address);
180
187int MPI_Address(void *location,
188 MPI_Aint *address);
189
193 MPI_Info info,
194 void*baseptr);
195
198int MPI_Free_mem(void*base);
199
200
205#endif /* NM_MPI_CONFIG_H */
int MPI_Free_mem(void *base)
Free memory allocated with MPI_Alloc_mem.
int MPI_Abort(MPI_Comm comm, int errorcode)
This routine makes a best attempt to abort all tasks in the group of comm.
int MPI_Error_string(int errorcode, char *string, int *resultlen)
Returns the error string associated with an error code or class.
int MPI_Comm_call_errhandler(MPI_Comm comm, int errorcode)
int MPI_Pcontrol(const int level,...)
int MPI_Get_address(const void *location, MPI_Aint *address)
Returns the byte address of location.
int MPI_Errhandler_get(MPI_Comm comm, MPI_Errhandler *errhandler)
int MPI_Query_thread(int *provided)
Return the level of thread support provided by the MPI library.
int MPI_Add_error_class(int *errorclass)
int MPI_Get_version(int *version, int *subversion)
Returns the version.
double MPI_Wtick(void)
Returns the resolution of MPI_Wtime() in seconds.
int MPI_Add_error_code(int errorclass, int *errorcode)
int MPI_Finalized(int *flag)
Indicates whether MPI_Finalize has been called.
int MPI_Get_processor_name(char *name, int *resultlen)
This routine returns the name of the processor on which it was called at the moment of the call.
int MPI_Init(int *argc, char ***argv)
This routine must be called before any other MPI routine.
int MPI_Finalize(void)
This routine must be called by each process before it exits.
int MPI_Comm_set_errhandler(MPI_Comm comm, MPI_Errhandler errhandler)
int MPI_Add_error_string(int errorcode, const char *string)
int MPI_Errhandler_free(MPI_Errhandler *errhandler)
int MPI_Errhandler_set(MPI_Comm comm, MPI_Errhandler errhandler)
int MPI_Address(void *location, MPI_Aint *address)
Returns the byte address of location.
int MPI_Alloc_mem(MPI_Aint size, MPI_Info info, void *baseptr)
Allocate memory for message passing.
int MPI_Init_thread(int *argc, char ***argv, int required, int *provided)
The following function may be used to initialize MPI, and initialize the MPI thread environment,...
int MPI_Errhandler_create(MPI_Handler_function *function, MPI_Errhandler *errhandler)
int MPI_Initialized(int *flag)
Indicates whether MPI_Init has been called.
int MPI_Comm_get_errhandler(MPI_Comm comm, MPI_Errhandler *errhandler)
int MPI_Comm_create_errhandler(MPI_Comm_errhandler_function *function, MPI_Errhandler *errhandler)
int MPI_Error_class(int errorcode, int *errorclass)
int MPI_Get_library_version(char *version, int *resultlen)
Returns the version of madmpi.
double MPI_Wtime(void)
Returns a floating-point number of seconds, representing elapsed wall-clock time since some time in t...
void() MPI_Comm_errhandler_function(MPI_Comm *, int *,...)
int MPI_Errhandler
nm_mpi_aint_t MPI_Aint
type that holds an address
int MPI_Comm
Communicator handle.
int MPI_Info
An info opaque object.
void() MPI_Handler_function(MPI_Comm *, int *,...)
nm_len_t size
size of the onsided data (not incuding target-side completion)