impi-devel 2021.17.1__py2.py3-none-manylinux_2_28_x86_64.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- impi_devel-2021.17.1.data/data/bin/mpicc +81 -0
- impi_devel-2021.17.1.data/data/bin/mpicxx +81 -0
- impi_devel-2021.17.1.data/data/bin/mpif77 +740 -0
- impi_devel-2021.17.1.data/data/bin/mpif90 +884 -0
- impi_devel-2021.17.1.data/data/bin/mpifc +81 -0
- impi_devel-2021.17.1.data/data/bin/mpigcc +683 -0
- impi_devel-2021.17.1.data/data/bin/mpigxx +687 -0
- impi_devel-2021.17.1.data/data/bin/mpiicc +42 -0
- impi_devel-2021.17.1.data/data/bin/mpiicpc +42 -0
- impi_devel-2021.17.1.data/data/bin/mpiicpx +573 -0
- impi_devel-2021.17.1.data/data/bin/mpiicx +582 -0
- impi_devel-2021.17.1.data/data/bin/mpiifort +46 -0
- impi_devel-2021.17.1.data/data/bin/mpiifx +738 -0
- impi_devel-2021.17.1.data/data/include/mpi/gfortran/10.2.0/mpi.mod +0 -0
- impi_devel-2021.17.1.data/data/include/mpi/gfortran/10.2.0/mpi_base.mod +0 -0
- impi_devel-2021.17.1.data/data/include/mpi/gfortran/10.2.0/mpi_constants.mod +0 -0
- impi_devel-2021.17.1.data/data/include/mpi/gfortran/10.2.0/mpi_sizeofs.mod +0 -0
- impi_devel-2021.17.1.data/data/include/mpi/gfortran/10.2.0/pmpi_base.mod +0 -0
- impi_devel-2021.17.1.data/data/include/mpi/gfortran/11.1.0/mpi.mod +0 -0
- impi_devel-2021.17.1.data/data/include/mpi/gfortran/11.1.0/mpi_base.mod +0 -0
- impi_devel-2021.17.1.data/data/include/mpi/gfortran/11.1.0/mpi_constants.mod +0 -0
- impi_devel-2021.17.1.data/data/include/mpi/gfortran/11.1.0/mpi_sizeofs.mod +0 -0
- impi_devel-2021.17.1.data/data/include/mpi/gfortran/11.1.0/pmpi_base.mod +0 -0
- impi_devel-2021.17.1.data/data/include/mpi/gfortran/12.4.0/mpi.mod +0 -0
- impi_devel-2021.17.1.data/data/include/mpi/gfortran/12.4.0/mpi_base.mod +0 -0
- impi_devel-2021.17.1.data/data/include/mpi/gfortran/12.4.0/mpi_constants.mod +0 -0
- impi_devel-2021.17.1.data/data/include/mpi/gfortran/12.4.0/mpi_sizeofs.mod +0 -0
- impi_devel-2021.17.1.data/data/include/mpi/gfortran/12.4.0/pmpi_base.mod +0 -0
- impi_devel-2021.17.1.data/data/include/mpi/gfortran/13.3.0/mpi.mod +0 -0
- impi_devel-2021.17.1.data/data/include/mpi/gfortran/13.3.0/mpi_base.mod +0 -0
- impi_devel-2021.17.1.data/data/include/mpi/gfortran/13.3.0/mpi_constants.mod +0 -0
- impi_devel-2021.17.1.data/data/include/mpi/gfortran/13.3.0/mpi_sizeofs.mod +0 -0
- impi_devel-2021.17.1.data/data/include/mpi/gfortran/13.3.0/pmpi_base.mod +0 -0
- impi_devel-2021.17.1.data/data/include/mpi/gfortran/14.2.0/mpi.mod +0 -0
- impi_devel-2021.17.1.data/data/include/mpi/gfortran/14.2.0/mpi_base.mod +0 -0
- impi_devel-2021.17.1.data/data/include/mpi/gfortran/14.2.0/mpi_constants.mod +0 -0
- impi_devel-2021.17.1.data/data/include/mpi/gfortran/14.2.0/mpi_sizeofs.mod +0 -0
- impi_devel-2021.17.1.data/data/include/mpi/gfortran/14.2.0/pmpi_base.mod +0 -0
- impi_devel-2021.17.1.data/data/include/mpi/gfortran/15.1.0/mpi.mod +0 -0
- impi_devel-2021.17.1.data/data/include/mpi/gfortran/15.1.0/mpi_base.mod +0 -0
- impi_devel-2021.17.1.data/data/include/mpi/gfortran/15.1.0/mpi_constants.mod +0 -0
- impi_devel-2021.17.1.data/data/include/mpi/gfortran/15.1.0/mpi_sizeofs.mod +0 -0
- impi_devel-2021.17.1.data/data/include/mpi/gfortran/15.1.0/pmpi_base.mod +0 -0
- impi_devel-2021.17.1.data/data/include/mpi/gfortran/7.1.0/mpi.mod +0 -0
- impi_devel-2021.17.1.data/data/include/mpi/gfortran/7.1.0/mpi_base.mod +0 -0
- impi_devel-2021.17.1.data/data/include/mpi/gfortran/7.1.0/mpi_constants.mod +0 -0
- impi_devel-2021.17.1.data/data/include/mpi/gfortran/7.1.0/mpi_sizeofs.mod +0 -0
- impi_devel-2021.17.1.data/data/include/mpi/gfortran/7.1.0/pmpi_base.mod +0 -0
- impi_devel-2021.17.1.data/data/include/mpi/gfortran/8.2.0/mpi.mod +0 -0
- impi_devel-2021.17.1.data/data/include/mpi/gfortran/8.2.0/mpi_base.mod +0 -0
- impi_devel-2021.17.1.data/data/include/mpi/gfortran/8.2.0/mpi_constants.mod +0 -0
- impi_devel-2021.17.1.data/data/include/mpi/gfortran/8.2.0/mpi_sizeofs.mod +0 -0
- impi_devel-2021.17.1.data/data/include/mpi/gfortran/8.2.0/pmpi_base.mod +0 -0
- impi_devel-2021.17.1.data/data/include/mpi/gfortran/9.1.0/mpi.mod +0 -0
- impi_devel-2021.17.1.data/data/include/mpi/gfortran/9.1.0/mpi_base.mod +0 -0
- impi_devel-2021.17.1.data/data/include/mpi/gfortran/9.1.0/mpi_constants.mod +0 -0
- impi_devel-2021.17.1.data/data/include/mpi/gfortran/9.1.0/mpi_sizeofs.mod +0 -0
- impi_devel-2021.17.1.data/data/include/mpi/gfortran/9.1.0/pmpi_base.mod +0 -0
- impi_devel-2021.17.1.data/data/include/mpi/ilp64/gfortran/10.2.0/mpi.mod +0 -0
- impi_devel-2021.17.1.data/data/include/mpi/ilp64/gfortran/10.2.0/mpi_base.mod +0 -0
- impi_devel-2021.17.1.data/data/include/mpi/ilp64/gfortran/10.2.0/mpi_constants.mod +0 -0
- impi_devel-2021.17.1.data/data/include/mpi/ilp64/gfortran/10.2.0/mpi_sizeofs.mod +0 -0
- impi_devel-2021.17.1.data/data/include/mpi/ilp64/gfortran/10.2.0/pmpi_base.mod +0 -0
- impi_devel-2021.17.1.data/data/include/mpi/ilp64/gfortran/11.1.0/mpi.mod +0 -0
- impi_devel-2021.17.1.data/data/include/mpi/ilp64/gfortran/11.1.0/mpi_base.mod +0 -0
- impi_devel-2021.17.1.data/data/include/mpi/ilp64/gfortran/11.1.0/mpi_constants.mod +0 -0
- impi_devel-2021.17.1.data/data/include/mpi/ilp64/gfortran/11.1.0/mpi_sizeofs.mod +0 -0
- impi_devel-2021.17.1.data/data/include/mpi/ilp64/gfortran/11.1.0/pmpi_base.mod +0 -0
- impi_devel-2021.17.1.data/data/include/mpi/ilp64/gfortran/12.4.0/mpi.mod +0 -0
- impi_devel-2021.17.1.data/data/include/mpi/ilp64/gfortran/12.4.0/mpi_base.mod +0 -0
- impi_devel-2021.17.1.data/data/include/mpi/ilp64/gfortran/12.4.0/mpi_constants.mod +0 -0
- impi_devel-2021.17.1.data/data/include/mpi/ilp64/gfortran/12.4.0/mpi_sizeofs.mod +0 -0
- impi_devel-2021.17.1.data/data/include/mpi/ilp64/gfortran/12.4.0/pmpi_base.mod +0 -0
- impi_devel-2021.17.1.data/data/include/mpi/ilp64/gfortran/13.3.0/mpi.mod +0 -0
- impi_devel-2021.17.1.data/data/include/mpi/ilp64/gfortran/13.3.0/mpi_base.mod +0 -0
- impi_devel-2021.17.1.data/data/include/mpi/ilp64/gfortran/13.3.0/mpi_constants.mod +0 -0
- impi_devel-2021.17.1.data/data/include/mpi/ilp64/gfortran/13.3.0/mpi_sizeofs.mod +0 -0
- impi_devel-2021.17.1.data/data/include/mpi/ilp64/gfortran/13.3.0/pmpi_base.mod +0 -0
- impi_devel-2021.17.1.data/data/include/mpi/ilp64/gfortran/14.2.0/mpi.mod +0 -0
- impi_devel-2021.17.1.data/data/include/mpi/ilp64/gfortran/14.2.0/mpi_base.mod +0 -0
- impi_devel-2021.17.1.data/data/include/mpi/ilp64/gfortran/14.2.0/mpi_constants.mod +0 -0
- impi_devel-2021.17.1.data/data/include/mpi/ilp64/gfortran/14.2.0/mpi_sizeofs.mod +0 -0
- impi_devel-2021.17.1.data/data/include/mpi/ilp64/gfortran/14.2.0/pmpi_base.mod +0 -0
- impi_devel-2021.17.1.data/data/include/mpi/ilp64/gfortran/15.1.0/mpi.mod +0 -0
- impi_devel-2021.17.1.data/data/include/mpi/ilp64/gfortran/15.1.0/mpi_base.mod +0 -0
- impi_devel-2021.17.1.data/data/include/mpi/ilp64/gfortran/15.1.0/mpi_constants.mod +0 -0
- impi_devel-2021.17.1.data/data/include/mpi/ilp64/gfortran/15.1.0/mpi_sizeofs.mod +0 -0
- impi_devel-2021.17.1.data/data/include/mpi/ilp64/gfortran/15.1.0/pmpi_base.mod +0 -0
- impi_devel-2021.17.1.data/data/include/mpi/ilp64/gfortran/7.1.0/mpi.mod +0 -0
- impi_devel-2021.17.1.data/data/include/mpi/ilp64/gfortran/7.1.0/mpi_base.mod +0 -0
- impi_devel-2021.17.1.data/data/include/mpi/ilp64/gfortran/7.1.0/mpi_constants.mod +0 -0
- impi_devel-2021.17.1.data/data/include/mpi/ilp64/gfortran/7.1.0/mpi_sizeofs.mod +0 -0
- impi_devel-2021.17.1.data/data/include/mpi/ilp64/gfortran/7.1.0/pmpi_base.mod +0 -0
- impi_devel-2021.17.1.data/data/include/mpi/ilp64/gfortran/8.2.0/mpi.mod +0 -0
- impi_devel-2021.17.1.data/data/include/mpi/ilp64/gfortran/8.2.0/mpi_base.mod +0 -0
- impi_devel-2021.17.1.data/data/include/mpi/ilp64/gfortran/8.2.0/mpi_constants.mod +0 -0
- impi_devel-2021.17.1.data/data/include/mpi/ilp64/gfortran/8.2.0/mpi_sizeofs.mod +0 -0
- impi_devel-2021.17.1.data/data/include/mpi/ilp64/gfortran/8.2.0/pmpi_base.mod +0 -0
- impi_devel-2021.17.1.data/data/include/mpi/ilp64/gfortran/9.1.0/mpi.mod +0 -0
- impi_devel-2021.17.1.data/data/include/mpi/ilp64/gfortran/9.1.0/mpi_base.mod +0 -0
- impi_devel-2021.17.1.data/data/include/mpi/ilp64/gfortran/9.1.0/mpi_constants.mod +0 -0
- impi_devel-2021.17.1.data/data/include/mpi/ilp64/gfortran/9.1.0/mpi_sizeofs.mod +0 -0
- impi_devel-2021.17.1.data/data/include/mpi/ilp64/gfortran/9.1.0/pmpi_base.mod +0 -0
- impi_devel-2021.17.1.data/data/include/mpi/ilp64/mpi.mod +0 -0
- impi_devel-2021.17.1.data/data/include/mpi/ilp64/mpi_base.mod +0 -0
- impi_devel-2021.17.1.data/data/include/mpi/ilp64/mpi_constants.mod +0 -0
- impi_devel-2021.17.1.data/data/include/mpi/ilp64/mpi_sizeofs.mod +0 -0
- impi_devel-2021.17.1.data/data/include/mpi/ilp64/pmpi_base.mod +0 -0
- impi_devel-2021.17.1.data/data/include/mpi/mpi.mod +0 -0
- impi_devel-2021.17.1.data/data/include/mpi/mpi_base.mod +0 -0
- impi_devel-2021.17.1.data/data/include/mpi/mpi_constants.mod +0 -0
- impi_devel-2021.17.1.data/data/include/mpi/mpi_f08.mod +0 -0
- impi_devel-2021.17.1.data/data/include/mpi/mpi_f08_callbacks.mod +0 -0
- impi_devel-2021.17.1.data/data/include/mpi/mpi_f08_compile_constants.mod +0 -0
- impi_devel-2021.17.1.data/data/include/mpi/mpi_f08_link_constants.mod +0 -0
- impi_devel-2021.17.1.data/data/include/mpi/mpi_f08_types.mod +0 -0
- impi_devel-2021.17.1.data/data/include/mpi/mpi_sizeofs.mod +0 -0
- impi_devel-2021.17.1.data/data/include/mpi/pmpi_base.mod +0 -0
- impi_devel-2021.17.1.data/data/include/mpi/pmpi_f08.mod +0 -0
- impi_devel-2021.17.1.data/data/include/mpi.h +4224 -0
- impi_devel-2021.17.1.data/data/include/mpi_abi.h +2057 -0
- impi_devel-2021.17.1.data/data/include/mpicxx.h +2796 -0
- impi_devel-2021.17.1.data/data/include/mpif.h +651 -0
- impi_devel-2021.17.1.data/data/include/mpio.h +767 -0
- impi_devel-2021.17.1.data/data/include/mpiof.h +113 -0
- impi_devel-2021.17.1.data/data/opt/mpi/bin/mpiptx +0 -0
- impi_devel-2021.17.1.data/data/share/doc/mpi/licensing/license.txt +72 -0
- impi_devel-2021.17.1.data/data/share/doc/mpi/licensing/third-party-programs.txt +1476 -0
- impi_devel-2021.17.1.dist-info/LICENSE.txt +25 -0
- impi_devel-2021.17.1.dist-info/METADATA +23 -0
- impi_devel-2021.17.1.dist-info/RECORD +133 -0
- impi_devel-2021.17.1.dist-info/WHEEL +6 -0
- impi_devel-2021.17.1.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,2796 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Copyright Intel Corporation.
|
|
3
|
+
|
|
4
|
+
This software and the related documents are Intel copyrighted materials, and
|
|
5
|
+
your use of them is governed by the express license under which they were
|
|
6
|
+
provided to you (License). Unless the License provides otherwise, you may
|
|
7
|
+
not use, modify, copy, publish, distribute, disclose or transmit this
|
|
8
|
+
software or the related documents without Intel's prior written permission.
|
|
9
|
+
|
|
10
|
+
This software and the related documents are provided as is, with no express
|
|
11
|
+
or implied warranties, other than those that are expressly stated in the
|
|
12
|
+
License.
|
|
13
|
+
*/
|
|
14
|
+
/*
|
|
15
|
+
* Copyright (C) by Argonne National Laboratory
|
|
16
|
+
|
|
17
|
+
COPYRIGHT
|
|
18
|
+
|
|
19
|
+
The following is a notice of limited availability of the code, and disclaimer
|
|
20
|
+
which must be included in the prologue of the code and in all source listings
|
|
21
|
+
of the code.
|
|
22
|
+
|
|
23
|
+
Copyright Notice
|
|
24
|
+
1998--2020, Argonne National Laboratory
|
|
25
|
+
|
|
26
|
+
Permission is hereby granted to use, reproduce, prepare derivative works, and
|
|
27
|
+
to redistribute to others. This software was authored by:
|
|
28
|
+
|
|
29
|
+
Mathematics and Computer Science Division
|
|
30
|
+
Argonne National Laboratory, Argonne IL 60439
|
|
31
|
+
|
|
32
|
+
(and)
|
|
33
|
+
|
|
34
|
+
Department of Computer Science
|
|
35
|
+
University of Illinois at Urbana-Champaign
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
GOVERNMENT LICENSE
|
|
39
|
+
|
|
40
|
+
Portions of this material resulted from work developed under a U.S.
|
|
41
|
+
Government Contract and are subject to the following license: the Government
|
|
42
|
+
is granted for itself and others acting on its behalf a paid-up, nonexclusive,
|
|
43
|
+
irrevocable worldwide license in this computer software to reproduce, prepare
|
|
44
|
+
derivative works, and perform publicly and display publicly.
|
|
45
|
+
|
|
46
|
+
DISCLAIMER
|
|
47
|
+
|
|
48
|
+
This computer code material was prepared, in part, as an account of work
|
|
49
|
+
sponsored by an agency of the United States Government. Neither the United
|
|
50
|
+
States, nor the University of Chicago, nor any of their employees, makes any
|
|
51
|
+
warranty express or implied, or assumes any legal liability or responsibility
|
|
52
|
+
for the accuracy, completeness, or usefulness of any information, apparatus,
|
|
53
|
+
product, or process disclosed, or represents that its use would not infringe
|
|
54
|
+
privately owned rights.
|
|
55
|
+
|
|
56
|
+
EXTERNAL CONTRIBUTIONS
|
|
57
|
+
|
|
58
|
+
Portions of this code have been contributed under the above license by:
|
|
59
|
+
|
|
60
|
+
* Intel Corporation
|
|
61
|
+
* Cray
|
|
62
|
+
* IBM Corporation
|
|
63
|
+
* Microsoft Corporation
|
|
64
|
+
* Mellanox Technologies Ltd.
|
|
65
|
+
* DataDirect Networks.
|
|
66
|
+
* Oak Ridge National Laboratory
|
|
67
|
+
* Sun Microsystems, Lustre group
|
|
68
|
+
* Dolphin Interconnect Solutions Inc.
|
|
69
|
+
* Institut Polytechnique de Bordeaux
|
|
70
|
+
*
|
|
71
|
+
*
|
|
72
|
+
* This file is automatically generated by buildiface -nosep -initfile=./cxx.vlist
|
|
73
|
+
* DO NOT EDIT
|
|
74
|
+
*/
|
|
75
|
+
/* style: c++ header */
|
|
76
|
+
|
|
77
|
+
#ifdef MPI
|
|
78
|
+
#error "You cannot define MPI; that name is reserved for the MPI namespace"
|
|
79
|
+
#endif
|
|
80
|
+
|
|
81
|
+
/*
|
|
82
|
+
* Because the API is defined, some methods have parameters that are
|
|
83
|
+
* not used. The following definition allows us to suppress warnings
|
|
84
|
+
* about unused arguments in methods when -Wall -Wextra are specified.
|
|
85
|
+
* this definition is removed at the end of this file.
|
|
86
|
+
*/
|
|
87
|
+
#ifdef MPIR_ARGUNUSED
|
|
88
|
+
#error MPIR_ARGUNUSED defined
|
|
89
|
+
#endif
|
|
90
|
+
#if defined(__GNUC__) && __GNUC__ >= 4
|
|
91
|
+
#define MPIR_ARGUNUSED __attribute__((unused))
|
|
92
|
+
#else
|
|
93
|
+
#define MPIR_ARGUNUSED
|
|
94
|
+
#endif
|
|
95
|
+
// There is a name conflict between stdio.h and iostream (or iostream.h)
|
|
96
|
+
// and the MPI C++ binding with respect to the names SEEK_SET, SEEK_CUR,
|
|
97
|
+
// and SEEK_END. MPI wants these in the MPI namespace, but stdio.h,
|
|
98
|
+
// iostream, or iostream.h will #define these to integer values.
|
|
99
|
+
// #undef'ing these can cause obscure problems.
|
|
100
|
+
#ifndef MPICH_IGNORE_CXX_SEEK
|
|
101
|
+
|
|
102
|
+
// MPICH_DONT_INCLUDE_STDIO_H is another escape hatch for us, just like
|
|
103
|
+
// MPICH_IGNORE_CXX_SEEK. If we encounter a wacky environment or user in the
|
|
104
|
+
// wild that does not want our workaround and/or the stdio.h header, then we can
|
|
105
|
+
// offer them a way out.
|
|
106
|
+
#ifndef MPICH_DONT_INCLUDE_STDIO_H
|
|
107
|
+
// ensure that we have SEEK_* defined
|
|
108
|
+
# include <stdio.h>
|
|
109
|
+
#endif
|
|
110
|
+
|
|
111
|
+
enum MPIR_Dummy_seek_type {
|
|
112
|
+
MPIR_DUMMY_SEEK_COMMA_VAL = -1 // permits cleaner comma logic
|
|
113
|
+
#ifdef SEEK_SET
|
|
114
|
+
, MPIR_SEEK_SET = SEEK_SET
|
|
115
|
+
# undef SEEK_SET
|
|
116
|
+
, SEEK_SET = MPIR_SEEK_SET
|
|
117
|
+
#endif
|
|
118
|
+
#ifdef SEEK_CUR
|
|
119
|
+
, MPIR_SEEK_CUR = SEEK_CUR
|
|
120
|
+
# undef SEEK_CUR
|
|
121
|
+
, SEEK_CUR = MPIR_SEEK_CUR
|
|
122
|
+
#endif
|
|
123
|
+
#ifdef SEEK_END
|
|
124
|
+
, MPIR_SEEK_END = SEEK_END
|
|
125
|
+
# undef SEEK_END
|
|
126
|
+
, SEEK_END = MPIR_SEEK_END
|
|
127
|
+
#endif
|
|
128
|
+
#ifdef LOCK_SHARED
|
|
129
|
+
, MPIR_LOCK_SHARED = LOCK_SHARED
|
|
130
|
+
# undef LOCK_SHARED
|
|
131
|
+
, LOCK_SHARED = MPIR_LOCK_SHARED
|
|
132
|
+
#endif
|
|
133
|
+
};
|
|
134
|
+
|
|
135
|
+
#endif // MPICH_IGNORE_CXX_SEEK
|
|
136
|
+
namespace MPI {
|
|
137
|
+
#if 1
|
|
138
|
+
#define MPIX_CALLREF( _objptr, fnc ) \
|
|
139
|
+
{ int err = fnc; if (err) { (_objptr)->Call_errhandler( err ); }}
|
|
140
|
+
#define MPIX_CALLOBJ( _obj, fnc ) \
|
|
141
|
+
{ int err = fnc; if (err) { (_obj).Call_errhandler( err ); }}
|
|
142
|
+
#define MPIX_CALLWORLD( fnc ) \
|
|
143
|
+
{ int err = fnc ; if (err) MPIR_Call_world_errhand( err ); }
|
|
144
|
+
extern void MPIR_Call_world_errhand( int );
|
|
145
|
+
#else
|
|
146
|
+
#define MPIX_CALLREF( _objptr, fnc ) (void)fnc
|
|
147
|
+
#define MPIX_CALLOBJ( _obj, fnc ) (void)fnc
|
|
148
|
+
#define MPIX_CALLWORLD( fnc ) (void)fnc
|
|
149
|
+
#endif
|
|
150
|
+
|
|
151
|
+
// Typedefs for basic int types
|
|
152
|
+
typedef MPI_Offset Offset;
|
|
153
|
+
typedef MPI_Aint Aint;
|
|
154
|
+
typedef MPI_Fint Fint;
|
|
155
|
+
|
|
156
|
+
// Special internal routine
|
|
157
|
+
void MPIR_CXX_InitDatatypeNames( void );
|
|
158
|
+
|
|
159
|
+
// Forward class declarations
|
|
160
|
+
class Comm;
|
|
161
|
+
class Nullcomm;
|
|
162
|
+
class Intercomm;
|
|
163
|
+
class Intracomm;
|
|
164
|
+
class Cartcomm;
|
|
165
|
+
class Graphcomm;
|
|
166
|
+
class File;
|
|
167
|
+
|
|
168
|
+
// base (classless) routines
|
|
169
|
+
extern int Detach_buffer( void *&v1 ) ;
|
|
170
|
+
extern bool Is_initialized( void ) ;
|
|
171
|
+
extern void Get_processor_name( char * v1, int &v2 ) ;
|
|
172
|
+
extern void Get_error_string( int v1, char * v2, int &v3 ) ;
|
|
173
|
+
extern void Compute_dims( int v1, int v2, int v3[] ) ;
|
|
174
|
+
extern void Get_version( int &v1, int &v2 ) ;
|
|
175
|
+
extern void Finalize( void ) ;
|
|
176
|
+
extern void Pcontrol( const int v1, ... ) ;
|
|
177
|
+
extern void Attach_buffer( void * v1, int v2 ) ;
|
|
178
|
+
extern int Get_error_class( int v1 ) ;
|
|
179
|
+
extern Intracomm COMM_WORLD;
|
|
180
|
+
extern File FILE_NULL;
|
|
181
|
+
|
|
182
|
+
class Exception {
|
|
183
|
+
|
|
184
|
+
protected:
|
|
185
|
+
int the_real_exception;
|
|
186
|
+
|
|
187
|
+
public:
|
|
188
|
+
// new/delete
|
|
189
|
+
|
|
190
|
+
inline Exception(int obj) : the_real_exception(obj) {}
|
|
191
|
+
inline Exception(void) : the_real_exception(0) {}
|
|
192
|
+
|
|
193
|
+
virtual ~Exception() {}
|
|
194
|
+
// copy/assignment
|
|
195
|
+
|
|
196
|
+
Exception(const Exception &obj) : the_real_exception(obj.the_real_exception){}
|
|
197
|
+
|
|
198
|
+
Exception& operator=(const Exception &obj) {
|
|
199
|
+
the_real_exception = obj.the_real_exception; return *this; }
|
|
200
|
+
|
|
201
|
+
// logical
|
|
202
|
+
bool operator== (const Exception &obj) {
|
|
203
|
+
return (the_real_exception == obj.the_real_exception); }
|
|
204
|
+
bool operator!= (const Exception &obj) {
|
|
205
|
+
return (the_real_exception != obj.the_real_exception); }
|
|
206
|
+
// C/C++ cast and assignment
|
|
207
|
+
inline operator int*() { return &the_real_exception; }
|
|
208
|
+
inline operator int() const { return the_real_exception; }
|
|
209
|
+
Exception& operator=(const int& obj) {
|
|
210
|
+
the_real_exception = obj; return *this; }
|
|
211
|
+
|
|
212
|
+
protected:
|
|
213
|
+
char the_error_message[MPI_MAX_ERROR_STRING];
|
|
214
|
+
public:
|
|
215
|
+
int Get_error_code(void) { return the_real_exception; }
|
|
216
|
+
int Get_error_class(void) { return MPI::Get_error_class(the_real_exception); }
|
|
217
|
+
const char *Get_error_string(void)
|
|
218
|
+
{
|
|
219
|
+
int len;
|
|
220
|
+
MPI_Error_string(the_real_exception, the_error_message, &len);
|
|
221
|
+
return the_error_message;
|
|
222
|
+
}
|
|
223
|
+
};
|
|
224
|
+
|
|
225
|
+
class Datatype {
|
|
226
|
+
friend class Comm;
|
|
227
|
+
friend class Status;
|
|
228
|
+
friend class Intracomm;
|
|
229
|
+
friend class Intercomm;
|
|
230
|
+
friend class Win;
|
|
231
|
+
friend class File;
|
|
232
|
+
friend class Op;
|
|
233
|
+
|
|
234
|
+
protected:
|
|
235
|
+
MPI_Datatype the_real_datatype;
|
|
236
|
+
|
|
237
|
+
public:
|
|
238
|
+
// new/delete
|
|
239
|
+
|
|
240
|
+
inline Datatype(MPI_Datatype obj) : the_real_datatype(obj) {}
|
|
241
|
+
inline Datatype(void) : the_real_datatype(MPI_DATATYPE_NULL) {}
|
|
242
|
+
|
|
243
|
+
virtual ~Datatype() {}
|
|
244
|
+
// copy/assignment
|
|
245
|
+
|
|
246
|
+
Datatype(const Datatype &obj) : the_real_datatype(obj.the_real_datatype){}
|
|
247
|
+
|
|
248
|
+
Datatype& operator=(const Datatype &obj) {
|
|
249
|
+
the_real_datatype = obj.the_real_datatype; return *this; }
|
|
250
|
+
|
|
251
|
+
// logical
|
|
252
|
+
bool operator== (const Datatype &obj) {
|
|
253
|
+
return (the_real_datatype == obj.the_real_datatype); }
|
|
254
|
+
bool operator!= (const Datatype &obj) {
|
|
255
|
+
return (the_real_datatype != obj.the_real_datatype); }
|
|
256
|
+
// C/C++ cast and assignment
|
|
257
|
+
inline operator MPI_Datatype*() { return &the_real_datatype; }
|
|
258
|
+
inline operator MPI_Datatype() const { return the_real_datatype; }
|
|
259
|
+
Datatype& operator=(const MPI_Datatype& obj) {
|
|
260
|
+
the_real_datatype = obj; return *this; }
|
|
261
|
+
virtual void Commit( void )
|
|
262
|
+
{
|
|
263
|
+
MPIX_CALLWORLD( MPI_Type_commit( (MPI_Datatype *) &the_real_datatype ));
|
|
264
|
+
}
|
|
265
|
+
virtual void Free( void )
|
|
266
|
+
{
|
|
267
|
+
MPIX_CALLWORLD( MPI_Type_free( (MPI_Datatype *) &the_real_datatype ));
|
|
268
|
+
}
|
|
269
|
+
virtual Datatype Create_indexed( int v1, const int v2[], const int v3[] ) const
|
|
270
|
+
{
|
|
271
|
+
Datatype v5;
|
|
272
|
+
MPIX_CALLWORLD( MPI_Type_indexed( v1, (const int *)v2, (const int *)v3, (MPI_Datatype) the_real_datatype, &(v5.the_real_datatype) ));
|
|
273
|
+
return v5;
|
|
274
|
+
}
|
|
275
|
+
virtual Datatype Create_contiguous( int v1 ) const
|
|
276
|
+
{
|
|
277
|
+
Datatype v3;
|
|
278
|
+
MPIX_CALLWORLD( MPI_Type_contiguous( v1, (MPI_Datatype) the_real_datatype, &(v3.the_real_datatype) ));
|
|
279
|
+
return v3;
|
|
280
|
+
}
|
|
281
|
+
virtual Datatype Create_vector( int v1, int v2, int v3 ) const
|
|
282
|
+
{
|
|
283
|
+
Datatype v5;
|
|
284
|
+
MPIX_CALLWORLD( MPI_Type_vector( v1, v2, v3, (MPI_Datatype) the_real_datatype, &(v5.the_real_datatype) ));
|
|
285
|
+
return v5;
|
|
286
|
+
}
|
|
287
|
+
static Datatype Create_struct( int v1, int v2[], Aint v3[], const Datatype v4[] )
|
|
288
|
+
{
|
|
289
|
+
Datatype v5;
|
|
290
|
+
MPI_Datatype *l4 = new MPI_Datatype[(unsigned long)v1];
|
|
291
|
+
{
|
|
292
|
+
int i4;
|
|
293
|
+
for (i4=0;i4<v1;i4++) {
|
|
294
|
+
l4[i4] = v4[i4].the_real_datatype;
|
|
295
|
+
}
|
|
296
|
+
}
|
|
297
|
+
MPIX_CALLWORLD( MPI_Type_create_struct( v1, (const int *)v2, (const MPI_Aint *)v3, l4, &(v5.the_real_datatype) ));
|
|
298
|
+
delete[] l4;
|
|
299
|
+
return v5;
|
|
300
|
+
}
|
|
301
|
+
virtual int Pack_size( int v1, const Comm &v3 ) const;
|
|
302
|
+
virtual void Pack( const void * v1, int v2, void * v4, int v5, int &v6, const Comm &v7 ) const;
|
|
303
|
+
virtual int Get_size( void ) const
|
|
304
|
+
{
|
|
305
|
+
int v2;
|
|
306
|
+
MPIX_CALLWORLD( MPI_Type_size( (MPI_Datatype) the_real_datatype, &v2 ));
|
|
307
|
+
return v2;
|
|
308
|
+
}
|
|
309
|
+
virtual void Get_envelope( int &v2, int &v3, int &v4, int &v5 ) const
|
|
310
|
+
{
|
|
311
|
+
MPIX_CALLWORLD( MPI_Type_get_envelope( (MPI_Datatype) the_real_datatype, &v2, &v3, &v4, &v5 ));
|
|
312
|
+
}
|
|
313
|
+
virtual Datatype Create_hvector( int v1, int v2, Aint v3 ) const
|
|
314
|
+
{
|
|
315
|
+
Datatype v5;
|
|
316
|
+
MPIX_CALLWORLD( MPI_Type_create_hvector( v1, v2, v3, (MPI_Datatype) the_real_datatype, &(v5.the_real_datatype) ));
|
|
317
|
+
return v5;
|
|
318
|
+
}
|
|
319
|
+
static Datatype Match_size( int v1, int v2 )
|
|
320
|
+
{
|
|
321
|
+
Datatype v3;
|
|
322
|
+
MPIX_CALLWORLD( MPI_Type_match_size( v1, v2, &(v3.the_real_datatype) ));
|
|
323
|
+
return v3;
|
|
324
|
+
}
|
|
325
|
+
virtual Datatype Create_resized( const Aint v2, const Aint v3 ) const
|
|
326
|
+
{
|
|
327
|
+
Datatype v4;
|
|
328
|
+
MPIX_CALLWORLD( MPI_Type_create_resized( (MPI_Datatype) the_real_datatype, (MPI_Aint)v2, (MPI_Aint)v3, &(v4.the_real_datatype) ));
|
|
329
|
+
return v4;
|
|
330
|
+
}
|
|
331
|
+
virtual Datatype Create_indexed_block( int v1, int v2, const int v3[] ) const
|
|
332
|
+
{
|
|
333
|
+
Datatype v5;
|
|
334
|
+
MPIX_CALLWORLD( MPI_Type_create_indexed_block( v1, v2, (const int *)v3, (MPI_Datatype) the_real_datatype, &(v5.the_real_datatype) ));
|
|
335
|
+
return v5;
|
|
336
|
+
}
|
|
337
|
+
virtual Aint Pack_external_size( const char * v1, int v2 ) const
|
|
338
|
+
{
|
|
339
|
+
MPI_Aint v4;
|
|
340
|
+
MPIX_CALLWORLD( MPI_Pack_external_size( v1, v2, (MPI_Datatype) the_real_datatype, &v4 ));
|
|
341
|
+
return v4;
|
|
342
|
+
}
|
|
343
|
+
Datatype Dup( void ) const
|
|
344
|
+
{
|
|
345
|
+
Datatype v2;
|
|
346
|
+
MPIX_CALLWORLD( MPI_Type_dup( (MPI_Datatype) the_real_datatype, &(v2.the_real_datatype) ));
|
|
347
|
+
return v2;
|
|
348
|
+
}
|
|
349
|
+
virtual Datatype Create_hindexed( int v1, const int v2[], const Aint v3[] ) const
|
|
350
|
+
{
|
|
351
|
+
Datatype v5;
|
|
352
|
+
MPIX_CALLWORLD( MPI_Type_create_hindexed( v1, (const int *)v2, (const MPI_Aint *)v3, (MPI_Datatype) the_real_datatype, &(v5.the_real_datatype) ));
|
|
353
|
+
return v5;
|
|
354
|
+
}
|
|
355
|
+
virtual bool Get_attr( int v2, void * v3 ) const
|
|
356
|
+
{
|
|
357
|
+
int v4;
|
|
358
|
+
MPIX_CALLWORLD( MPI_Type_get_attr( (MPI_Datatype) the_real_datatype, v2, v3, &v4 ));
|
|
359
|
+
return v4!= 0;
|
|
360
|
+
}
|
|
361
|
+
virtual void Get_true_extent( Aint & v2, Aint & v3 ) const
|
|
362
|
+
{
|
|
363
|
+
MPIX_CALLWORLD( MPI_Type_get_true_extent( (MPI_Datatype) the_real_datatype, &v2, &v3 ));
|
|
364
|
+
}
|
|
365
|
+
virtual Datatype Create_darray( int v1, int v2, int v3, const int v4[], const int v5[], const int v6[], const int v7[], int v8 ) const
|
|
366
|
+
{
|
|
367
|
+
Datatype v10;
|
|
368
|
+
MPIX_CALLWORLD( MPI_Type_create_darray( v1, v2, v3, (const int *)v4, (const int *)v5, (const int *)v6, (const int *)v7, v8, (MPI_Datatype) the_real_datatype, &(v10.the_real_datatype) ));
|
|
369
|
+
return v10;
|
|
370
|
+
}
|
|
371
|
+
static Datatype Create_f90_real( int v1, int v2 )
|
|
372
|
+
{
|
|
373
|
+
Datatype v3;
|
|
374
|
+
MPIX_CALLWORLD( MPI_Type_create_f90_real( v1, v2, &(v3.the_real_datatype) ));
|
|
375
|
+
return v3;
|
|
376
|
+
}
|
|
377
|
+
virtual void Get_contents( int v2, int v3, int v4, int v5[], Aint v6[], Datatype v7[] ) const
|
|
378
|
+
{
|
|
379
|
+
MPI_Datatype *l7 = new MPI_Datatype[(unsigned long)v4];
|
|
380
|
+
MPIX_CALLWORLD( MPI_Type_get_contents( (MPI_Datatype) the_real_datatype, v2, v3, v4, v5, v6, l7 ));
|
|
381
|
+
{
|
|
382
|
+
int i7;
|
|
383
|
+
for (i7=0;i7<v4;i7++) {
|
|
384
|
+
v7[i7].the_real_datatype = l7[i7];
|
|
385
|
+
}
|
|
386
|
+
delete[] l7;
|
|
387
|
+
}
|
|
388
|
+
}
|
|
389
|
+
virtual void Set_attr( int v2, const void * v3 )
|
|
390
|
+
{
|
|
391
|
+
MPIX_CALLWORLD( MPI_Type_set_attr( (MPI_Datatype) the_real_datatype, v2, (void *)v3 ));
|
|
392
|
+
}
|
|
393
|
+
virtual void Set_name( const char * v2 )
|
|
394
|
+
{
|
|
395
|
+
MPIX_CALLWORLD( MPI_Type_set_name( (MPI_Datatype) the_real_datatype, (const char *)v2 ));
|
|
396
|
+
}
|
|
397
|
+
static Datatype Create_f90_complex( int v1, int v2 )
|
|
398
|
+
{
|
|
399
|
+
Datatype v3;
|
|
400
|
+
MPIX_CALLWORLD( MPI_Type_create_f90_complex( v1, v2, &(v3.the_real_datatype) ));
|
|
401
|
+
return v3;
|
|
402
|
+
}
|
|
403
|
+
virtual Datatype Create_subarray( int v1, const int v2[], const int v3[], const int v4[], const int v5 ) const
|
|
404
|
+
{
|
|
405
|
+
Datatype v7;
|
|
406
|
+
MPIX_CALLWORLD( MPI_Type_create_subarray( v1, v2, (const int *)v3, (const int *)v4, (int)v5, (MPI_Datatype) the_real_datatype, &(v7.the_real_datatype) ));
|
|
407
|
+
return v7;
|
|
408
|
+
}
|
|
409
|
+
virtual void Unpack_external( const char v1[], const void * v2, const Aint v3, Aint & v4, void * v5, int v6 ) const
|
|
410
|
+
{
|
|
411
|
+
MPIX_CALLWORLD( MPI_Unpack_external( v1, (const void *)v2, (MPI_Aint)v3, &v4, v5, v6, (MPI_Datatype) the_real_datatype ));
|
|
412
|
+
}
|
|
413
|
+
static void Free_keyval( int &v1 )
|
|
414
|
+
{
|
|
415
|
+
MPIX_CALLWORLD( MPI_Type_free_keyval( &v1 ));
|
|
416
|
+
}
|
|
417
|
+
static Datatype Create_struct( int v1, const int v2[], const Aint v3[], const Datatype v4[] )
|
|
418
|
+
{
|
|
419
|
+
Datatype v5;
|
|
420
|
+
MPI_Datatype *l4 = new MPI_Datatype[(unsigned long)v1];
|
|
421
|
+
{
|
|
422
|
+
int i4;
|
|
423
|
+
for (i4=0;i4<v1;i4++) {
|
|
424
|
+
l4[i4] = v4[i4].the_real_datatype;
|
|
425
|
+
}
|
|
426
|
+
}
|
|
427
|
+
MPIX_CALLWORLD( MPI_Type_create_struct( v1, (const int *)v2, (const MPI_Aint *)v3, l4, &(v5.the_real_datatype) ));
|
|
428
|
+
delete[] l4;
|
|
429
|
+
return v5;
|
|
430
|
+
}
|
|
431
|
+
static Datatype Create_f90_integer( int v1 )
|
|
432
|
+
{
|
|
433
|
+
Datatype v2;
|
|
434
|
+
MPIX_CALLWORLD( MPI_Type_create_f90_integer( v1, &(v2.the_real_datatype) ));
|
|
435
|
+
return v2;
|
|
436
|
+
}
|
|
437
|
+
virtual void Pack_external( const char * v1, const void * v2, const int v3, void * v5, Aint v6, Aint & v7 ) const
|
|
438
|
+
{
|
|
439
|
+
MPIX_CALLWORLD( MPI_Pack_external( v1, (const void *)v2, (int)v3, (MPI_Datatype) the_real_datatype, v5, v6, &v7 ));
|
|
440
|
+
}
|
|
441
|
+
virtual void Get_extent( Aint & v2, Aint & v3 ) const
|
|
442
|
+
{
|
|
443
|
+
MPIX_CALLWORLD( MPI_Type_get_extent( (MPI_Datatype) the_real_datatype, &v2, &v3 ));
|
|
444
|
+
}
|
|
445
|
+
virtual void Delete_attr( int v2 )
|
|
446
|
+
{
|
|
447
|
+
MPIX_CALLWORLD( MPI_Type_delete_attr( (MPI_Datatype) the_real_datatype, v2 ));
|
|
448
|
+
}
|
|
449
|
+
virtual void Get_name( char * v2, int &v3 ) const
|
|
450
|
+
{
|
|
451
|
+
MPIR_CXX_InitDatatypeNames();
|
|
452
|
+
MPIX_CALLWORLD( MPI_Type_get_name( (MPI_Datatype) the_real_datatype, v2, &v3 ));
|
|
453
|
+
}
|
|
454
|
+
|
|
455
|
+
void Unpack( const void *, int, void *, int, int &, const Comm & ) const;
|
|
456
|
+
typedef int Copy_attr_function(const Datatype& oldtype, int type_keyval, void* extra_state, void* attribute_val_in, void* attribute_val_out, bool& flag);
|
|
457
|
+
typedef int Delete_attr_function(Datatype& type, int type_keyval, void* attribute_val, void* extra_state);
|
|
458
|
+
|
|
459
|
+
static int Create_keyval( Copy_attr_function *, Delete_attr_function *,
|
|
460
|
+
void * );
|
|
461
|
+
// These functions are *not* part of MPI-2 but are provided
|
|
462
|
+
// because they should have been included
|
|
463
|
+
static int NULL_COPY_FN( const Datatype &oldtype MPIR_ARGUNUSED,
|
|
464
|
+
int keyval MPIR_ARGUNUSED, void *ex MPIR_ARGUNUSED,
|
|
465
|
+
void *attr_in MPIR_ARGUNUSED, void *attr_out MPIR_ARGUNUSED,
|
|
466
|
+
bool &flag ) { flag = 1; return 0;}
|
|
467
|
+
static int NULL_DELETE_FN( Datatype &type MPIR_ARGUNUSED,
|
|
468
|
+
int keyval MPIR_ARGUNUSED, void * attr MPIR_ARGUNUSED,
|
|
469
|
+
void *ex MPIR_ARGUNUSED ) { return 0; }
|
|
470
|
+
static int DUP_FN( const Datatype &oldtype MPIR_ARGUNUSED,
|
|
471
|
+
int keyval MPIR_ARGUNUSED, void *ex MPIR_ARGUNUSED,
|
|
472
|
+
void *attr_in, void *attr_out, bool &flag ) { flag = 1;
|
|
473
|
+
*(void **)attr_out = attr_in; return 0;}
|
|
474
|
+
|
|
475
|
+
};
|
|
476
|
+
|
|
477
|
+
typedef void User_function(const void *, void*, int, const Datatype&);
|
|
478
|
+
|
|
479
|
+
class Info {
|
|
480
|
+
friend class File;
|
|
481
|
+
friend class Win;
|
|
482
|
+
friend class Comm;
|
|
483
|
+
friend class Intracomm;
|
|
484
|
+
|
|
485
|
+
protected:
|
|
486
|
+
MPI_Info the_real_info;
|
|
487
|
+
|
|
488
|
+
public:
|
|
489
|
+
// new/delete
|
|
490
|
+
|
|
491
|
+
inline Info(MPI_Info obj) : the_real_info(obj) {}
|
|
492
|
+
inline Info(void) : the_real_info(MPI_INFO_NULL) {}
|
|
493
|
+
|
|
494
|
+
virtual ~Info() {}
|
|
495
|
+
// copy/assignment
|
|
496
|
+
|
|
497
|
+
Info(const Info &obj) : the_real_info(obj.the_real_info){}
|
|
498
|
+
|
|
499
|
+
Info& operator=(const Info &obj) {
|
|
500
|
+
the_real_info = obj.the_real_info; return *this; }
|
|
501
|
+
|
|
502
|
+
// logical
|
|
503
|
+
bool operator== (const Info &obj) {
|
|
504
|
+
return (the_real_info == obj.the_real_info); }
|
|
505
|
+
bool operator!= (const Info &obj) {
|
|
506
|
+
return (the_real_info != obj.the_real_info); }
|
|
507
|
+
// C/C++ cast and assignment
|
|
508
|
+
inline operator MPI_Info*() { return &the_real_info; }
|
|
509
|
+
inline operator MPI_Info() const { return the_real_info; }
|
|
510
|
+
Info& operator=(const MPI_Info& obj) {
|
|
511
|
+
the_real_info = obj; return *this; }
|
|
512
|
+
virtual void Delete( const char * v2 )
|
|
513
|
+
{
|
|
514
|
+
MPIX_CALLWORLD( MPI_Info_delete( (MPI_Info) the_real_info, (const char *)v2 ));
|
|
515
|
+
}
|
|
516
|
+
virtual void Get_nthkey( int v2, char * v3 ) const
|
|
517
|
+
{
|
|
518
|
+
MPIX_CALLWORLD( MPI_Info_get_nthkey( (MPI_Info) the_real_info, v2, v3 ));
|
|
519
|
+
}
|
|
520
|
+
virtual void Free( void )
|
|
521
|
+
{
|
|
522
|
+
MPIX_CALLWORLD( MPI_Info_free( (MPI_Info *) &the_real_info ));
|
|
523
|
+
}
|
|
524
|
+
static Info Create( void )
|
|
525
|
+
{
|
|
526
|
+
Info v1;
|
|
527
|
+
MPIX_CALLWORLD( MPI_Info_create( &(v1.the_real_info) ));
|
|
528
|
+
return v1;
|
|
529
|
+
}
|
|
530
|
+
virtual void Set( const char * v2, const char * v3 )
|
|
531
|
+
{
|
|
532
|
+
MPIX_CALLWORLD( MPI_Info_set( (MPI_Info) the_real_info, (const char *)v2, (const char *)v3 ));
|
|
533
|
+
}
|
|
534
|
+
Info Dup( void ) const
|
|
535
|
+
{
|
|
536
|
+
Info v2;
|
|
537
|
+
MPIX_CALLWORLD( MPI_Info_dup( (MPI_Info) the_real_info, &(v2.the_real_info) ));
|
|
538
|
+
return v2;
|
|
539
|
+
}
|
|
540
|
+
virtual bool Get_valuelen( const char * v2, int &v3 ) const
|
|
541
|
+
{
|
|
542
|
+
int v4;
|
|
543
|
+
MPIX_CALLWORLD( MPI_Info_get_valuelen( (MPI_Info) the_real_info, (const char *)v2, &v3, &v4 ));
|
|
544
|
+
return v4!= 0;
|
|
545
|
+
}
|
|
546
|
+
virtual bool Get( const char * v2, int v3, char * v4 ) const
|
|
547
|
+
{
|
|
548
|
+
int v5;
|
|
549
|
+
MPIX_CALLWORLD( MPI_Info_get( (MPI_Info) the_real_info, (const char *)v2, v3, v4, &v5 ));
|
|
550
|
+
return v5!= 0;
|
|
551
|
+
}
|
|
552
|
+
virtual int Get_nkeys( void ) const
|
|
553
|
+
{
|
|
554
|
+
int v2;
|
|
555
|
+
MPIX_CALLWORLD( MPI_Info_get_nkeys( (MPI_Info) the_real_info, &v2 ));
|
|
556
|
+
return v2;
|
|
557
|
+
}
|
|
558
|
+
};
|
|
559
|
+
|
|
560
|
+
class Status {
|
|
561
|
+
friend class Comm;
|
|
562
|
+
friend class File;
|
|
563
|
+
friend class Request;
|
|
564
|
+
|
|
565
|
+
protected:
|
|
566
|
+
MPI_Status the_real_status;
|
|
567
|
+
|
|
568
|
+
public:
|
|
569
|
+
// new/delete
|
|
570
|
+
|
|
571
|
+
inline Status(MPI_Status obj) : the_real_status(obj) {}
|
|
572
|
+
inline Status(void) : the_real_status() {}
|
|
573
|
+
|
|
574
|
+
virtual ~Status() {}
|
|
575
|
+
// copy/assignment
|
|
576
|
+
|
|
577
|
+
Status(const Status &obj) : the_real_status(obj.the_real_status){}
|
|
578
|
+
|
|
579
|
+
Status& operator=(const Status &obj) {
|
|
580
|
+
the_real_status = obj.the_real_status; return *this; }
|
|
581
|
+
|
|
582
|
+
// C/C++ cast and assignment
|
|
583
|
+
inline operator MPI_Status*() { return &the_real_status; }
|
|
584
|
+
inline operator MPI_Status() const { return the_real_status; }
|
|
585
|
+
Status& operator=(const MPI_Status& obj) {
|
|
586
|
+
the_real_status = obj; return *this; }
|
|
587
|
+
virtual bool Is_cancelled( void ) const
|
|
588
|
+
{
|
|
589
|
+
int v2;
|
|
590
|
+
MPIX_CALLWORLD( MPI_Test_cancelled( (const MPI_Status *) &the_real_status, &v2 ));
|
|
591
|
+
return v2!= 0;
|
|
592
|
+
}
|
|
593
|
+
virtual int Get_elements( const Datatype &v2 ) const
|
|
594
|
+
{
|
|
595
|
+
int v3;
|
|
596
|
+
MPIX_CALLWORLD( MPI_Get_elements( (const MPI_Status *) &the_real_status, (MPI_Datatype)(v2.the_real_datatype), &v3 ));
|
|
597
|
+
return v3;
|
|
598
|
+
}
|
|
599
|
+
virtual int Get_count( const Datatype &v2 ) const
|
|
600
|
+
{
|
|
601
|
+
int v3;
|
|
602
|
+
MPIX_CALLWORLD( MPI_Get_count( (const MPI_Status *) &the_real_status, (MPI_Datatype)(v2.the_real_datatype), &v3 ));
|
|
603
|
+
return v3;
|
|
604
|
+
}
|
|
605
|
+
virtual void Set_cancelled( bool v2 )
|
|
606
|
+
{
|
|
607
|
+
int l2;
|
|
608
|
+
l2 = (v2 == true) ? 1 : 0;
|
|
609
|
+
MPIX_CALLWORLD( MPI_Status_set_cancelled( (MPI_Status *) &the_real_status, l2 ));
|
|
610
|
+
}
|
|
611
|
+
virtual void Set_elements( const Datatype &v2, int v3 )
|
|
612
|
+
{
|
|
613
|
+
MPIX_CALLWORLD( MPI_Status_set_elements( (MPI_Status *) &the_real_status, (MPI_Datatype)(v2.the_real_datatype), v3 ));
|
|
614
|
+
}
|
|
615
|
+
|
|
616
|
+
int Get_source(void) const { return the_real_status.MPI_SOURCE; }
|
|
617
|
+
int Get_tag(void) const { return the_real_status.MPI_TAG; }
|
|
618
|
+
int Get_error(void) const { return the_real_status.MPI_ERROR; }
|
|
619
|
+
void Set_source(int source) { the_real_status.MPI_SOURCE = source; }
|
|
620
|
+
void Set_tag(int tag) { the_real_status.MPI_TAG = tag; }
|
|
621
|
+
void Set_error(int error) { the_real_status.MPI_ERROR = error; }
|
|
622
|
+
};
|
|
623
|
+
|
|
624
|
+
class Group {
|
|
625
|
+
friend class Comm;
|
|
626
|
+
friend class Intracomm;
|
|
627
|
+
friend class Intercomm;
|
|
628
|
+
friend class Win;
|
|
629
|
+
friend class File;
|
|
630
|
+
|
|
631
|
+
protected:
|
|
632
|
+
MPI_Group the_real_group;
|
|
633
|
+
|
|
634
|
+
public:
|
|
635
|
+
// new/delete
|
|
636
|
+
|
|
637
|
+
inline Group(MPI_Group obj) : the_real_group(obj) {}
|
|
638
|
+
inline Group(void) : the_real_group(MPI_GROUP_NULL) {}
|
|
639
|
+
|
|
640
|
+
virtual ~Group() {}
|
|
641
|
+
// copy/assignment
|
|
642
|
+
|
|
643
|
+
Group(const Group &obj) : the_real_group(obj.the_real_group){}
|
|
644
|
+
|
|
645
|
+
Group& operator=(const Group &obj) {
|
|
646
|
+
the_real_group = obj.the_real_group; return *this; }
|
|
647
|
+
|
|
648
|
+
// logical
|
|
649
|
+
bool operator== (const Group &obj) {
|
|
650
|
+
return (the_real_group == obj.the_real_group); }
|
|
651
|
+
bool operator!= (const Group &obj) {
|
|
652
|
+
return (the_real_group != obj.the_real_group); }
|
|
653
|
+
// C/C++ cast and assignment
|
|
654
|
+
inline operator MPI_Group*() { return &the_real_group; }
|
|
655
|
+
inline operator MPI_Group() const { return the_real_group; }
|
|
656
|
+
Group& operator=(const MPI_Group& obj) {
|
|
657
|
+
the_real_group = obj; return *this; }
|
|
658
|
+
virtual Group Excl( int v2, const int v3[] ) const
|
|
659
|
+
{
|
|
660
|
+
Group v4;
|
|
661
|
+
MPIX_CALLWORLD( MPI_Group_excl( (MPI_Group) the_real_group, v2, (const int *)v3, &(v4.the_real_group) ));
|
|
662
|
+
return v4;
|
|
663
|
+
}
|
|
664
|
+
virtual int Get_rank( void ) const
|
|
665
|
+
{
|
|
666
|
+
int v2;
|
|
667
|
+
MPIX_CALLWORLD( MPI_Group_rank( (MPI_Group) the_real_group, &v2 ));
|
|
668
|
+
return v2;
|
|
669
|
+
}
|
|
670
|
+
virtual void Free( void )
|
|
671
|
+
{
|
|
672
|
+
MPIX_CALLWORLD( MPI_Group_free( (MPI_Group *) &the_real_group ));
|
|
673
|
+
}
|
|
674
|
+
static Group Union( const Group &v1, const Group &v2 )
|
|
675
|
+
{
|
|
676
|
+
Group v3;
|
|
677
|
+
MPIX_CALLWORLD( MPI_Group_union( (MPI_Group)(v1.the_real_group), (MPI_Group)(v2.the_real_group), &(v3.the_real_group) ));
|
|
678
|
+
return v3;
|
|
679
|
+
}
|
|
680
|
+
static Group Intersect( const Group &v1, const Group &v2 )
|
|
681
|
+
{
|
|
682
|
+
Group v3;
|
|
683
|
+
MPIX_CALLWORLD( MPI_Group_intersection( (MPI_Group)(v1.the_real_group), (MPI_Group)(v2.the_real_group), &(v3.the_real_group) ));
|
|
684
|
+
return v3;
|
|
685
|
+
}
|
|
686
|
+
virtual Group Range_excl( int v2, const int v3[][3] ) const
|
|
687
|
+
{
|
|
688
|
+
Group v4;
|
|
689
|
+
MPIX_CALLWORLD( MPI_Group_range_excl( (MPI_Group) the_real_group, v2, (int (*)[3])v3, &(v4.the_real_group) ));
|
|
690
|
+
return v4;
|
|
691
|
+
}
|
|
692
|
+
virtual Group Range_incl( int v2, const int v3[][3] ) const
|
|
693
|
+
{
|
|
694
|
+
Group v4;
|
|
695
|
+
MPIX_CALLWORLD( MPI_Group_range_incl( (MPI_Group) the_real_group, v2, (int (*)[3])v3, &(v4.the_real_group) ));
|
|
696
|
+
return v4;
|
|
697
|
+
}
|
|
698
|
+
static Group Difference( const Group &v1, const Group &v2 )
|
|
699
|
+
{
|
|
700
|
+
Group v3;
|
|
701
|
+
MPIX_CALLWORLD( MPI_Group_difference( (MPI_Group)(v1.the_real_group), (MPI_Group)(v2.the_real_group), &(v3.the_real_group) ));
|
|
702
|
+
return v3;
|
|
703
|
+
}
|
|
704
|
+
static void Translate_ranks( const Group &v1, int v2, const int v3[], const Group &v4, int v5[] )
|
|
705
|
+
{
|
|
706
|
+
MPIX_CALLWORLD( MPI_Group_translate_ranks( (MPI_Group)(v1.the_real_group), v2, (const int *)v3, (MPI_Group)(v4.the_real_group), v5 ));
|
|
707
|
+
}
|
|
708
|
+
virtual Group Incl( int v2, const int v3[] ) const
|
|
709
|
+
{
|
|
710
|
+
Group v4;
|
|
711
|
+
MPIX_CALLWORLD( MPI_Group_incl( (MPI_Group) the_real_group, v2, (const int *)v3, &(v4.the_real_group) ));
|
|
712
|
+
return v4;
|
|
713
|
+
}
|
|
714
|
+
virtual int Get_size( void ) const
|
|
715
|
+
{
|
|
716
|
+
int v2;
|
|
717
|
+
MPIX_CALLWORLD( MPI_Group_size( (MPI_Group) the_real_group, &v2 ));
|
|
718
|
+
return v2;
|
|
719
|
+
}
|
|
720
|
+
static int Compare( const Group &v1, const Group &v2 )
|
|
721
|
+
{
|
|
722
|
+
int v3;
|
|
723
|
+
MPIX_CALLWORLD( MPI_Group_compare( (MPI_Group)(v1.the_real_group), (MPI_Group)(v2.the_real_group), &v3 ));
|
|
724
|
+
return v3;
|
|
725
|
+
}
|
|
726
|
+
};
|
|
727
|
+
|
|
728
|
+
class Op {
|
|
729
|
+
friend class Intracomm;
|
|
730
|
+
friend class Intercomm;
|
|
731
|
+
friend class Win;
|
|
732
|
+
friend class Comm;
|
|
733
|
+
|
|
734
|
+
protected:
|
|
735
|
+
MPI_Op the_real_op;
|
|
736
|
+
|
|
737
|
+
public:
|
|
738
|
+
// new/delete
|
|
739
|
+
|
|
740
|
+
inline Op(MPI_Op obj) : the_real_op(obj) {}
|
|
741
|
+
inline Op(void) : the_real_op(MPI_OP_NULL) {}
|
|
742
|
+
|
|
743
|
+
virtual ~Op() {}
|
|
744
|
+
// copy/assignment
|
|
745
|
+
|
|
746
|
+
Op(const Op &obj) : the_real_op(obj.the_real_op){}
|
|
747
|
+
|
|
748
|
+
Op& operator=(const Op &obj) {
|
|
749
|
+
the_real_op = obj.the_real_op; return *this; }
|
|
750
|
+
|
|
751
|
+
// logical
|
|
752
|
+
bool operator== (const Op &obj) {
|
|
753
|
+
return (the_real_op == obj.the_real_op); }
|
|
754
|
+
bool operator!= (const Op &obj) {
|
|
755
|
+
return (the_real_op != obj.the_real_op); }
|
|
756
|
+
// C/C++ cast and assignment
|
|
757
|
+
inline operator MPI_Op*() { return &the_real_op; }
|
|
758
|
+
inline operator MPI_Op() const { return the_real_op; }
|
|
759
|
+
Op& operator=(const MPI_Op& obj) {
|
|
760
|
+
the_real_op = obj; return *this; }
|
|
761
|
+
virtual void Free( void )
|
|
762
|
+
{
|
|
763
|
+
MPIX_CALLWORLD( MPI_Op_free( (MPI_Op *) &the_real_op ));
|
|
764
|
+
}
|
|
765
|
+
virtual bool Is_commutative( void ) const
|
|
766
|
+
{
|
|
767
|
+
int v2;
|
|
768
|
+
MPIX_CALLWORLD( MPI_Op_commutative( (MPI_Op) the_real_op, &v2 ));
|
|
769
|
+
return v2!= 0;
|
|
770
|
+
}
|
|
771
|
+
virtual void Reduce_local( const void * v1, void * v2, int v3, const Datatype &v4 ) const
|
|
772
|
+
{
|
|
773
|
+
MPIX_CALLWORLD( MPI_Reduce_local( (const void *)v1, v2, v3, (MPI_Datatype)(v4.the_real_datatype), (MPI_Op) the_real_op ));
|
|
774
|
+
}
|
|
775
|
+
|
|
776
|
+
void Init( User_function *, bool );
|
|
777
|
+
};
|
|
778
|
+
|
|
779
|
+
class Errhandler {
|
|
780
|
+
friend class Comm;
|
|
781
|
+
friend class File;
|
|
782
|
+
friend class Win;
|
|
783
|
+
|
|
784
|
+
protected:
|
|
785
|
+
MPI_Errhandler the_real_errhandler;
|
|
786
|
+
|
|
787
|
+
public:
|
|
788
|
+
// new/delete
|
|
789
|
+
|
|
790
|
+
inline Errhandler(MPI_Errhandler obj) : the_real_errhandler(obj) {}
|
|
791
|
+
inline Errhandler(void) : the_real_errhandler(MPI_ERRHANDLER_NULL) {}
|
|
792
|
+
|
|
793
|
+
virtual ~Errhandler() {}
|
|
794
|
+
// copy/assignment
|
|
795
|
+
|
|
796
|
+
Errhandler(const Errhandler &obj) : the_real_errhandler(obj.the_real_errhandler){}
|
|
797
|
+
|
|
798
|
+
Errhandler& operator=(const Errhandler &obj) {
|
|
799
|
+
the_real_errhandler = obj.the_real_errhandler; return *this; }
|
|
800
|
+
|
|
801
|
+
// logical
|
|
802
|
+
bool operator== (const Errhandler &obj) {
|
|
803
|
+
return (the_real_errhandler == obj.the_real_errhandler); }
|
|
804
|
+
bool operator!= (const Errhandler &obj) {
|
|
805
|
+
return (the_real_errhandler != obj.the_real_errhandler); }
|
|
806
|
+
// C/C++ cast and assignment
|
|
807
|
+
inline operator MPI_Errhandler*() { return &the_real_errhandler; }
|
|
808
|
+
inline operator MPI_Errhandler() const { return the_real_errhandler; }
|
|
809
|
+
Errhandler& operator=(const MPI_Errhandler& obj) {
|
|
810
|
+
the_real_errhandler = obj; return *this; }
|
|
811
|
+
virtual void Free( void )
|
|
812
|
+
{
|
|
813
|
+
MPIX_CALLWORLD( MPI_Errhandler_free( (MPI_Errhandler *) &the_real_errhandler ));
|
|
814
|
+
}
|
|
815
|
+
};
|
|
816
|
+
|
|
817
|
+
class Request {
|
|
818
|
+
friend class Comm;
|
|
819
|
+
friend class File;
|
|
820
|
+
friend class Grequest;
|
|
821
|
+
|
|
822
|
+
protected:
|
|
823
|
+
MPI_Request the_real_request;
|
|
824
|
+
|
|
825
|
+
public:
|
|
826
|
+
// new/delete
|
|
827
|
+
|
|
828
|
+
inline Request(MPI_Request obj) : the_real_request(obj) {}
|
|
829
|
+
inline Request(void) : the_real_request(MPI_REQUEST_NULL) {}
|
|
830
|
+
|
|
831
|
+
virtual ~Request() {}
|
|
832
|
+
// copy/assignment
|
|
833
|
+
|
|
834
|
+
Request(const Request &obj) : the_real_request(obj.the_real_request){}
|
|
835
|
+
|
|
836
|
+
Request& operator=(const Request &obj) {
|
|
837
|
+
the_real_request = obj.the_real_request; return *this; }
|
|
838
|
+
|
|
839
|
+
// logical
|
|
840
|
+
bool operator== (const Request &obj) {
|
|
841
|
+
return (the_real_request == obj.the_real_request); }
|
|
842
|
+
bool operator!= (const Request &obj) {
|
|
843
|
+
return (the_real_request != obj.the_real_request); }
|
|
844
|
+
// C/C++ cast and assignment
|
|
845
|
+
inline operator MPI_Request*() { return &the_real_request; }
|
|
846
|
+
inline operator MPI_Request() const { return the_real_request; }
|
|
847
|
+
Request& operator=(const MPI_Request& obj) {
|
|
848
|
+
the_real_request = obj; return *this; }
|
|
849
|
+
static bool Testany( int v1, Request v2[], int &v3, Status & v5 )
|
|
850
|
+
{
|
|
851
|
+
int v4;
|
|
852
|
+
MPI_Request *l2 = new MPI_Request[(unsigned long)v1];
|
|
853
|
+
{
|
|
854
|
+
int i2;
|
|
855
|
+
for (i2=0;i2<v1;i2++) {
|
|
856
|
+
l2[i2] = v2[i2].the_real_request;
|
|
857
|
+
}
|
|
858
|
+
}
|
|
859
|
+
MPIX_CALLWORLD( MPI_Testany( v1, l2, &v3, &v4, (MPI_Status *)&(v5.the_real_status ) ));
|
|
860
|
+
{
|
|
861
|
+
int i2;
|
|
862
|
+
for (i2=0;i2<v1;i2++) {
|
|
863
|
+
v2[i2].the_real_request = l2[i2];
|
|
864
|
+
}
|
|
865
|
+
delete[] l2;
|
|
866
|
+
}
|
|
867
|
+
return v4!= 0;
|
|
868
|
+
}
|
|
869
|
+
static bool Testany( int v1, Request v2[], int &v3 )
|
|
870
|
+
{
|
|
871
|
+
int v4;
|
|
872
|
+
MPI_Request *l2 = new MPI_Request[(unsigned long)v1];
|
|
873
|
+
{
|
|
874
|
+
int i2;
|
|
875
|
+
for (i2=0;i2<v1;i2++) {
|
|
876
|
+
l2[i2] = v2[i2].the_real_request;
|
|
877
|
+
}
|
|
878
|
+
}
|
|
879
|
+
MPIX_CALLWORLD( MPI_Testany( v1, l2, &v3, &v4, MPI_STATUS_IGNORE ));
|
|
880
|
+
{
|
|
881
|
+
int i2;
|
|
882
|
+
for (i2=0;i2<v1;i2++) {
|
|
883
|
+
v2[i2].the_real_request = l2[i2];
|
|
884
|
+
}
|
|
885
|
+
delete[] l2;
|
|
886
|
+
}
|
|
887
|
+
return v4!= 0;
|
|
888
|
+
}
|
|
889
|
+
static int Waitsome( int v1, Request v2[], int v4[], Status v5[] )
|
|
890
|
+
{
|
|
891
|
+
int v3;
|
|
892
|
+
MPI_Request *l2 = new MPI_Request[(unsigned long)v1];
|
|
893
|
+
MPI_Status *l5 = new MPI_Status[(unsigned long)v1];
|
|
894
|
+
{
|
|
895
|
+
int i2;
|
|
896
|
+
for (i2=0;i2<v1;i2++) {
|
|
897
|
+
l2[i2] = v2[i2].the_real_request;
|
|
898
|
+
}
|
|
899
|
+
}
|
|
900
|
+
MPIX_CALLWORLD( MPI_Waitsome( v1, l2, &v3, v4, l5 ));
|
|
901
|
+
{
|
|
902
|
+
int i2;
|
|
903
|
+
for (i2=0;i2<v1;i2++) {
|
|
904
|
+
v2[i2].the_real_request = l2[i2];
|
|
905
|
+
}
|
|
906
|
+
delete[] l2;
|
|
907
|
+
}
|
|
908
|
+
{
|
|
909
|
+
int i5;
|
|
910
|
+
for (i5=0;i5<v1;i5++) {
|
|
911
|
+
v5[i5].the_real_status = l5[i5];
|
|
912
|
+
}
|
|
913
|
+
delete[] l5;
|
|
914
|
+
}
|
|
915
|
+
return v3;
|
|
916
|
+
}
|
|
917
|
+
static int Waitsome( int v1, Request v2[], int v4[] )
|
|
918
|
+
{
|
|
919
|
+
int v3;
|
|
920
|
+
MPI_Request *l2 = new MPI_Request[(unsigned long)v1];
|
|
921
|
+
{
|
|
922
|
+
int i2;
|
|
923
|
+
for (i2=0;i2<v1;i2++) {
|
|
924
|
+
l2[i2] = v2[i2].the_real_request;
|
|
925
|
+
}
|
|
926
|
+
}
|
|
927
|
+
MPIX_CALLWORLD( MPI_Waitsome( v1, l2, &v3, v4, MPI_STATUSES_IGNORE ));
|
|
928
|
+
{
|
|
929
|
+
int i2;
|
|
930
|
+
for (i2=0;i2<v1;i2++) {
|
|
931
|
+
v2[i2].the_real_request = l2[i2];
|
|
932
|
+
}
|
|
933
|
+
delete[] l2;
|
|
934
|
+
}
|
|
935
|
+
return v3;
|
|
936
|
+
}
|
|
937
|
+
virtual void Free( void )
|
|
938
|
+
{
|
|
939
|
+
MPIX_CALLWORLD( MPI_Request_free( (MPI_Request *) &the_real_request ));
|
|
940
|
+
}
|
|
941
|
+
static bool Testall( int v1, Request v2[], Status v4[] )
|
|
942
|
+
{
|
|
943
|
+
int v3;
|
|
944
|
+
MPI_Request *l2 = new MPI_Request[(unsigned long)v1];
|
|
945
|
+
MPI_Status *l4 = new MPI_Status[(unsigned long)v1];
|
|
946
|
+
{
|
|
947
|
+
int i2;
|
|
948
|
+
for (i2=0;i2<v1;i2++) {
|
|
949
|
+
l2[i2] = v2[i2].the_real_request;
|
|
950
|
+
}
|
|
951
|
+
}
|
|
952
|
+
MPIX_CALLWORLD( MPI_Testall( v1, l2, &v3, l4 ));
|
|
953
|
+
{
|
|
954
|
+
int i2;
|
|
955
|
+
for (i2=0;i2<v1;i2++) {
|
|
956
|
+
v2[i2].the_real_request = l2[i2];
|
|
957
|
+
}
|
|
958
|
+
delete[] l2;
|
|
959
|
+
}
|
|
960
|
+
{
|
|
961
|
+
int i4;
|
|
962
|
+
for (i4=0;i4<v1;i4++) {
|
|
963
|
+
v4[i4].the_real_status = l4[i4];
|
|
964
|
+
}
|
|
965
|
+
delete[] l4;
|
|
966
|
+
}
|
|
967
|
+
return v3!= 0;
|
|
968
|
+
}
|
|
969
|
+
static bool Testall( int v1, Request v2[] )
|
|
970
|
+
{
|
|
971
|
+
int v3;
|
|
972
|
+
MPI_Request *l2 = new MPI_Request[(unsigned long)v1];
|
|
973
|
+
{
|
|
974
|
+
int i2;
|
|
975
|
+
for (i2=0;i2<v1;i2++) {
|
|
976
|
+
l2[i2] = v2[i2].the_real_request;
|
|
977
|
+
}
|
|
978
|
+
}
|
|
979
|
+
MPIX_CALLWORLD( MPI_Testall( v1, l2, &v3, MPI_STATUSES_IGNORE ));
|
|
980
|
+
{
|
|
981
|
+
int i2;
|
|
982
|
+
for (i2=0;i2<v1;i2++) {
|
|
983
|
+
v2[i2].the_real_request = l2[i2];
|
|
984
|
+
}
|
|
985
|
+
delete[] l2;
|
|
986
|
+
}
|
|
987
|
+
return v3!= 0;
|
|
988
|
+
}
|
|
989
|
+
virtual void Wait( Status & v2 )
|
|
990
|
+
{
|
|
991
|
+
MPIX_CALLWORLD( MPI_Wait( (MPI_Request *) &the_real_request, (MPI_Status *)&(v2.the_real_status ) ));
|
|
992
|
+
}
|
|
993
|
+
virtual void Wait( void )
|
|
994
|
+
{
|
|
995
|
+
MPIX_CALLWORLD( MPI_Wait( (MPI_Request *) &the_real_request, MPI_STATUS_IGNORE ));
|
|
996
|
+
}
|
|
997
|
+
static int Testsome( int v1, Request v2[], int v4[], Status v5[] )
|
|
998
|
+
{
|
|
999
|
+
int v3;
|
|
1000
|
+
MPI_Request *l2 = new MPI_Request[(unsigned long)v1];
|
|
1001
|
+
MPI_Status *l5 = new MPI_Status[(unsigned long)v1];
|
|
1002
|
+
{
|
|
1003
|
+
int i2;
|
|
1004
|
+
for (i2=0;i2<v1;i2++) {
|
|
1005
|
+
l2[i2] = v2[i2].the_real_request;
|
|
1006
|
+
}
|
|
1007
|
+
}
|
|
1008
|
+
MPIX_CALLWORLD( MPI_Testsome( v1, l2, &v3, v4, l5 ));
|
|
1009
|
+
{
|
|
1010
|
+
int i2;
|
|
1011
|
+
for (i2=0;i2<v1;i2++) {
|
|
1012
|
+
v2[i2].the_real_request = l2[i2];
|
|
1013
|
+
}
|
|
1014
|
+
delete[] l2;
|
|
1015
|
+
}
|
|
1016
|
+
{
|
|
1017
|
+
int i5;
|
|
1018
|
+
for (i5=0;i5<v1;i5++) {
|
|
1019
|
+
v5[i5].the_real_status = l5[i5];
|
|
1020
|
+
}
|
|
1021
|
+
delete[] l5;
|
|
1022
|
+
}
|
|
1023
|
+
return v3;
|
|
1024
|
+
}
|
|
1025
|
+
static int Testsome( int v1, Request v2[], int v4[] )
|
|
1026
|
+
{
|
|
1027
|
+
int v3;
|
|
1028
|
+
MPI_Request *l2 = new MPI_Request[(unsigned long)v1];
|
|
1029
|
+
{
|
|
1030
|
+
int i2;
|
|
1031
|
+
for (i2=0;i2<v1;i2++) {
|
|
1032
|
+
l2[i2] = v2[i2].the_real_request;
|
|
1033
|
+
}
|
|
1034
|
+
}
|
|
1035
|
+
MPIX_CALLWORLD( MPI_Testsome( v1, l2, &v3, v4, MPI_STATUSES_IGNORE ));
|
|
1036
|
+
{
|
|
1037
|
+
int i2;
|
|
1038
|
+
for (i2=0;i2<v1;i2++) {
|
|
1039
|
+
v2[i2].the_real_request = l2[i2];
|
|
1040
|
+
}
|
|
1041
|
+
delete[] l2;
|
|
1042
|
+
}
|
|
1043
|
+
return v3;
|
|
1044
|
+
}
|
|
1045
|
+
static void Waitall( int v1, Request v2[], Status v3[] )
|
|
1046
|
+
{
|
|
1047
|
+
MPI_Request *l2 = new MPI_Request[(unsigned long)v1];
|
|
1048
|
+
MPI_Status *l3 = new MPI_Status[(unsigned long)v1];
|
|
1049
|
+
{
|
|
1050
|
+
int i2;
|
|
1051
|
+
for (i2=0;i2<v1;i2++) {
|
|
1052
|
+
l2[i2] = v2[i2].the_real_request;
|
|
1053
|
+
}
|
|
1054
|
+
}
|
|
1055
|
+
MPIX_CALLWORLD( MPI_Waitall( v1, l2, l3 ));
|
|
1056
|
+
{
|
|
1057
|
+
int i2;
|
|
1058
|
+
for (i2=0;i2<v1;i2++) {
|
|
1059
|
+
v2[i2].the_real_request = l2[i2];
|
|
1060
|
+
}
|
|
1061
|
+
delete[] l2;
|
|
1062
|
+
}
|
|
1063
|
+
{
|
|
1064
|
+
int i3;
|
|
1065
|
+
for (i3=0;i3<v1;i3++) {
|
|
1066
|
+
v3[i3].the_real_status = l3[i3];
|
|
1067
|
+
}
|
|
1068
|
+
delete[] l3;
|
|
1069
|
+
}
|
|
1070
|
+
}
|
|
1071
|
+
static void Waitall( int v1, Request v2[] )
|
|
1072
|
+
{
|
|
1073
|
+
MPI_Request *l2 = new MPI_Request[(unsigned long)v1];
|
|
1074
|
+
{
|
|
1075
|
+
int i2;
|
|
1076
|
+
for (i2=0;i2<v1;i2++) {
|
|
1077
|
+
l2[i2] = v2[i2].the_real_request;
|
|
1078
|
+
}
|
|
1079
|
+
}
|
|
1080
|
+
MPIX_CALLWORLD( MPI_Waitall( v1, l2, MPI_STATUSES_IGNORE ));
|
|
1081
|
+
{
|
|
1082
|
+
int i2;
|
|
1083
|
+
for (i2=0;i2<v1;i2++) {
|
|
1084
|
+
v2[i2].the_real_request = l2[i2];
|
|
1085
|
+
}
|
|
1086
|
+
delete[] l2;
|
|
1087
|
+
}
|
|
1088
|
+
}
|
|
1089
|
+
static int Waitany( int v1, Request v2[], Status & v4 )
|
|
1090
|
+
{
|
|
1091
|
+
int v3;
|
|
1092
|
+
MPI_Request *l2 = new MPI_Request[(unsigned long)v1];
|
|
1093
|
+
{
|
|
1094
|
+
int i2;
|
|
1095
|
+
for (i2=0;i2<v1;i2++) {
|
|
1096
|
+
l2[i2] = v2[i2].the_real_request;
|
|
1097
|
+
}
|
|
1098
|
+
}
|
|
1099
|
+
MPIX_CALLWORLD( MPI_Waitany( v1, l2, &v3, (MPI_Status *)&(v4.the_real_status ) ));
|
|
1100
|
+
{
|
|
1101
|
+
int i2;
|
|
1102
|
+
for (i2=0;i2<v1;i2++) {
|
|
1103
|
+
v2[i2].the_real_request = l2[i2];
|
|
1104
|
+
}
|
|
1105
|
+
delete[] l2;
|
|
1106
|
+
}
|
|
1107
|
+
return v3;
|
|
1108
|
+
}
|
|
1109
|
+
static int Waitany( int v1, Request v2[] )
|
|
1110
|
+
{
|
|
1111
|
+
int v3;
|
|
1112
|
+
MPI_Request *l2 = new MPI_Request[(unsigned long)v1];
|
|
1113
|
+
{
|
|
1114
|
+
int i2;
|
|
1115
|
+
for (i2=0;i2<v1;i2++) {
|
|
1116
|
+
l2[i2] = v2[i2].the_real_request;
|
|
1117
|
+
}
|
|
1118
|
+
}
|
|
1119
|
+
MPIX_CALLWORLD( MPI_Waitany( v1, l2, &v3, MPI_STATUS_IGNORE ));
|
|
1120
|
+
{
|
|
1121
|
+
int i2;
|
|
1122
|
+
for (i2=0;i2<v1;i2++) {
|
|
1123
|
+
v2[i2].the_real_request = l2[i2];
|
|
1124
|
+
}
|
|
1125
|
+
delete[] l2;
|
|
1126
|
+
}
|
|
1127
|
+
return v3;
|
|
1128
|
+
}
|
|
1129
|
+
virtual bool Test( Status & v3 )
|
|
1130
|
+
{
|
|
1131
|
+
int v2;
|
|
1132
|
+
MPIX_CALLWORLD( MPI_Test( (MPI_Request *) &the_real_request, &v2, (MPI_Status *)&(v3.the_real_status ) ));
|
|
1133
|
+
return v2!= 0;
|
|
1134
|
+
}
|
|
1135
|
+
virtual bool Test( void )
|
|
1136
|
+
{
|
|
1137
|
+
int v2;
|
|
1138
|
+
MPIX_CALLWORLD( MPI_Test( (MPI_Request *) &the_real_request, &v2, MPI_STATUS_IGNORE ));
|
|
1139
|
+
return v2!= 0;
|
|
1140
|
+
}
|
|
1141
|
+
virtual void Cancel( void ) const
|
|
1142
|
+
{
|
|
1143
|
+
MPIX_CALLWORLD( MPI_Cancel( (MPI_Request *) &the_real_request ));
|
|
1144
|
+
}
|
|
1145
|
+
virtual bool Get_status( Status & v3 ) const
|
|
1146
|
+
{
|
|
1147
|
+
int v2;
|
|
1148
|
+
MPIX_CALLWORLD( MPI_Request_get_status( (MPI_Request) the_real_request, &v2, (MPI_Status *)&(v3.the_real_status ) ));
|
|
1149
|
+
return v2!= 0;
|
|
1150
|
+
}
|
|
1151
|
+
virtual bool Get_status( void ) const
|
|
1152
|
+
{
|
|
1153
|
+
int v2;
|
|
1154
|
+
MPIX_CALLWORLD( MPI_Request_get_status( (MPI_Request) the_real_request, &v2, MPI_STATUS_IGNORE ));
|
|
1155
|
+
return v2!= 0;
|
|
1156
|
+
}
|
|
1157
|
+
};
|
|
1158
|
+
|
|
1159
|
+
class Prequest : public Request {
|
|
1160
|
+
|
|
1161
|
+
public:
|
|
1162
|
+
// new/delete
|
|
1163
|
+
|
|
1164
|
+
inline Prequest(MPI_Request obj) : Request(obj) {}
|
|
1165
|
+
inline Prequest(void) : Request() {}
|
|
1166
|
+
|
|
1167
|
+
virtual ~Prequest() {}
|
|
1168
|
+
// copy/assignment
|
|
1169
|
+
|
|
1170
|
+
Prequest(const Prequest &obj) : Request(obj) {}
|
|
1171
|
+
|
|
1172
|
+
Prequest& operator=(const Prequest &obj) {
|
|
1173
|
+
the_real_request = obj.the_real_request; return *this; }
|
|
1174
|
+
|
|
1175
|
+
// C/C++ cast and assignment
|
|
1176
|
+
inline operator MPI_Request*() { return &the_real_request; }
|
|
1177
|
+
inline operator MPI_Request() const { return the_real_request; }
|
|
1178
|
+
Prequest& operator=(const MPI_Request& obj) {
|
|
1179
|
+
the_real_request = obj; return *this; }
|
|
1180
|
+
virtual void Start( void )
|
|
1181
|
+
{
|
|
1182
|
+
MPIX_CALLWORLD( MPI_Start( (MPI_Request *) &the_real_request ));
|
|
1183
|
+
}
|
|
1184
|
+
static void Startall( int v1, Prequest v2[] )
|
|
1185
|
+
{
|
|
1186
|
+
MPI_Request *l2 = new MPI_Request[(unsigned long)v1];
|
|
1187
|
+
{
|
|
1188
|
+
int i2;
|
|
1189
|
+
for (i2=0;i2<v1;i2++) {
|
|
1190
|
+
l2[i2] = v2[i2].the_real_request;
|
|
1191
|
+
}
|
|
1192
|
+
}
|
|
1193
|
+
MPIX_CALLWORLD( MPI_Startall( v1, l2 ));
|
|
1194
|
+
{
|
|
1195
|
+
int i2;
|
|
1196
|
+
for (i2=0;i2<v1;i2++) {
|
|
1197
|
+
v2[i2].the_real_request = l2[i2];
|
|
1198
|
+
}
|
|
1199
|
+
delete[] l2;
|
|
1200
|
+
}
|
|
1201
|
+
}
|
|
1202
|
+
};
|
|
1203
|
+
|
|
1204
|
+
class Comm {
|
|
1205
|
+
friend class Cartcomm;
|
|
1206
|
+
friend class Intercomm;
|
|
1207
|
+
friend class Intracomm;
|
|
1208
|
+
friend class Graphcomm;
|
|
1209
|
+
friend class Nullcomm;
|
|
1210
|
+
friend class Datatype;
|
|
1211
|
+
friend class Win;
|
|
1212
|
+
friend class File;
|
|
1213
|
+
|
|
1214
|
+
protected:
|
|
1215
|
+
MPI_Comm the_real_comm;
|
|
1216
|
+
|
|
1217
|
+
public:
|
|
1218
|
+
// new/delete
|
|
1219
|
+
|
|
1220
|
+
inline Comm(MPI_Comm obj) : the_real_comm(obj) {}
|
|
1221
|
+
inline Comm(void) : the_real_comm(MPI_COMM_NULL) {}
|
|
1222
|
+
|
|
1223
|
+
virtual ~Comm() {}
|
|
1224
|
+
// copy/assignment
|
|
1225
|
+
|
|
1226
|
+
Comm(const Comm &obj) : the_real_comm(obj.the_real_comm){}
|
|
1227
|
+
|
|
1228
|
+
Comm& operator=(const Comm &obj) {
|
|
1229
|
+
the_real_comm = obj.the_real_comm; return *this; }
|
|
1230
|
+
|
|
1231
|
+
// logical
|
|
1232
|
+
bool operator== (const Comm &obj) {
|
|
1233
|
+
return (the_real_comm == obj.the_real_comm); }
|
|
1234
|
+
bool operator!= (const Comm &obj) {
|
|
1235
|
+
return (the_real_comm != obj.the_real_comm); }
|
|
1236
|
+
// C/C++ cast and assignment
|
|
1237
|
+
inline operator MPI_Comm*() { return &the_real_comm; }
|
|
1238
|
+
inline operator MPI_Comm() const { return the_real_comm; }
|
|
1239
|
+
Comm& operator=(const MPI_Comm& obj) {
|
|
1240
|
+
the_real_comm = obj; return *this; }
|
|
1241
|
+
virtual Group Get_group( void ) const
|
|
1242
|
+
{
|
|
1243
|
+
Group v2;
|
|
1244
|
+
MPIX_CALLREF( this, MPI_Comm_group( (MPI_Comm) the_real_comm, &(v2.the_real_group) ));
|
|
1245
|
+
return v2;
|
|
1246
|
+
}
|
|
1247
|
+
virtual int Get_rank( void ) const
|
|
1248
|
+
{
|
|
1249
|
+
int v2;
|
|
1250
|
+
MPIX_CALLREF( this, MPI_Comm_rank( (MPI_Comm) the_real_comm, &v2 ));
|
|
1251
|
+
return v2;
|
|
1252
|
+
}
|
|
1253
|
+
virtual Prequest Bsend_init( const void * v1, int v2, const Datatype &v3, int v4, int v5 ) const
|
|
1254
|
+
{
|
|
1255
|
+
Prequest v7;
|
|
1256
|
+
MPIX_CALLREF( this, MPI_Bsend_init( (const void *)v1, v2, (MPI_Datatype)(v3.the_real_datatype), v4, v5, (MPI_Comm) the_real_comm, &(v7.the_real_request) ));
|
|
1257
|
+
return v7;
|
|
1258
|
+
}
|
|
1259
|
+
virtual Prequest Ssend_init( const void * v1, int v2, const Datatype &v3, int v4, int v5 ) const
|
|
1260
|
+
{
|
|
1261
|
+
Prequest v7;
|
|
1262
|
+
MPIX_CALLREF( this, MPI_Ssend_init( (const void *)v1, v2, (MPI_Datatype)(v3.the_real_datatype), v4, v5, (MPI_Comm) the_real_comm, &(v7.the_real_request) ));
|
|
1263
|
+
return v7;
|
|
1264
|
+
}
|
|
1265
|
+
virtual bool Is_inter( void ) const
|
|
1266
|
+
{
|
|
1267
|
+
int v2;
|
|
1268
|
+
MPIX_CALLREF( this, MPI_Comm_test_inter( (MPI_Comm) the_real_comm, &v2 ));
|
|
1269
|
+
return v2!= 0;
|
|
1270
|
+
}
|
|
1271
|
+
virtual Prequest Rsend_init( const void * v1, int v2, const Datatype &v3, int v4, int v5 ) const
|
|
1272
|
+
{
|
|
1273
|
+
Prequest v7;
|
|
1274
|
+
MPIX_CALLREF( this, MPI_Rsend_init( (const void *)v1, v2, (MPI_Datatype)(v3.the_real_datatype), v4, v5, (MPI_Comm) the_real_comm, &(v7.the_real_request) ));
|
|
1275
|
+
return v7;
|
|
1276
|
+
}
|
|
1277
|
+
virtual Request Ibsend( const void * v1, int v2, const Datatype &v3, int v4, int v5 ) const
|
|
1278
|
+
{
|
|
1279
|
+
Request v7;
|
|
1280
|
+
MPIX_CALLREF( this, MPI_Ibsend( (const void *)v1, v2, (MPI_Datatype)(v3.the_real_datatype), v4, v5, (MPI_Comm) the_real_comm, &(v7.the_real_request) ));
|
|
1281
|
+
return v7;
|
|
1282
|
+
}
|
|
1283
|
+
virtual void Abort( int v2 ) const
|
|
1284
|
+
{
|
|
1285
|
+
MPIX_CALLREF( this, MPI_Abort( (MPI_Comm) the_real_comm, v2 ));
|
|
1286
|
+
}
|
|
1287
|
+
virtual void Free( void )
|
|
1288
|
+
{
|
|
1289
|
+
MPIX_CALLREF( this, MPI_Comm_free( (MPI_Comm *) &the_real_comm ));
|
|
1290
|
+
}
|
|
1291
|
+
virtual Prequest Send_init( const void * v1, int v2, const Datatype &v3, int v4, int v5 ) const
|
|
1292
|
+
{
|
|
1293
|
+
Prequest v7;
|
|
1294
|
+
MPIX_CALLREF( this, MPI_Send_init( (const void *)v1, v2, (MPI_Datatype)(v3.the_real_datatype), v4, v5, (MPI_Comm) the_real_comm, &(v7.the_real_request) ));
|
|
1295
|
+
return v7;
|
|
1296
|
+
}
|
|
1297
|
+
virtual void Recv( void * v1, int v2, const Datatype &v3, int v4, int v5, Status & v7 ) const
|
|
1298
|
+
{
|
|
1299
|
+
MPIX_CALLREF( this, MPI_Recv( v1, v2, (MPI_Datatype)(v3.the_real_datatype), v4, v5, (MPI_Comm) the_real_comm, (MPI_Status *)&(v7.the_real_status ) ));
|
|
1300
|
+
}
|
|
1301
|
+
virtual void Recv( void * v1, int v2, const Datatype &v3, int v4, int v5 ) const
|
|
1302
|
+
{
|
|
1303
|
+
MPIX_CALLREF( this, MPI_Recv( v1, v2, (MPI_Datatype)(v3.the_real_datatype), v4, v5, (MPI_Comm) the_real_comm, MPI_STATUS_IGNORE ));
|
|
1304
|
+
}
|
|
1305
|
+
virtual void Sendrecv( const void * v1, int v2, const Datatype &v3, int v4, int v5, void * v6, int v7, const Datatype &v8, int v9, int v10, Status & v12 ) const
|
|
1306
|
+
{
|
|
1307
|
+
MPIX_CALLREF( this, MPI_Sendrecv( (const void *)v1, v2, (MPI_Datatype)(v3.the_real_datatype), v4, v5, v6, v7, (MPI_Datatype)(v8.the_real_datatype), v9, v10, (MPI_Comm) the_real_comm, (MPI_Status *)&(v12.the_real_status ) ));
|
|
1308
|
+
}
|
|
1309
|
+
virtual void Sendrecv( const void * v1, int v2, const Datatype &v3, int v4, int v5, void * v6, int v7, const Datatype &v8, int v9, int v10 ) const
|
|
1310
|
+
{
|
|
1311
|
+
MPIX_CALLREF( this, MPI_Sendrecv( (const void *)v1, v2, (MPI_Datatype)(v3.the_real_datatype), v4, v5, v6, v7, (MPI_Datatype)(v8.the_real_datatype), v9, v10, (MPI_Comm) the_real_comm, MPI_STATUS_IGNORE ));
|
|
1312
|
+
}
|
|
1313
|
+
virtual void Sendrecv_replace( void * v1, int v2, const Datatype &v3, int v4, int v5, int v6, int v7, Status & v9 ) const
|
|
1314
|
+
{
|
|
1315
|
+
MPIX_CALLREF( this, MPI_Sendrecv_replace( v1, v2, (MPI_Datatype)(v3.the_real_datatype), v4, v5, v6, v7, (MPI_Comm) the_real_comm, (MPI_Status *)&(v9.the_real_status ) ));
|
|
1316
|
+
}
|
|
1317
|
+
virtual void Sendrecv_replace( void * v1, int v2, const Datatype &v3, int v4, int v5, int v6, int v7 ) const
|
|
1318
|
+
{
|
|
1319
|
+
MPIX_CALLREF( this, MPI_Sendrecv_replace( v1, v2, (MPI_Datatype)(v3.the_real_datatype), v4, v5, v6, v7, (MPI_Comm) the_real_comm, MPI_STATUS_IGNORE ));
|
|
1320
|
+
}
|
|
1321
|
+
virtual int Get_topology( void ) const
|
|
1322
|
+
{
|
|
1323
|
+
int v2;
|
|
1324
|
+
MPIX_CALLREF( this, MPI_Topo_test( (MPI_Comm) the_real_comm, &v2 ));
|
|
1325
|
+
return v2;
|
|
1326
|
+
}
|
|
1327
|
+
virtual Request Isend( const void * v1, int v2, const Datatype &v3, int v4, int v5 ) const
|
|
1328
|
+
{
|
|
1329
|
+
Request v7;
|
|
1330
|
+
MPIX_CALLREF( this, MPI_Isend( (const void *)v1, v2, (MPI_Datatype)(v3.the_real_datatype), v4, v5, (MPI_Comm) the_real_comm, &(v7.the_real_request) ));
|
|
1331
|
+
return v7;
|
|
1332
|
+
}
|
|
1333
|
+
virtual void Probe( int v1, int v2, Status & v4 ) const
|
|
1334
|
+
{
|
|
1335
|
+
MPIX_CALLREF( this, MPI_Probe( v1, v2, (MPI_Comm) the_real_comm, (MPI_Status *)&(v4.the_real_status ) ));
|
|
1336
|
+
}
|
|
1337
|
+
virtual void Probe( int v1, int v2 ) const
|
|
1338
|
+
{
|
|
1339
|
+
MPIX_CALLREF( this, MPI_Probe( v1, v2, (MPI_Comm) the_real_comm, MPI_STATUS_IGNORE ));
|
|
1340
|
+
}
|
|
1341
|
+
static int Compare( const Comm &v1, const Comm &v2 )
|
|
1342
|
+
{
|
|
1343
|
+
int v3;
|
|
1344
|
+
MPIX_CALLWORLD( MPI_Comm_compare( (MPI_Comm)(v1.the_real_comm), (MPI_Comm)(v2.the_real_comm), &v3 ));
|
|
1345
|
+
return v3;
|
|
1346
|
+
}
|
|
1347
|
+
virtual int Get_size( void ) const
|
|
1348
|
+
{
|
|
1349
|
+
int v2;
|
|
1350
|
+
MPIX_CALLREF( this, MPI_Comm_size( (MPI_Comm) the_real_comm, &v2 ));
|
|
1351
|
+
return v2;
|
|
1352
|
+
}
|
|
1353
|
+
virtual Request Issend( const void * v1, int v2, const Datatype &v3, int v4, int v5 ) const
|
|
1354
|
+
{
|
|
1355
|
+
Request v7;
|
|
1356
|
+
MPIX_CALLREF( this, MPI_Issend( (const void *)v1, v2, (MPI_Datatype)(v3.the_real_datatype), v4, v5, (MPI_Comm) the_real_comm, &(v7.the_real_request) ));
|
|
1357
|
+
return v7;
|
|
1358
|
+
}
|
|
1359
|
+
virtual void Set_errhandler( const Errhandler &v2 )
|
|
1360
|
+
{
|
|
1361
|
+
MPIX_CALLREF( this, MPI_Comm_set_errhandler( (MPI_Comm) the_real_comm, (MPI_Errhandler)(v2.the_real_errhandler) ));
|
|
1362
|
+
}
|
|
1363
|
+
virtual void Send( const void * v1, int v2, const Datatype &v3, int v4, int v5 ) const
|
|
1364
|
+
{
|
|
1365
|
+
MPIX_CALLREF( this, MPI_Send( (const void *)v1, v2, (MPI_Datatype)(v3.the_real_datatype), v4, v5, (MPI_Comm) the_real_comm ));
|
|
1366
|
+
}
|
|
1367
|
+
virtual Request Irsend( const void * v1, int v2, const Datatype &v3, int v4, int v5 ) const
|
|
1368
|
+
{
|
|
1369
|
+
Request v7;
|
|
1370
|
+
MPIX_CALLREF( this, MPI_Irsend( (const void *)v1, v2, (MPI_Datatype)(v3.the_real_datatype), v4, v5, (MPI_Comm) the_real_comm, &(v7.the_real_request) ));
|
|
1371
|
+
return v7;
|
|
1372
|
+
}
|
|
1373
|
+
virtual void Ssend( const void * v1, int v2, const Datatype &v3, int v4, int v5 ) const
|
|
1374
|
+
{
|
|
1375
|
+
MPIX_CALLREF( this, MPI_Ssend( (const void *)v1, v2, (MPI_Datatype)(v3.the_real_datatype), v4, v5, (MPI_Comm) the_real_comm ));
|
|
1376
|
+
}
|
|
1377
|
+
virtual Prequest Recv_init( void * v1, int v2, const Datatype &v3, int v4, int v5 ) const
|
|
1378
|
+
{
|
|
1379
|
+
Prequest v7;
|
|
1380
|
+
MPIX_CALLREF( this, MPI_Recv_init( v1, v2, (MPI_Datatype)(v3.the_real_datatype), v4, v5, (MPI_Comm) the_real_comm, &(v7.the_real_request) ));
|
|
1381
|
+
return v7;
|
|
1382
|
+
}
|
|
1383
|
+
virtual bool Iprobe( int v1, int v2, Status & v5 ) const
|
|
1384
|
+
{
|
|
1385
|
+
int v4;
|
|
1386
|
+
MPIX_CALLREF( this, MPI_Iprobe( v1, v2, (MPI_Comm) the_real_comm, &v4, (MPI_Status *)&(v5.the_real_status ) ));
|
|
1387
|
+
return v4!= 0;
|
|
1388
|
+
}
|
|
1389
|
+
virtual bool Iprobe( int v1, int v2 ) const
|
|
1390
|
+
{
|
|
1391
|
+
int v4;
|
|
1392
|
+
MPIX_CALLREF( this, MPI_Iprobe( v1, v2, (MPI_Comm) the_real_comm, &v4, MPI_STATUS_IGNORE ));
|
|
1393
|
+
return v4!= 0;
|
|
1394
|
+
}
|
|
1395
|
+
virtual void Bsend( const void * v1, int v2, const Datatype &v3, int v4, int v5 ) const
|
|
1396
|
+
{
|
|
1397
|
+
MPIX_CALLREF( this, MPI_Bsend( (const void *)v1, v2, (MPI_Datatype)(v3.the_real_datatype), v4, v5, (MPI_Comm) the_real_comm ));
|
|
1398
|
+
}
|
|
1399
|
+
virtual Request Irecv( void * v1, int v2, const Datatype &v3, int v4, int v5 ) const
|
|
1400
|
+
{
|
|
1401
|
+
Request v7;
|
|
1402
|
+
MPIX_CALLREF( this, MPI_Irecv( v1, v2, (MPI_Datatype)(v3.the_real_datatype), v4, v5, (MPI_Comm) the_real_comm, &(v7.the_real_request) ));
|
|
1403
|
+
return v7;
|
|
1404
|
+
}
|
|
1405
|
+
virtual Errhandler Get_errhandler( void ) const
|
|
1406
|
+
{
|
|
1407
|
+
Errhandler v2;
|
|
1408
|
+
MPIX_CALLREF( this, MPI_Comm_get_errhandler( (MPI_Comm) the_real_comm, &(v2.the_real_errhandler) ));
|
|
1409
|
+
return v2;
|
|
1410
|
+
}
|
|
1411
|
+
virtual void Rsend( const void * v1, int v2, const Datatype &v3, int v4, int v5 ) const
|
|
1412
|
+
{
|
|
1413
|
+
MPIX_CALLREF( this, MPI_Rsend( (const void *)v1, v2, (MPI_Datatype)(v3.the_real_datatype), v4, v5, (MPI_Comm) the_real_comm ));
|
|
1414
|
+
}
|
|
1415
|
+
virtual void Gatherv( const void * v1, int v2, const Datatype &v3, void * v4, const int v5[], const int v6[], const Datatype &v7, int v8 ) const
|
|
1416
|
+
{
|
|
1417
|
+
MPIX_CALLREF( this, MPI_Gatherv( (const void *)v1, v2, (MPI_Datatype)(v3.the_real_datatype), v4, (const int *)v5, (const int *)v6, (MPI_Datatype)(v7.the_real_datatype), v8, (MPI_Comm) the_real_comm ));
|
|
1418
|
+
}
|
|
1419
|
+
virtual void Disconnect( void )
|
|
1420
|
+
{
|
|
1421
|
+
MPIX_CALLREF( this, MPI_Comm_disconnect( (MPI_Comm *) &the_real_comm ));
|
|
1422
|
+
}
|
|
1423
|
+
virtual void Allreduce( const void * v1, void * v2, int v3, const Datatype &v4, const Op &v5 ) const
|
|
1424
|
+
{
|
|
1425
|
+
MPIX_CALLREF( this, MPI_Allreduce( (const void *)v1, v2, v3, (MPI_Datatype)(v4.the_real_datatype), (MPI_Op)(v5.the_real_op), (MPI_Comm) the_real_comm ));
|
|
1426
|
+
}
|
|
1427
|
+
virtual void Alltoallw( const void * v1, const int v2[], const int v3[], const Datatype v4[], void * v5, const int v6[], const int v7[], const Datatype v8[] ) const
|
|
1428
|
+
{
|
|
1429
|
+
MPI_Datatype *l4 = new MPI_Datatype[(unsigned long)Get_size()];
|
|
1430
|
+
MPI_Datatype *l8 = new MPI_Datatype[(unsigned long)Get_size()];
|
|
1431
|
+
{
|
|
1432
|
+
int i4;
|
|
1433
|
+
for (i4=0;i4<Get_size();i4++) {
|
|
1434
|
+
l4[i4] = v4[i4].the_real_datatype;
|
|
1435
|
+
}
|
|
1436
|
+
}
|
|
1437
|
+
{
|
|
1438
|
+
int i8;
|
|
1439
|
+
for (i8=0;i8<Get_size();i8++) {
|
|
1440
|
+
l8[i8] = v8[i8].the_real_datatype;
|
|
1441
|
+
}
|
|
1442
|
+
}
|
|
1443
|
+
MPIX_CALLREF( this, MPI_Alltoallw( (const void *)v1, (const int *)v2, (const int *)v3, l4, v5, (const int *)v6, (const int *)v7, l8, (MPI_Comm) the_real_comm ));
|
|
1444
|
+
delete[] l4;
|
|
1445
|
+
delete[] l8;
|
|
1446
|
+
}
|
|
1447
|
+
static Intercomm Join( const int v1 ) ;
|
|
1448
|
+
virtual void Alltoall( const void * v1, int v2, const Datatype &v3, void * v4, int v5, const Datatype &v6 ) const
|
|
1449
|
+
{
|
|
1450
|
+
MPIX_CALLREF( this, MPI_Alltoall( (const void *)v1, v2, (MPI_Datatype)(v3.the_real_datatype), v4, v5, (MPI_Datatype)(v6.the_real_datatype), (MPI_Comm) the_real_comm ));
|
|
1451
|
+
}
|
|
1452
|
+
virtual bool Get_attr( int v2, void * v3 ) const
|
|
1453
|
+
{
|
|
1454
|
+
int v4;
|
|
1455
|
+
MPIX_CALLREF( this, MPI_Comm_get_attr( (MPI_Comm) the_real_comm, v2, v3, &v4 ));
|
|
1456
|
+
return v4!= 0;
|
|
1457
|
+
}
|
|
1458
|
+
virtual void Barrier( void ) const
|
|
1459
|
+
{
|
|
1460
|
+
MPIX_CALLREF( this, MPI_Barrier( (MPI_Comm) the_real_comm ));
|
|
1461
|
+
}
|
|
1462
|
+
virtual void Bcast( void * v1, int v2, const Datatype &v3, int v4 ) const
|
|
1463
|
+
{
|
|
1464
|
+
MPIX_CALLREF( this, MPI_Bcast( v1, v2, (MPI_Datatype)(v3.the_real_datatype), v4, (MPI_Comm) the_real_comm ));
|
|
1465
|
+
}
|
|
1466
|
+
virtual void Set_attr( int v2, const void * v3 )
|
|
1467
|
+
{
|
|
1468
|
+
MPIX_CALLREF( this, MPI_Comm_set_attr( (MPI_Comm) the_real_comm, v2, (void *)v3 ));
|
|
1469
|
+
}
|
|
1470
|
+
virtual void Set_name( const char * v2 )
|
|
1471
|
+
{
|
|
1472
|
+
MPIX_CALLREF( this, MPI_Comm_set_name( (MPI_Comm) the_real_comm, (const char *)v2 ));
|
|
1473
|
+
}
|
|
1474
|
+
static Intercomm Get_parent( void ) ;
|
|
1475
|
+
virtual void Alltoallv( const void * v1, const int v2[], const int v3[], const Datatype &v4, void * v5, const int v6[], const int v7[], const Datatype &v8 ) const
|
|
1476
|
+
{
|
|
1477
|
+
MPIX_CALLREF( this, MPI_Alltoallv( (const void *)v1, (const int *)v2, (const int *)v3, (MPI_Datatype)(v4.the_real_datatype), v5, (const int *)v6, (const int *)v7, (MPI_Datatype)(v8.the_real_datatype), (MPI_Comm) the_real_comm ));
|
|
1478
|
+
}
|
|
1479
|
+
virtual void Reduce_scatter( const void * v1, void * v2, const int v3[], const Datatype &v4, const Op &v5 ) const
|
|
1480
|
+
{
|
|
1481
|
+
MPIX_CALLREF( this, MPI_Reduce_scatter( (const void *)v1, v2, v3, (MPI_Datatype)(v4.the_real_datatype), (MPI_Op)(v5.the_real_op), (MPI_Comm) the_real_comm ));
|
|
1482
|
+
}
|
|
1483
|
+
virtual void Scatter( const void * v1, int v2, const Datatype &v3, void * v4, int v5, const Datatype &v6, int v7 ) const
|
|
1484
|
+
{
|
|
1485
|
+
MPIX_CALLREF( this, MPI_Scatter( (const void *)v1, v2, (MPI_Datatype)(v3.the_real_datatype), v4, v5, (MPI_Datatype)(v6.the_real_datatype), v7, (MPI_Comm) the_real_comm ));
|
|
1486
|
+
}
|
|
1487
|
+
virtual void Gather( const void * v1, int v2, const Datatype &v3, void * v4, int v5, const Datatype &v6, int v7 ) const
|
|
1488
|
+
{
|
|
1489
|
+
MPIX_CALLREF( this, MPI_Gather( (const void *)v1, v2, (MPI_Datatype)(v3.the_real_datatype), v4, v5, (MPI_Datatype)(v6.the_real_datatype), v7, (MPI_Comm) the_real_comm ));
|
|
1490
|
+
}
|
|
1491
|
+
static void Free_keyval( int &v1 )
|
|
1492
|
+
{
|
|
1493
|
+
MPIX_CALLWORLD( MPI_Comm_free_keyval( &v1 ));
|
|
1494
|
+
}
|
|
1495
|
+
virtual void Reduce( const void * v1, void * v2, int v3, const Datatype &v4, const Op &v5, int v6 ) const
|
|
1496
|
+
{
|
|
1497
|
+
MPIX_CALLREF( this, MPI_Reduce( (const void *)v1, v2, v3, (MPI_Datatype)(v4.the_real_datatype), (MPI_Op)(v5.the_real_op), v6, (MPI_Comm) the_real_comm ));
|
|
1498
|
+
}
|
|
1499
|
+
virtual void Allgather( const void * v1, int v2, const Datatype &v3, void * v4, int v5, const Datatype &v6 ) const
|
|
1500
|
+
{
|
|
1501
|
+
MPIX_CALLREF( this, MPI_Allgather( (const void *)v1, v2, (MPI_Datatype)(v3.the_real_datatype), v4, v5, (MPI_Datatype)(v6.the_real_datatype), (MPI_Comm) the_real_comm ));
|
|
1502
|
+
}
|
|
1503
|
+
virtual void Delete_attr( int v2 )
|
|
1504
|
+
{
|
|
1505
|
+
MPIX_CALLREF( this, MPI_Comm_delete_attr( (MPI_Comm) the_real_comm, v2 ));
|
|
1506
|
+
}
|
|
1507
|
+
virtual void Scatterv( const void * v1, const int v2[], const int v3[], const Datatype &v4, void * v5, int v6, const Datatype &v7, int v8 ) const
|
|
1508
|
+
{
|
|
1509
|
+
MPIX_CALLREF( this, MPI_Scatterv( (const void *)v1, (const int *)v2, (const int *)v3, (MPI_Datatype)(v4.the_real_datatype), v5, v6, (MPI_Datatype)(v7.the_real_datatype), v8, (MPI_Comm) the_real_comm ));
|
|
1510
|
+
}
|
|
1511
|
+
virtual void Get_name( char * v2, int &v3 ) const
|
|
1512
|
+
{
|
|
1513
|
+
MPIX_CALLREF( this, MPI_Comm_get_name( (MPI_Comm) the_real_comm, v2, &v3 ));
|
|
1514
|
+
}
|
|
1515
|
+
virtual void Allgatherv( const void * v1, int v2, const Datatype &v3, void * v4, const int v5[], const int v6[], const Datatype &v7 ) const
|
|
1516
|
+
{
|
|
1517
|
+
MPIX_CALLREF( this, MPI_Allgatherv( (const void *)v1, v2, (MPI_Datatype)(v3.the_real_datatype), v4, (const int *)v5, (const int *)v6, (MPI_Datatype)(v7.the_real_datatype), (MPI_Comm) the_real_comm ));
|
|
1518
|
+
}
|
|
1519
|
+
virtual Comm &Clone(void) const = 0;
|
|
1520
|
+
typedef int Copy_attr_function(const Comm& oldcomm, int comm_keyval, void* extra_state, void* attribute_val_in, void* attribute_val_out, bool& flag);
|
|
1521
|
+
typedef int Delete_attr_function(Comm& comm, int comm_keyval, void* attribute_val, void* extra_state);
|
|
1522
|
+
typedef void Errhandler_function(Comm &, int *, ... );
|
|
1523
|
+
typedef Errhandler_function Errhandler_fn;
|
|
1524
|
+
|
|
1525
|
+
static int Create_keyval( Copy_attr_function *, Delete_attr_function *,
|
|
1526
|
+
void * );
|
|
1527
|
+
|
|
1528
|
+
static int NULL_COPY_FN( const Comm &oldcomm MPIR_ARGUNUSED,
|
|
1529
|
+
int keyval MPIR_ARGUNUSED, void *ex MPIR_ARGUNUSED,
|
|
1530
|
+
void *attr_in MPIR_ARGUNUSED, void *attr_out MPIR_ARGUNUSED,
|
|
1531
|
+
bool &flag ) { flag = 0; return 0;}
|
|
1532
|
+
static int NULL_DELETE_FN( Comm &comm MPIR_ARGUNUSED,
|
|
1533
|
+
int keyval MPIR_ARGUNUSED, void * attr MPIR_ARGUNUSED,
|
|
1534
|
+
void *ex MPIR_ARGUNUSED ) { return 0; }
|
|
1535
|
+
static int DUP_FN( const Comm &oldcomm MPIR_ARGUNUSED,
|
|
1536
|
+
int keyval MPIR_ARGUNUSED, void *ex MPIR_ARGUNUSED,
|
|
1537
|
+
void *attr_in, void *attr_out, bool &flag ) { flag = 1;
|
|
1538
|
+
*(void **)attr_out = attr_in; return 0;}
|
|
1539
|
+
static Errhandler Create_errhandler( Errhandler_function * );
|
|
1540
|
+
|
|
1541
|
+
virtual void Call_errhandler( int v2 ) const;
|
|
1542
|
+
virtual void Reduce_scatter_block( const void * v1, void * v2, int v3, const Datatype &v4, const Op &v5 ) const
|
|
1543
|
+
{
|
|
1544
|
+
MPIX_CALLREF( this, MPI_Reduce_scatter_block( (const void *)v1, v2, v3, (MPI_Datatype)(v4.the_real_datatype), (MPI_Op)(v5.the_real_op), (MPI_Comm) the_real_comm ));
|
|
1545
|
+
}
|
|
1546
|
+
};
|
|
1547
|
+
|
|
1548
|
+
class Nullcomm : public Comm {
|
|
1549
|
+
|
|
1550
|
+
public:
|
|
1551
|
+
// new/delete
|
|
1552
|
+
|
|
1553
|
+
inline Nullcomm(MPI_Comm obj) : Comm(obj) {}
|
|
1554
|
+
inline Nullcomm(void) : Comm() {}
|
|
1555
|
+
|
|
1556
|
+
virtual ~Nullcomm() {}
|
|
1557
|
+
// copy/assignment
|
|
1558
|
+
|
|
1559
|
+
Nullcomm(const Nullcomm &obj) : Comm(obj) {}
|
|
1560
|
+
|
|
1561
|
+
Nullcomm& operator=(const Nullcomm &obj) {
|
|
1562
|
+
the_real_comm = obj.the_real_comm; return *this; }
|
|
1563
|
+
|
|
1564
|
+
// C/C++ cast and assignment
|
|
1565
|
+
inline operator MPI_Comm*() { return &the_real_comm; }
|
|
1566
|
+
inline operator MPI_Comm() const { return the_real_comm; }
|
|
1567
|
+
Nullcomm& operator=(const MPI_Comm& obj) {
|
|
1568
|
+
the_real_comm = obj; return *this; }
|
|
1569
|
+
|
|
1570
|
+
// If the compiler does not support variable return types, return a
|
|
1571
|
+
// reference to Comm. The user must then cast this to the correct type
|
|
1572
|
+
// (Standard-conforming C++ compilers support variable return types)
|
|
1573
|
+
#ifdef HAVE_NO_VARIABLE_RETURN_TYPE_SUPPORT
|
|
1574
|
+
virtual Comm & Clone(void) const {
|
|
1575
|
+
Comm *clone = new Nullcomm(MPI_COMM_NULL);
|
|
1576
|
+
return *clone;
|
|
1577
|
+
}
|
|
1578
|
+
#else
|
|
1579
|
+
virtual Nullcomm & Clone(void) const {
|
|
1580
|
+
Nullcomm *clone = new Nullcomm();
|
|
1581
|
+
return *clone;
|
|
1582
|
+
}
|
|
1583
|
+
#endif
|
|
1584
|
+
};
|
|
1585
|
+
|
|
1586
|
+
class Intercomm : public Comm {
|
|
1587
|
+
friend class Intracomm;
|
|
1588
|
+
|
|
1589
|
+
public:
|
|
1590
|
+
// new/delete
|
|
1591
|
+
|
|
1592
|
+
inline Intercomm(MPI_Comm obj) : Comm(obj) {}
|
|
1593
|
+
inline Intercomm(void) : Comm() {}
|
|
1594
|
+
|
|
1595
|
+
virtual ~Intercomm() {}
|
|
1596
|
+
// copy/assignment
|
|
1597
|
+
|
|
1598
|
+
Intercomm(const Intercomm &obj) : Comm(obj) {}
|
|
1599
|
+
|
|
1600
|
+
Intercomm& operator=(const Intercomm &obj) {
|
|
1601
|
+
the_real_comm = obj.the_real_comm; return *this; }
|
|
1602
|
+
|
|
1603
|
+
// C/C++ cast and assignment
|
|
1604
|
+
inline operator MPI_Comm*() { return &the_real_comm; }
|
|
1605
|
+
inline operator MPI_Comm() const { return the_real_comm; }
|
|
1606
|
+
Intercomm& operator=(const MPI_Comm& obj) {
|
|
1607
|
+
the_real_comm = obj; return *this; }
|
|
1608
|
+
virtual Intracomm Merge( bool v2 ) const;
|
|
1609
|
+
virtual Group Get_remote_group( void ) const
|
|
1610
|
+
{
|
|
1611
|
+
Group v2;
|
|
1612
|
+
MPIX_CALLREF( this, MPI_Comm_remote_group( (MPI_Comm) the_real_comm, &(v2.the_real_group) ));
|
|
1613
|
+
return v2;
|
|
1614
|
+
}
|
|
1615
|
+
virtual int Get_remote_size( void ) const
|
|
1616
|
+
{
|
|
1617
|
+
int v2;
|
|
1618
|
+
MPIX_CALLREF( this, MPI_Comm_remote_size( (MPI_Comm) the_real_comm, &v2 ));
|
|
1619
|
+
return v2;
|
|
1620
|
+
}
|
|
1621
|
+
Intercomm Dup( void ) const
|
|
1622
|
+
{
|
|
1623
|
+
Intercomm v2;
|
|
1624
|
+
MPIX_CALLREF( this, MPI_Comm_dup( (MPI_Comm) the_real_comm, &(v2.the_real_comm) ));
|
|
1625
|
+
return v2;
|
|
1626
|
+
}
|
|
1627
|
+
virtual Intercomm Split( int v2, int v3 ) const
|
|
1628
|
+
{
|
|
1629
|
+
Intercomm v4;
|
|
1630
|
+
MPIX_CALLREF( this, MPI_Comm_split( (MPI_Comm) the_real_comm, v2, v3, &(v4.the_real_comm) ));
|
|
1631
|
+
return v4;
|
|
1632
|
+
}
|
|
1633
|
+
|
|
1634
|
+
// If the compiler does not support variable return types, return a
|
|
1635
|
+
// reference to Comm. The user must then cast this to the correct type
|
|
1636
|
+
// (Standard-conforming C++ compilers support variable return types)
|
|
1637
|
+
#ifdef HAVE_NO_VARIABLE_RETURN_TYPE_SUPPORT
|
|
1638
|
+
virtual Comm & Clone(void) const {
|
|
1639
|
+
MPI_Comm ncomm;
|
|
1640
|
+
MPI_Comm_dup( (MPI_Comm)the_real_comm, &ncomm);
|
|
1641
|
+
Comm *clone = new Intercomm(ncomm);
|
|
1642
|
+
return *clone;
|
|
1643
|
+
}
|
|
1644
|
+
#else
|
|
1645
|
+
virtual Intercomm & Clone(void) const {
|
|
1646
|
+
MPI_Comm ncomm;
|
|
1647
|
+
MPI_Comm_dup( (MPI_Comm)the_real_comm, &ncomm);
|
|
1648
|
+
Intercomm *clone = new Intercomm(ncomm);
|
|
1649
|
+
return *clone;
|
|
1650
|
+
}
|
|
1651
|
+
#endif
|
|
1652
|
+
};
|
|
1653
|
+
|
|
1654
|
+
class Intracomm : public Comm {
|
|
1655
|
+
friend class Cartcomm;
|
|
1656
|
+
friend class Graphcomm;
|
|
1657
|
+
friend class Datatype;
|
|
1658
|
+
|
|
1659
|
+
public:
|
|
1660
|
+
// new/delete
|
|
1661
|
+
|
|
1662
|
+
inline Intracomm(MPI_Comm obj) : Comm(obj) {}
|
|
1663
|
+
inline Intracomm(void) : Comm() {}
|
|
1664
|
+
|
|
1665
|
+
virtual ~Intracomm() {}
|
|
1666
|
+
// copy/assignment
|
|
1667
|
+
|
|
1668
|
+
Intracomm(const Intracomm &obj) : Comm(obj) {}
|
|
1669
|
+
|
|
1670
|
+
Intracomm& operator=(const Intracomm &obj) {
|
|
1671
|
+
the_real_comm = obj.the_real_comm; return *this; }
|
|
1672
|
+
|
|
1673
|
+
// C/C++ cast and assignment
|
|
1674
|
+
inline operator MPI_Comm*() { return &the_real_comm; }
|
|
1675
|
+
inline operator MPI_Comm() const { return the_real_comm; }
|
|
1676
|
+
Intracomm& operator=(const MPI_Comm& obj) {
|
|
1677
|
+
the_real_comm = obj; return *this; }
|
|
1678
|
+
virtual Intercomm Create_intercomm( int v2, const Comm &v3, int v4, int v5 ) const
|
|
1679
|
+
{
|
|
1680
|
+
Intercomm v6;
|
|
1681
|
+
MPIX_CALLREF( this, MPI_Intercomm_create( (MPI_Comm) the_real_comm, v2, (MPI_Comm)(v3.the_real_comm), v4, v5, &(v6.the_real_comm) ));
|
|
1682
|
+
return v6;
|
|
1683
|
+
}
|
|
1684
|
+
virtual Intracomm Split( int v2, int v3 ) const
|
|
1685
|
+
{
|
|
1686
|
+
Intracomm v4;
|
|
1687
|
+
MPIX_CALLREF( this, MPI_Comm_split( (MPI_Comm) the_real_comm, v2, v3, &(v4.the_real_comm) ));
|
|
1688
|
+
return v4;
|
|
1689
|
+
}
|
|
1690
|
+
virtual Graphcomm Create_graph( int v2, const int v3[], const int v4[], bool v5 ) const;
|
|
1691
|
+
virtual Cartcomm Create_cart( int v2, const int v3[], const bool v4[], bool v5 ) const;
|
|
1692
|
+
virtual Intracomm Create( const Group &v2 ) const
|
|
1693
|
+
{
|
|
1694
|
+
Intracomm v3;
|
|
1695
|
+
MPIX_CALLREF( this, MPI_Comm_create( (MPI_Comm) the_real_comm, (MPI_Group)(v2.the_real_group), &(v3.the_real_comm) ));
|
|
1696
|
+
return v3;
|
|
1697
|
+
}
|
|
1698
|
+
Intracomm Dup( void ) const
|
|
1699
|
+
{
|
|
1700
|
+
Intracomm v2;
|
|
1701
|
+
MPIX_CALLREF( this, MPI_Comm_dup( (MPI_Comm) the_real_comm, &(v2.the_real_comm) ));
|
|
1702
|
+
return v2;
|
|
1703
|
+
}
|
|
1704
|
+
virtual void Scan( const void * v1, void * v2, int v3, const Datatype &v4, const Op &v5 ) const
|
|
1705
|
+
{
|
|
1706
|
+
MPIX_CALLREF( this, MPI_Scan( (const void *)v1, v2, v3, (MPI_Datatype)(v4.the_real_datatype), (MPI_Op)(v5.the_real_op), (MPI_Comm) the_real_comm ));
|
|
1707
|
+
}
|
|
1708
|
+
virtual void Exscan( const void * v1, void * v2, int v3, const Datatype &v4, const Op &v5 ) const
|
|
1709
|
+
{
|
|
1710
|
+
MPIX_CALLREF( this, MPI_Exscan( (const void *)v1, v2, v3, (MPI_Datatype)(v4.the_real_datatype), (MPI_Op)(v5.the_real_op), (MPI_Comm) the_real_comm ));
|
|
1711
|
+
}
|
|
1712
|
+
virtual Intercomm Accept( const char * v1, const Info &v2, int v3 ) const
|
|
1713
|
+
{
|
|
1714
|
+
Intercomm v5;
|
|
1715
|
+
MPIX_CALLREF( this, MPI_Comm_accept( (const char *)v1, (MPI_Info)(v2.the_real_info), v3, (MPI_Comm) the_real_comm, &(v5.the_real_comm) ));
|
|
1716
|
+
return v5;
|
|
1717
|
+
}
|
|
1718
|
+
virtual Intercomm Connect( const char * v1, const Info &v2, int v3 ) const
|
|
1719
|
+
{
|
|
1720
|
+
Intercomm v5;
|
|
1721
|
+
MPIX_CALLREF( this, MPI_Comm_connect( (const char *)v1, (MPI_Info)(v2.the_real_info), v3, (MPI_Comm) the_real_comm, &(v5.the_real_comm) ));
|
|
1722
|
+
return v5;
|
|
1723
|
+
}
|
|
1724
|
+
|
|
1725
|
+
// If the compiler does not support variable return types, return a
|
|
1726
|
+
// reference to Comm. The user must then cast this to the correct type
|
|
1727
|
+
// (Standard-conforming C++ compilers support variable return types)
|
|
1728
|
+
#ifdef HAVE_NO_VARIABLE_RETURN_TYPE_SUPPORT
|
|
1729
|
+
virtual Comm & Clone(void) const {
|
|
1730
|
+
MPI_Comm ncomm;
|
|
1731
|
+
MPI_Comm_dup( (MPI_Comm)the_real_comm, &ncomm);
|
|
1732
|
+
Comm *clone = new Intracomm(ncomm);
|
|
1733
|
+
return *clone;
|
|
1734
|
+
}
|
|
1735
|
+
#else
|
|
1736
|
+
virtual Intracomm & Clone(void) const {
|
|
1737
|
+
MPI_Comm ncomm;
|
|
1738
|
+
MPI_Comm_dup( (MPI_Comm)the_real_comm, &ncomm);
|
|
1739
|
+
Intracomm *clone = new Intracomm(ncomm);
|
|
1740
|
+
return *clone;
|
|
1741
|
+
}
|
|
1742
|
+
#endif
|
|
1743
|
+
|
|
1744
|
+
Intercomm Spawn(const char* command, const char* argv[], int maxprocs, const MPI::Info& info, int root) const {
|
|
1745
|
+
Intercomm ic;
|
|
1746
|
+
MPIX_CALLREF( this, MPI_Comm_spawn( (char *)command,
|
|
1747
|
+
(char **)argv,
|
|
1748
|
+
maxprocs, info.the_real_info, root, the_real_comm,
|
|
1749
|
+
&(ic.the_real_comm), MPI_ERRCODES_IGNORE ) );
|
|
1750
|
+
return ic;
|
|
1751
|
+
}
|
|
1752
|
+
Intercomm Spawn(const char* command, const char* argv[], int maxprocs, const MPI::Info& info, int root, int array_of_errcodes[]) const {
|
|
1753
|
+
Intercomm ic;
|
|
1754
|
+
MPIX_CALLREF( this, MPI_Comm_spawn( (char *)command,
|
|
1755
|
+
(char **)argv,
|
|
1756
|
+
maxprocs, info.the_real_info, root, the_real_comm,
|
|
1757
|
+
&(ic.the_real_comm), array_of_errcodes ) );
|
|
1758
|
+
return ic;
|
|
1759
|
+
}
|
|
1760
|
+
Intercomm Spawn_multiple(int count, const char* array_of_commands[], const char** array_of_argv[], const int array_of_maxprocs[], const MPI::Info array_of_info[], int root) {
|
|
1761
|
+
Intercomm ic;
|
|
1762
|
+
MPI_Info *li = new MPI_Info [(unsigned long)count];
|
|
1763
|
+
int i;
|
|
1764
|
+
for (i=0; i<count; i++) {
|
|
1765
|
+
li[i] = array_of_info[i].the_real_info;
|
|
1766
|
+
}
|
|
1767
|
+
MPIX_CALLREF( this, MPI_Comm_spawn_multiple( count,
|
|
1768
|
+
(char **)array_of_commands,
|
|
1769
|
+
(char ***)array_of_argv, (int *)array_of_maxprocs,
|
|
1770
|
+
li, root, the_real_comm, &(ic.the_real_comm),
|
|
1771
|
+
MPI_ERRCODES_IGNORE ) );
|
|
1772
|
+
delete [] li;
|
|
1773
|
+
return ic;
|
|
1774
|
+
}
|
|
1775
|
+
Intercomm Spawn_multiple(int count, const char* array_of_commands[], const char** array_of_argv[], const int array_of_maxprocs[], const MPI::Info array_of_info[], int root, int array_of_errcodes[]) {
|
|
1776
|
+
Intercomm ic;
|
|
1777
|
+
MPI_Info *li = new MPI_Info [(unsigned long)count];
|
|
1778
|
+
int i;
|
|
1779
|
+
for (i=0; i<count; i++) {
|
|
1780
|
+
li[i] = array_of_info[i].the_real_info;
|
|
1781
|
+
}
|
|
1782
|
+
MPIX_CALLREF( this, MPI_Comm_spawn_multiple( count,
|
|
1783
|
+
(char **)array_of_commands,
|
|
1784
|
+
(char ***)array_of_argv, (int *)array_of_maxprocs,
|
|
1785
|
+
li, root, the_real_comm, &(ic.the_real_comm),
|
|
1786
|
+
array_of_errcodes ) );
|
|
1787
|
+
delete [] li;
|
|
1788
|
+
return ic;
|
|
1789
|
+
}
|
|
1790
|
+
|
|
1791
|
+
};
|
|
1792
|
+
|
|
1793
|
+
class Grequest : public Request {
|
|
1794
|
+
|
|
1795
|
+
public:
|
|
1796
|
+
// new/delete
|
|
1797
|
+
|
|
1798
|
+
inline Grequest(MPI_Request obj) : Request(obj) {}
|
|
1799
|
+
inline Grequest(void) : Request() {}
|
|
1800
|
+
|
|
1801
|
+
virtual ~Grequest() {}
|
|
1802
|
+
// copy/assignment
|
|
1803
|
+
|
|
1804
|
+
Grequest(const Grequest &obj) : Request(obj) {}
|
|
1805
|
+
|
|
1806
|
+
Grequest& operator=(const Grequest &obj) {
|
|
1807
|
+
the_real_request = obj.the_real_request; return *this; }
|
|
1808
|
+
|
|
1809
|
+
// logical
|
|
1810
|
+
bool operator== (const Grequest &obj) {
|
|
1811
|
+
return (the_real_request == obj.the_real_request); }
|
|
1812
|
+
bool operator!= (const Grequest &obj) {
|
|
1813
|
+
return (the_real_request != obj.the_real_request); }
|
|
1814
|
+
// C/C++ cast and assignment
|
|
1815
|
+
inline operator MPI_Request*() { return &the_real_request; }
|
|
1816
|
+
inline operator MPI_Request() const { return the_real_request; }
|
|
1817
|
+
Grequest& operator=(const MPI_Request& obj) {
|
|
1818
|
+
the_real_request = obj; return *this; }
|
|
1819
|
+
virtual void Complete( void )
|
|
1820
|
+
{
|
|
1821
|
+
MPIX_CALLWORLD( MPI_Grequest_complete( (MPI_Request) the_real_request ));
|
|
1822
|
+
}
|
|
1823
|
+
|
|
1824
|
+
typedef int Query_function( void *, Status & );
|
|
1825
|
+
typedef int Free_function( void * );
|
|
1826
|
+
typedef int Cancel_function( void *, bool );
|
|
1827
|
+
|
|
1828
|
+
Grequest Start( Query_function *query_fn,
|
|
1829
|
+
Free_function *free_fn,
|
|
1830
|
+
Cancel_function *cancel_fn,
|
|
1831
|
+
void *extra_state );
|
|
1832
|
+
};
|
|
1833
|
+
|
|
1834
|
+
class Win {
|
|
1835
|
+
|
|
1836
|
+
protected:
|
|
1837
|
+
MPI_Win the_real_win;
|
|
1838
|
+
|
|
1839
|
+
public:
|
|
1840
|
+
// new/delete
|
|
1841
|
+
|
|
1842
|
+
inline Win(MPI_Win obj) : the_real_win(obj) {}
|
|
1843
|
+
inline Win(void) : the_real_win(MPI_WIN_NULL) {}
|
|
1844
|
+
|
|
1845
|
+
virtual ~Win() {}
|
|
1846
|
+
// copy/assignment
|
|
1847
|
+
|
|
1848
|
+
Win(const Win &obj) : the_real_win(obj.the_real_win){}
|
|
1849
|
+
|
|
1850
|
+
Win& operator=(const Win &obj) {
|
|
1851
|
+
the_real_win = obj.the_real_win; return *this; }
|
|
1852
|
+
|
|
1853
|
+
// logical
|
|
1854
|
+
bool operator== (const Win &obj) {
|
|
1855
|
+
return (the_real_win == obj.the_real_win); }
|
|
1856
|
+
bool operator!= (const Win &obj) {
|
|
1857
|
+
return (the_real_win != obj.the_real_win); }
|
|
1858
|
+
// C/C++ cast and assignment
|
|
1859
|
+
inline operator MPI_Win*() { return &the_real_win; }
|
|
1860
|
+
inline operator MPI_Win() const { return the_real_win; }
|
|
1861
|
+
Win& operator=(const MPI_Win& obj) {
|
|
1862
|
+
the_real_win = obj; return *this; }
|
|
1863
|
+
virtual Group Get_group( void ) const
|
|
1864
|
+
{
|
|
1865
|
+
Group v2;
|
|
1866
|
+
MPIX_CALLREF( this, MPI_Win_get_group( (MPI_Win) the_real_win, &(v2.the_real_group) ));
|
|
1867
|
+
return v2;
|
|
1868
|
+
}
|
|
1869
|
+
virtual void Fence( int v1 ) const
|
|
1870
|
+
{
|
|
1871
|
+
MPIX_CALLREF( this, MPI_Win_fence( v1, (MPI_Win) the_real_win ));
|
|
1872
|
+
}
|
|
1873
|
+
virtual void Start( const Group &v1, int v2 ) const
|
|
1874
|
+
{
|
|
1875
|
+
MPIX_CALLREF( this, MPI_Win_start( (MPI_Group)(v1.the_real_group), v2, (MPI_Win) the_real_win ));
|
|
1876
|
+
}
|
|
1877
|
+
virtual void Free( void )
|
|
1878
|
+
{
|
|
1879
|
+
MPIX_CALLREF( this, MPI_Win_free( (MPI_Win *) &the_real_win ));
|
|
1880
|
+
}
|
|
1881
|
+
virtual void Put( const void * v1, int v2, const Datatype &v3, int v4, Aint v5, int v6, const Datatype &v7 ) const
|
|
1882
|
+
{
|
|
1883
|
+
MPIX_CALLREF( this, MPI_Put( (const void *)v1, v2, (MPI_Datatype)(v3.the_real_datatype), v4, v5, v6, (MPI_Datatype)(v7.the_real_datatype), (MPI_Win) the_real_win ));
|
|
1884
|
+
}
|
|
1885
|
+
virtual void Wait( void ) const
|
|
1886
|
+
{
|
|
1887
|
+
MPIX_CALLREF( this, MPI_Win_wait( (MPI_Win) the_real_win ));
|
|
1888
|
+
}
|
|
1889
|
+
virtual bool Test( void ) const
|
|
1890
|
+
{
|
|
1891
|
+
int v2;
|
|
1892
|
+
MPIX_CALLREF( this, MPI_Win_test( (MPI_Win) the_real_win, &v2 ));
|
|
1893
|
+
return v2!= 0;
|
|
1894
|
+
}
|
|
1895
|
+
virtual void Get( void * v1, int v2, const Datatype &v3, int v4, Aint v5, int v6, const Datatype &v7 ) const
|
|
1896
|
+
{
|
|
1897
|
+
MPIX_CALLREF( this, MPI_Get( v1, v2, (MPI_Datatype)(v3.the_real_datatype), v4, v5, v6, (MPI_Datatype)(v7.the_real_datatype), (MPI_Win) the_real_win ));
|
|
1898
|
+
}
|
|
1899
|
+
virtual bool Get_attr( int v2, void * v3 ) const
|
|
1900
|
+
{
|
|
1901
|
+
int v4;
|
|
1902
|
+
MPIX_CALLREF( this, MPI_Win_get_attr( (MPI_Win) the_real_win, v2, v3, &v4 ));
|
|
1903
|
+
return v4!= 0;
|
|
1904
|
+
}
|
|
1905
|
+
virtual void Set_attr( int v2, const void * v3 )
|
|
1906
|
+
{
|
|
1907
|
+
MPIX_CALLREF( this, MPI_Win_set_attr( (MPI_Win) the_real_win, v2, (void *)v3 ));
|
|
1908
|
+
}
|
|
1909
|
+
virtual void Complete( void ) const
|
|
1910
|
+
{
|
|
1911
|
+
MPIX_CALLREF( this, MPI_Win_complete( (MPI_Win) the_real_win ));
|
|
1912
|
+
}
|
|
1913
|
+
virtual void Set_errhandler( const Errhandler &v2 )
|
|
1914
|
+
{
|
|
1915
|
+
MPIX_CALLREF( this, MPI_Win_set_errhandler( (MPI_Win) the_real_win, (MPI_Errhandler)(v2.the_real_errhandler) ));
|
|
1916
|
+
}
|
|
1917
|
+
virtual void Set_name( const char * v2 )
|
|
1918
|
+
{
|
|
1919
|
+
MPIX_CALLREF( this, MPI_Win_set_name( (MPI_Win) the_real_win, (const char *)v2 ));
|
|
1920
|
+
}
|
|
1921
|
+
virtual void Accumulate( const void * v1, int v2, const Datatype &v3, int v4, Aint v5, int v6, const Datatype &v7, const Op &v8 ) const
|
|
1922
|
+
{
|
|
1923
|
+
MPIX_CALLREF( this, MPI_Accumulate( (const void *)v1, v2, (MPI_Datatype)(v3.the_real_datatype), v4, v5, v6, (MPI_Datatype)(v7.the_real_datatype), (MPI_Op)(v8.the_real_op), (MPI_Win) the_real_win ));
|
|
1924
|
+
}
|
|
1925
|
+
static Win Create( const void * v1, Aint v2, int v3, const Info &v4, const Intracomm &v5 )
|
|
1926
|
+
{
|
|
1927
|
+
Win v6;
|
|
1928
|
+
MPIX_CALLOBJ( v5, MPI_Win_create( (void *)v1, v2, v3, (MPI_Info)(v4.the_real_info), (MPI_Comm)(v5.the_real_comm), &(v6.the_real_win) ));
|
|
1929
|
+
return v6;
|
|
1930
|
+
}
|
|
1931
|
+
static void Free_keyval( int &v1 )
|
|
1932
|
+
{
|
|
1933
|
+
MPIX_CALLWORLD( MPI_Win_free_keyval( &v1 ));
|
|
1934
|
+
}
|
|
1935
|
+
virtual void Post( const Group &v1, int v2 ) const
|
|
1936
|
+
{
|
|
1937
|
+
MPIX_CALLREF( this, MPI_Win_post( (MPI_Group)(v1.the_real_group), v2, (MPI_Win) the_real_win ));
|
|
1938
|
+
}
|
|
1939
|
+
virtual void Unlock( int v1 ) const
|
|
1940
|
+
{
|
|
1941
|
+
MPIX_CALLREF( this, MPI_Win_unlock( v1, (MPI_Win) the_real_win ));
|
|
1942
|
+
}
|
|
1943
|
+
virtual void Delete_attr( int v2 )
|
|
1944
|
+
{
|
|
1945
|
+
MPIX_CALLREF( this, MPI_Win_delete_attr( (MPI_Win) the_real_win, v2 ));
|
|
1946
|
+
}
|
|
1947
|
+
virtual void Lock( int v1, int v2, int v3 ) const
|
|
1948
|
+
{
|
|
1949
|
+
MPIX_CALLREF( this, MPI_Win_lock( v1, v2, v3, (MPI_Win) the_real_win ));
|
|
1950
|
+
}
|
|
1951
|
+
virtual Errhandler Get_errhandler( void ) const
|
|
1952
|
+
{
|
|
1953
|
+
Errhandler v2;
|
|
1954
|
+
MPIX_CALLREF( this, MPI_Win_get_errhandler( (MPI_Win) the_real_win, &(v2.the_real_errhandler) ));
|
|
1955
|
+
return v2;
|
|
1956
|
+
}
|
|
1957
|
+
virtual void Get_name( char * v2, int &v3 ) const
|
|
1958
|
+
{
|
|
1959
|
+
MPIX_CALLREF( this, MPI_Win_get_name( (MPI_Win) the_real_win, v2, &v3 ));
|
|
1960
|
+
}
|
|
1961
|
+
typedef void Errhandler_function(Win &, int *, ... );
|
|
1962
|
+
typedef Errhandler_function Errhandler_fn;
|
|
1963
|
+
|
|
1964
|
+
static Errhandler Create_errhandler( Errhandler_function * );
|
|
1965
|
+
|
|
1966
|
+
typedef int Copy_attr_function(const Win& oldwin, int win_keyval, void* extra_state, void* attribute_val_in, void* attribute_val_out, bool& flag);
|
|
1967
|
+
typedef int Delete_attr_function(Win& win, int win_keyval, void* attribute_val, void* extra_state);
|
|
1968
|
+
|
|
1969
|
+
static int Create_keyval( Copy_attr_function *, Delete_attr_function *,
|
|
1970
|
+
void * );
|
|
1971
|
+
// These functions are *not* part of MPI-2 but are provided
|
|
1972
|
+
// because they should have been included
|
|
1973
|
+
static int NULL_COPY_FN( const Win &oldwin MPIR_ARGUNUSED,
|
|
1974
|
+
int keyval MPIR_ARGUNUSED, void *ex MPIR_ARGUNUSED,
|
|
1975
|
+
void *attr_in MPIR_ARGUNUSED, void *attr_out MPIR_ARGUNUSED,
|
|
1976
|
+
bool &flag ) { flag = 1; return 0;}
|
|
1977
|
+
static int NULL_DELETE_FN( Win &win MPIR_ARGUNUSED,
|
|
1978
|
+
int keyval MPIR_ARGUNUSED, void * attr MPIR_ARGUNUSED,
|
|
1979
|
+
void *ex MPIR_ARGUNUSED ) { return 0; }
|
|
1980
|
+
static int DUP_FN( const Win &oldwin MPIR_ARGUNUSED,
|
|
1981
|
+
int keyval MPIR_ARGUNUSED, void *ex MPIR_ARGUNUSED,
|
|
1982
|
+
void *attr_in, void *attr_out, bool &flag ) { flag = 1;
|
|
1983
|
+
*(void **)attr_out = attr_in; return 0;}
|
|
1984
|
+
|
|
1985
|
+
virtual void Call_errhandler( int v2 ) const;
|
|
1986
|
+
};
|
|
1987
|
+
#ifndef MPI_FILE_NULL
|
|
1988
|
+
#define MPI_FILE_NULL 0
|
|
1989
|
+
typedef int MPI_File;
|
|
1990
|
+
#endif
|
|
1991
|
+
|
|
1992
|
+
class File {
|
|
1993
|
+
|
|
1994
|
+
protected:
|
|
1995
|
+
MPI_File the_real_file;
|
|
1996
|
+
|
|
1997
|
+
public:
|
|
1998
|
+
// new/delete
|
|
1999
|
+
|
|
2000
|
+
inline File(MPI_File obj) : the_real_file(obj) {}
|
|
2001
|
+
inline File(void) : the_real_file(MPI_FILE_NULL) {}
|
|
2002
|
+
|
|
2003
|
+
virtual ~File() {}
|
|
2004
|
+
// copy/assignment
|
|
2005
|
+
|
|
2006
|
+
File(const File &obj) : the_real_file(obj.the_real_file){}
|
|
2007
|
+
|
|
2008
|
+
File& operator=(const File &obj) {
|
|
2009
|
+
the_real_file = obj.the_real_file; return *this; }
|
|
2010
|
+
|
|
2011
|
+
// logical
|
|
2012
|
+
bool operator== (const File &obj) {
|
|
2013
|
+
return (the_real_file == obj.the_real_file); }
|
|
2014
|
+
bool operator!= (const File &obj) {
|
|
2015
|
+
return (the_real_file != obj.the_real_file); }
|
|
2016
|
+
// C/C++ cast and assignment
|
|
2017
|
+
inline operator MPI_File*() { return &the_real_file; }
|
|
2018
|
+
inline operator MPI_File() const { return the_real_file; }
|
|
2019
|
+
File& operator=(const MPI_File& obj) {
|
|
2020
|
+
the_real_file = obj; return *this; }
|
|
2021
|
+
#ifdef MPI_MODE_RDONLY
|
|
2022
|
+
virtual Aint Get_type_extent( const Datatype &v2 ) const
|
|
2023
|
+
{
|
|
2024
|
+
MPI_Aint v3;
|
|
2025
|
+
MPIX_CALLREF( this, MPI_File_get_type_extent( (MPI_File) the_real_file, (MPI_Datatype)(v2.the_real_datatype), &v3 ));
|
|
2026
|
+
return v3;
|
|
2027
|
+
}
|
|
2028
|
+
virtual void Read_ordered_end( void * v2, Status & v3 )
|
|
2029
|
+
{
|
|
2030
|
+
MPIX_CALLREF( this, MPI_File_read_ordered_end( (MPI_File) the_real_file, v2, (MPI_Status *)&(v3.the_real_status ) ));
|
|
2031
|
+
}
|
|
2032
|
+
virtual void Read_ordered_end( void * v2 )
|
|
2033
|
+
{
|
|
2034
|
+
MPIX_CALLREF( this, MPI_File_read_ordered_end( (MPI_File) the_real_file, v2, MPI_STATUS_IGNORE ));
|
|
2035
|
+
}
|
|
2036
|
+
virtual void Seek_shared( Offset v2, int v3 )
|
|
2037
|
+
{
|
|
2038
|
+
MPIX_CALLREF( this, MPI_File_seek_shared( (MPI_File) the_real_file, v2, v3 ));
|
|
2039
|
+
}
|
|
2040
|
+
virtual void Read_ordered( void * v2, int v3, const Datatype &v4, Status & v5 )
|
|
2041
|
+
{
|
|
2042
|
+
MPIX_CALLREF( this, MPI_File_read_ordered( (MPI_File) the_real_file, v2, v3, (MPI_Datatype)(v4.the_real_datatype), (MPI_Status *)&(v5.the_real_status ) ));
|
|
2043
|
+
}
|
|
2044
|
+
virtual void Read_ordered( void * v2, int v3, const Datatype &v4 )
|
|
2045
|
+
{
|
|
2046
|
+
MPIX_CALLREF( this, MPI_File_read_ordered( (MPI_File) the_real_file, v2, v3, (MPI_Datatype)(v4.the_real_datatype), MPI_STATUS_IGNORE ));
|
|
2047
|
+
}
|
|
2048
|
+
virtual Request Iread_shared( void * v2, int v3, const Datatype &v4 )
|
|
2049
|
+
{
|
|
2050
|
+
Request v5;
|
|
2051
|
+
MPIX_CALLREF( this, MPI_File_iread_shared( (MPI_File) the_real_file, v2, v3, (MPI_Datatype)(v4.the_real_datatype), (MPIO_Request *)&(v5.the_real_request) ));
|
|
2052
|
+
return v5;
|
|
2053
|
+
}
|
|
2054
|
+
virtual Info Get_info( void ) const
|
|
2055
|
+
{
|
|
2056
|
+
Info v2;
|
|
2057
|
+
MPIX_CALLREF( this, MPI_File_get_info( (MPI_File) the_real_file, &(v2.the_real_info) ));
|
|
2058
|
+
return v2;
|
|
2059
|
+
}
|
|
2060
|
+
virtual void Write_ordered_begin( const void * v2, int v3, const Datatype &v4 )
|
|
2061
|
+
{
|
|
2062
|
+
MPIX_CALLREF( this, MPI_File_write_ordered_begin( (MPI_File) the_real_file, (const void *)v2, v3, (MPI_Datatype)(v4.the_real_datatype) ));
|
|
2063
|
+
}
|
|
2064
|
+
virtual void Set_info( const Info &v2 )
|
|
2065
|
+
{
|
|
2066
|
+
MPIX_CALLREF( this, MPI_File_set_info( (MPI_File) the_real_file, (MPI_Info)(v2.the_real_info) ));
|
|
2067
|
+
}
|
|
2068
|
+
virtual void Write_ordered( const void * v2, int v3, const Datatype &v4, Status & v5 )
|
|
2069
|
+
{
|
|
2070
|
+
MPIX_CALLREF( this, MPI_File_write_ordered( (MPI_File) the_real_file, (const void *)v2, v3, (MPI_Datatype)(v4.the_real_datatype), (MPI_Status *)&(v5.the_real_status ) ));
|
|
2071
|
+
}
|
|
2072
|
+
virtual void Write_ordered( const void * v2, int v3, const Datatype &v4 )
|
|
2073
|
+
{
|
|
2074
|
+
MPIX_CALLREF( this, MPI_File_write_ordered( (MPI_File) the_real_file, (const void *)v2, v3, (MPI_Datatype)(v4.the_real_datatype), MPI_STATUS_IGNORE ));
|
|
2075
|
+
}
|
|
2076
|
+
virtual void Sync( void )
|
|
2077
|
+
{
|
|
2078
|
+
MPIX_CALLREF( this, MPI_File_sync( (MPI_File) the_real_file ));
|
|
2079
|
+
}
|
|
2080
|
+
virtual void Read( void * v2, int v3, const Datatype &v4, Status & v5 )
|
|
2081
|
+
{
|
|
2082
|
+
MPIX_CALLREF( this, MPI_File_read( (MPI_File) the_real_file, v2, v3, (MPI_Datatype)(v4.the_real_datatype), (MPI_Status *)&(v5.the_real_status ) ));
|
|
2083
|
+
}
|
|
2084
|
+
virtual void Read( void * v2, int v3, const Datatype &v4 )
|
|
2085
|
+
{
|
|
2086
|
+
MPIX_CALLREF( this, MPI_File_read( (MPI_File) the_real_file, v2, v3, (MPI_Datatype)(v4.the_real_datatype), MPI_STATUS_IGNORE ));
|
|
2087
|
+
}
|
|
2088
|
+
virtual void Write_all( const void * v2, int v3, const Datatype &v4, Status & v5 )
|
|
2089
|
+
{
|
|
2090
|
+
MPIX_CALLREF( this, MPI_File_write_all( (MPI_File) the_real_file, (const void *)v2, v3, (MPI_Datatype)(v4.the_real_datatype), (MPI_Status *)&(v5.the_real_status ) ));
|
|
2091
|
+
}
|
|
2092
|
+
virtual void Write_all( const void * v2, int v3, const Datatype &v4 )
|
|
2093
|
+
{
|
|
2094
|
+
MPIX_CALLREF( this, MPI_File_write_all( (MPI_File) the_real_file, (const void *)v2, v3, (MPI_Datatype)(v4.the_real_datatype), MPI_STATUS_IGNORE ));
|
|
2095
|
+
}
|
|
2096
|
+
virtual Offset Get_size( void ) const
|
|
2097
|
+
{
|
|
2098
|
+
MPI_Offset v2;
|
|
2099
|
+
MPIX_CALLREF( this, MPI_File_get_size( (MPI_File) the_real_file, &v2 ));
|
|
2100
|
+
return v2;
|
|
2101
|
+
}
|
|
2102
|
+
virtual void Write_all_end( const void * v2, Status & v3 )
|
|
2103
|
+
{
|
|
2104
|
+
MPIX_CALLREF( this, MPI_File_write_all_end( (MPI_File) the_real_file, (const void *)v2, (MPI_Status *)&(v3.the_real_status ) ));
|
|
2105
|
+
}
|
|
2106
|
+
virtual void Write_all_end( const void * v2 )
|
|
2107
|
+
{
|
|
2108
|
+
MPIX_CALLREF( this, MPI_File_write_all_end( (MPI_File) the_real_file, (const void *)v2, MPI_STATUS_IGNORE ));
|
|
2109
|
+
}
|
|
2110
|
+
static void Delete( const char * v1, const Info &v2 )
|
|
2111
|
+
{
|
|
2112
|
+
MPIX_CALLOBJ( FILE_NULL, MPI_File_delete( (const char *)v1, (MPI_Info)(v2.the_real_info) ));
|
|
2113
|
+
}
|
|
2114
|
+
virtual void Read_ordered_begin( void * v2, int v3, const Datatype &v4 )
|
|
2115
|
+
{
|
|
2116
|
+
MPIX_CALLREF( this, MPI_File_read_ordered_begin( (MPI_File) the_real_file, v2, v3, (MPI_Datatype)(v4.the_real_datatype) ));
|
|
2117
|
+
}
|
|
2118
|
+
virtual Request Iread_at( Offset v2, void * v3, int v4, const Datatype &v5 )
|
|
2119
|
+
{
|
|
2120
|
+
Request v6;
|
|
2121
|
+
MPIX_CALLREF( this, MPI_File_iread_at( (MPI_File) the_real_file, v2, v3, v4, (MPI_Datatype)(v5.the_real_datatype), (MPIO_Request *)&(v6.the_real_request) ));
|
|
2122
|
+
return v6;
|
|
2123
|
+
}
|
|
2124
|
+
virtual void Write_at_all_end( const void * v2, Status & v3 )
|
|
2125
|
+
{
|
|
2126
|
+
MPIX_CALLREF( this, MPI_File_write_at_all_end( (MPI_File) the_real_file, (const void *)v2, (MPI_Status *)&(v3.the_real_status ) ));
|
|
2127
|
+
}
|
|
2128
|
+
virtual void Write_at_all_end( const void * v2 )
|
|
2129
|
+
{
|
|
2130
|
+
MPIX_CALLREF( this, MPI_File_write_at_all_end( (MPI_File) the_real_file, (const void *)v2, MPI_STATUS_IGNORE ));
|
|
2131
|
+
}
|
|
2132
|
+
virtual Offset Get_position_shared( void ) const
|
|
2133
|
+
{
|
|
2134
|
+
MPI_Offset v2;
|
|
2135
|
+
MPIX_CALLREF( this, MPI_File_get_position_shared( (MPI_File) the_real_file, &v2 ));
|
|
2136
|
+
return v2;
|
|
2137
|
+
}
|
|
2138
|
+
virtual void Write_shared( const void * v2, int v3, const Datatype &v4, Status & v5 )
|
|
2139
|
+
{
|
|
2140
|
+
MPIX_CALLREF( this, MPI_File_write_shared( (MPI_File) the_real_file, (const void *)v2, v3, (MPI_Datatype)(v4.the_real_datatype), (MPI_Status *)&(v5.the_real_status ) ));
|
|
2141
|
+
}
|
|
2142
|
+
virtual void Write_shared( const void * v2, int v3, const Datatype &v4 )
|
|
2143
|
+
{
|
|
2144
|
+
MPIX_CALLREF( this, MPI_File_write_shared( (MPI_File) the_real_file, (const void *)v2, v3, (MPI_Datatype)(v4.the_real_datatype), MPI_STATUS_IGNORE ));
|
|
2145
|
+
}
|
|
2146
|
+
virtual Request Iwrite_at( Offset v2, const void * v3, int v4, const Datatype &v5 )
|
|
2147
|
+
{
|
|
2148
|
+
Request v6;
|
|
2149
|
+
MPIX_CALLREF( this, MPI_File_iwrite_at( (MPI_File) the_real_file, (MPI_Offset)v2, (const void *)v3, v4, (MPI_Datatype)(v5.the_real_datatype), (MPIO_Request *)&(v6.the_real_request) ));
|
|
2150
|
+
return v6;
|
|
2151
|
+
}
|
|
2152
|
+
virtual void Get_view( Offset & v2, Datatype &v3, Datatype &v4, char * v5 ) const
|
|
2153
|
+
{
|
|
2154
|
+
MPIX_CALLREF( this, MPI_File_get_view( (MPI_File) the_real_file, &v2, (MPI_Datatype *)&(v3.the_real_datatype), (MPI_Datatype *)&(v4.the_real_datatype), v5 ));
|
|
2155
|
+
}
|
|
2156
|
+
virtual void Write_all_begin( const void * v2, int v3, const Datatype &v4 )
|
|
2157
|
+
{
|
|
2158
|
+
MPIX_CALLREF( this, MPI_File_write_all_begin( (MPI_File) the_real_file, (const void *)v2, v3, (MPI_Datatype)(v4.the_real_datatype) ));
|
|
2159
|
+
}
|
|
2160
|
+
virtual void Read_all_end( void * v2, Status & v3 )
|
|
2161
|
+
{
|
|
2162
|
+
MPIX_CALLREF( this, MPI_File_read_all_end( (MPI_File) the_real_file, v2, (MPI_Status *)&(v3.the_real_status ) ));
|
|
2163
|
+
}
|
|
2164
|
+
virtual void Read_all_end( void * v2 )
|
|
2165
|
+
{
|
|
2166
|
+
MPIX_CALLREF( this, MPI_File_read_all_end( (MPI_File) the_real_file, v2, MPI_STATUS_IGNORE ));
|
|
2167
|
+
}
|
|
2168
|
+
virtual Offset Get_byte_offset( const Offset v2 ) const
|
|
2169
|
+
{
|
|
2170
|
+
MPI_Offset v3;
|
|
2171
|
+
MPIX_CALLREF( this, MPI_File_get_byte_offset( (MPI_File) the_real_file, (MPI_Offset)v2, &v3 ));
|
|
2172
|
+
return v3;
|
|
2173
|
+
}
|
|
2174
|
+
virtual Request Iread( void * v2, int v3, const Datatype &v4 )
|
|
2175
|
+
{
|
|
2176
|
+
Request v5;
|
|
2177
|
+
MPIX_CALLREF( this, MPI_File_iread( (MPI_File) the_real_file, v2, v3, (MPI_Datatype)(v4.the_real_datatype), (MPIO_Request *)&(v5.the_real_request) ));
|
|
2178
|
+
return v5;
|
|
2179
|
+
}
|
|
2180
|
+
virtual void Read_at_all_end( void * v2, Status & v3 )
|
|
2181
|
+
{
|
|
2182
|
+
MPIX_CALLREF( this, MPI_File_read_at_all_end( (MPI_File) the_real_file, v2, (MPI_Status *)&(v3.the_real_status ) ));
|
|
2183
|
+
}
|
|
2184
|
+
virtual void Read_at_all_end( void * v2 )
|
|
2185
|
+
{
|
|
2186
|
+
MPIX_CALLREF( this, MPI_File_read_at_all_end( (MPI_File) the_real_file, v2, MPI_STATUS_IGNORE ));
|
|
2187
|
+
}
|
|
2188
|
+
virtual void Write_at( Offset v2, const void * v3, int v4, const Datatype &v5, Status & v6 )
|
|
2189
|
+
{
|
|
2190
|
+
MPIX_CALLREF( this, MPI_File_write_at( (MPI_File) the_real_file, v2, (const void *)v3, v4, (MPI_Datatype)(v5.the_real_datatype), (MPI_Status *)&(v6.the_real_status ) ));
|
|
2191
|
+
}
|
|
2192
|
+
virtual void Write_at( Offset v2, const void * v3, int v4, const Datatype &v5 )
|
|
2193
|
+
{
|
|
2194
|
+
MPIX_CALLREF( this, MPI_File_write_at( (MPI_File) the_real_file, v2, (const void *)v3, v4, (MPI_Datatype)(v5.the_real_datatype), MPI_STATUS_IGNORE ));
|
|
2195
|
+
}
|
|
2196
|
+
virtual void Write_at_all_begin( Offset v2, const void * v3, int v4, const Datatype &v5 )
|
|
2197
|
+
{
|
|
2198
|
+
MPIX_CALLREF( this, MPI_File_write_at_all_begin( (MPI_File) the_real_file, v2, (const void *)v3, v4, (MPI_Datatype)(v5.the_real_datatype) ));
|
|
2199
|
+
}
|
|
2200
|
+
virtual Errhandler Get_errhandler( void ) const
|
|
2201
|
+
{
|
|
2202
|
+
Errhandler v2;
|
|
2203
|
+
MPIX_CALLREF( this, MPI_File_get_errhandler( (MPI_File) the_real_file, &(v2.the_real_errhandler) ));
|
|
2204
|
+
return v2;
|
|
2205
|
+
}
|
|
2206
|
+
virtual int Get_amode( void ) const
|
|
2207
|
+
{
|
|
2208
|
+
int v2;
|
|
2209
|
+
MPIX_CALLREF( this, MPI_File_get_amode( (MPI_File) the_real_file, &v2 ));
|
|
2210
|
+
return v2;
|
|
2211
|
+
}
|
|
2212
|
+
virtual void Set_atomicity( bool v2 )
|
|
2213
|
+
{
|
|
2214
|
+
int l2;
|
|
2215
|
+
l2 = (v2 == true) ? 1 : 0;
|
|
2216
|
+
MPIX_CALLREF( this, MPI_File_set_atomicity( (MPI_File) the_real_file, l2 ));
|
|
2217
|
+
}
|
|
2218
|
+
virtual Group Get_group( void ) const
|
|
2219
|
+
{
|
|
2220
|
+
Group v2;
|
|
2221
|
+
MPIX_CALLREF( this, MPI_File_get_group( (MPI_File) the_real_file, &(v2.the_real_group) ));
|
|
2222
|
+
return v2;
|
|
2223
|
+
}
|
|
2224
|
+
virtual Offset Get_position( void ) const
|
|
2225
|
+
{
|
|
2226
|
+
MPI_Offset v2;
|
|
2227
|
+
MPIX_CALLREF( this, MPI_File_get_position( (MPI_File) the_real_file, &v2 ));
|
|
2228
|
+
return v2;
|
|
2229
|
+
}
|
|
2230
|
+
static File Open( const Intracomm &v1, const char * v2, int v3, const Info &v4 )
|
|
2231
|
+
{
|
|
2232
|
+
File v5;
|
|
2233
|
+
MPIX_CALLOBJ( FILE_NULL, MPI_File_open( (MPI_Comm)(v1.the_real_comm), (const char *)v2, v3, (MPI_Info)(v4.the_real_info), &(v5.the_real_file) ));
|
|
2234
|
+
return v5;
|
|
2235
|
+
}
|
|
2236
|
+
virtual void Seek( Offset v2, int v3 )
|
|
2237
|
+
{
|
|
2238
|
+
MPIX_CALLREF( this, MPI_File_seek( (MPI_File) the_real_file, v2, v3 ));
|
|
2239
|
+
}
|
|
2240
|
+
virtual void Read_all_begin( void * v2, int v3, const Datatype &v4 )
|
|
2241
|
+
{
|
|
2242
|
+
MPIX_CALLREF( this, MPI_File_read_all_begin( (MPI_File) the_real_file, v2, v3, (MPI_Datatype)(v4.the_real_datatype) ));
|
|
2243
|
+
}
|
|
2244
|
+
virtual void Read_at_all_begin( Offset v2, void * v3, int v4, const Datatype &v5 )
|
|
2245
|
+
{
|
|
2246
|
+
MPIX_CALLREF( this, MPI_File_read_at_all_begin( (MPI_File) the_real_file, v2, v3, v4, (MPI_Datatype)(v5.the_real_datatype) ));
|
|
2247
|
+
}
|
|
2248
|
+
virtual void Read_all( void * v2, int v3, const Datatype &v4, Status & v5 )
|
|
2249
|
+
{
|
|
2250
|
+
MPIX_CALLREF( this, MPI_File_read_all( (MPI_File) the_real_file, v2, v3, (MPI_Datatype)(v4.the_real_datatype), (MPI_Status *)&(v5.the_real_status ) ));
|
|
2251
|
+
}
|
|
2252
|
+
virtual void Read_all( void * v2, int v3, const Datatype &v4 )
|
|
2253
|
+
{
|
|
2254
|
+
MPIX_CALLREF( this, MPI_File_read_all( (MPI_File) the_real_file, v2, v3, (MPI_Datatype)(v4.the_real_datatype), MPI_STATUS_IGNORE ));
|
|
2255
|
+
}
|
|
2256
|
+
virtual void Preallocate( Offset v2 )
|
|
2257
|
+
{
|
|
2258
|
+
MPIX_CALLREF( this, MPI_File_preallocate( (MPI_File) the_real_file, v2 ));
|
|
2259
|
+
}
|
|
2260
|
+
virtual void Read_at_all( Offset v2, void * v3, int v4, const Datatype &v5, Status & v6 )
|
|
2261
|
+
{
|
|
2262
|
+
MPIX_CALLREF( this, MPI_File_read_at_all( (MPI_File) the_real_file, v2, v3, v4, (MPI_Datatype)(v5.the_real_datatype), (MPI_Status *)&(v6.the_real_status ) ));
|
|
2263
|
+
}
|
|
2264
|
+
virtual void Read_at_all( Offset v2, void * v3, int v4, const Datatype &v5 )
|
|
2265
|
+
{
|
|
2266
|
+
MPIX_CALLREF( this, MPI_File_read_at_all( (MPI_File) the_real_file, v2, v3, v4, (MPI_Datatype)(v5.the_real_datatype), MPI_STATUS_IGNORE ));
|
|
2267
|
+
}
|
|
2268
|
+
virtual void Read_shared( void * v2, int v3, const Datatype &v4, Status & v5 )
|
|
2269
|
+
{
|
|
2270
|
+
MPIX_CALLREF( this, MPI_File_read_shared( (MPI_File) the_real_file, v2, v3, (MPI_Datatype)(v4.the_real_datatype), (MPI_Status *)&(v5.the_real_status ) ));
|
|
2271
|
+
}
|
|
2272
|
+
virtual void Read_shared( void * v2, int v3, const Datatype &v4 )
|
|
2273
|
+
{
|
|
2274
|
+
MPIX_CALLREF( this, MPI_File_read_shared( (MPI_File) the_real_file, v2, v3, (MPI_Datatype)(v4.the_real_datatype), MPI_STATUS_IGNORE ));
|
|
2275
|
+
}
|
|
2276
|
+
virtual Request Iwrite( const void * v2, int v3, const Datatype &v4 )
|
|
2277
|
+
{
|
|
2278
|
+
Request v5;
|
|
2279
|
+
MPIX_CALLREF( this, MPI_File_iwrite( (MPI_File) the_real_file, (const void *)v2, v3, (MPI_Datatype)(v4.the_real_datatype), (MPIO_Request *)&(v5.the_real_request) ));
|
|
2280
|
+
return v5;
|
|
2281
|
+
}
|
|
2282
|
+
virtual Request Iwrite_shared( const void * v2, int v3, const Datatype &v4 )
|
|
2283
|
+
{
|
|
2284
|
+
Request v5;
|
|
2285
|
+
MPIX_CALLREF( this, MPI_File_iwrite_shared( (MPI_File) the_real_file, (const void *)v2, v3, (MPI_Datatype)(v4.the_real_datatype), (MPIO_Request *)&(v5.the_real_request) ));
|
|
2286
|
+
return v5;
|
|
2287
|
+
}
|
|
2288
|
+
virtual void Set_errhandler( const Errhandler &v2 )
|
|
2289
|
+
{
|
|
2290
|
+
MPIX_CALLREF( this, MPI_File_set_errhandler( (MPI_File) the_real_file, (MPI_Errhandler)(v2.the_real_errhandler) ));
|
|
2291
|
+
}
|
|
2292
|
+
virtual void Write_at_all( Offset v2, const void * v3, int v4, const Datatype &v5, Status & v6 )
|
|
2293
|
+
{
|
|
2294
|
+
MPIX_CALLREF( this, MPI_File_write_at_all( (MPI_File) the_real_file, v2, (const void *)v3, v4, (MPI_Datatype)(v5.the_real_datatype), (MPI_Status *)&(v6.the_real_status ) ));
|
|
2295
|
+
}
|
|
2296
|
+
virtual void Write_at_all( Offset v2, const void * v3, int v4, const Datatype &v5 )
|
|
2297
|
+
{
|
|
2298
|
+
MPIX_CALLREF( this, MPI_File_write_at_all( (MPI_File) the_real_file, v2, (const void *)v3, v4, (MPI_Datatype)(v5.the_real_datatype), MPI_STATUS_IGNORE ));
|
|
2299
|
+
}
|
|
2300
|
+
virtual void Set_size( Offset v2 )
|
|
2301
|
+
{
|
|
2302
|
+
MPIX_CALLREF( this, MPI_File_set_size( (MPI_File) the_real_file, v2 ));
|
|
2303
|
+
}
|
|
2304
|
+
virtual void Set_view( Offset v2, const Datatype &v3, const Datatype v4, const char * v5, const Info &v6 )
|
|
2305
|
+
{
|
|
2306
|
+
MPIX_CALLREF( this, MPI_File_set_view( (MPI_File) the_real_file, v2, (MPI_Datatype)(v3.the_real_datatype), (MPI_Datatype)v4, (const char *)v5, (MPI_Info)(v6.the_real_info) ));
|
|
2307
|
+
}
|
|
2308
|
+
virtual void Read_at( Offset v2, void * v3, int v4, const Datatype &v5, Status & v6 )
|
|
2309
|
+
{
|
|
2310
|
+
MPIX_CALLREF( this, MPI_File_read_at( (MPI_File) the_real_file, v2, v3, v4, (MPI_Datatype)(v5.the_real_datatype), (MPI_Status *)&(v6.the_real_status ) ));
|
|
2311
|
+
}
|
|
2312
|
+
virtual void Read_at( Offset v2, void * v3, int v4, const Datatype &v5 )
|
|
2313
|
+
{
|
|
2314
|
+
MPIX_CALLREF( this, MPI_File_read_at( (MPI_File) the_real_file, v2, v3, v4, (MPI_Datatype)(v5.the_real_datatype), MPI_STATUS_IGNORE ));
|
|
2315
|
+
}
|
|
2316
|
+
virtual void Close( void )
|
|
2317
|
+
{
|
|
2318
|
+
MPIX_CALLREF( this, MPI_File_close( (MPI_File *) &the_real_file ));
|
|
2319
|
+
}
|
|
2320
|
+
virtual void Write_ordered_end( const void * v2, Status & v3 )
|
|
2321
|
+
{
|
|
2322
|
+
MPIX_CALLREF( this, MPI_File_write_ordered_end( (MPI_File) the_real_file, (const void *)v2, (MPI_Status *)&(v3.the_real_status ) ));
|
|
2323
|
+
}
|
|
2324
|
+
virtual void Write_ordered_end( const void * v2 )
|
|
2325
|
+
{
|
|
2326
|
+
MPIX_CALLREF( this, MPI_File_write_ordered_end( (MPI_File) the_real_file, (const void *)v2, MPI_STATUS_IGNORE ));
|
|
2327
|
+
}
|
|
2328
|
+
virtual void Write( const void * v2, int v3, const Datatype &v4, Status & v5 )
|
|
2329
|
+
{
|
|
2330
|
+
MPIX_CALLREF( this, MPI_File_write( (MPI_File) the_real_file, (const void *)v2, v3, (MPI_Datatype)(v4.the_real_datatype), (MPI_Status *)&(v5.the_real_status ) ));
|
|
2331
|
+
}
|
|
2332
|
+
virtual void Write( const void * v2, int v3, const Datatype &v4 )
|
|
2333
|
+
{
|
|
2334
|
+
MPIX_CALLREF( this, MPI_File_write( (MPI_File) the_real_file, (const void *)v2, v3, (MPI_Datatype)(v4.the_real_datatype), MPI_STATUS_IGNORE ));
|
|
2335
|
+
}
|
|
2336
|
+
virtual bool Get_atomicity( void ) const
|
|
2337
|
+
{
|
|
2338
|
+
int v2;
|
|
2339
|
+
MPIX_CALLREF( this, MPI_File_get_atomicity( (MPI_File) the_real_file, &v2 ));
|
|
2340
|
+
return v2!= 0;
|
|
2341
|
+
}
|
|
2342
|
+
typedef void Errhandler_function(File &, int *, ... );
|
|
2343
|
+
typedef Errhandler_function Errhandler_fn;
|
|
2344
|
+
|
|
2345
|
+
static Errhandler Create_errhandler( Errhandler_function * );
|
|
2346
|
+
|
|
2347
|
+
virtual void Call_errhandler( int v2 ) const;
|
|
2348
|
+
#endif
|
|
2349
|
+
};
|
|
2350
|
+
|
|
2351
|
+
class Graphcomm : public Intracomm {
|
|
2352
|
+
|
|
2353
|
+
public:
|
|
2354
|
+
// new/delete
|
|
2355
|
+
|
|
2356
|
+
inline Graphcomm(MPI_Comm obj) : Intracomm(obj) {}
|
|
2357
|
+
inline Graphcomm(void) : Intracomm() {}
|
|
2358
|
+
|
|
2359
|
+
virtual ~Graphcomm() {}
|
|
2360
|
+
// copy/assignment
|
|
2361
|
+
|
|
2362
|
+
Graphcomm(const Graphcomm &obj) : Intracomm(obj) {}
|
|
2363
|
+
|
|
2364
|
+
Graphcomm& operator=(const Graphcomm &obj) {
|
|
2365
|
+
the_real_comm = obj.the_real_comm; return *this; }
|
|
2366
|
+
|
|
2367
|
+
// C/C++ cast and assignment
|
|
2368
|
+
inline operator MPI_Comm*() { return &the_real_comm; }
|
|
2369
|
+
inline operator MPI_Comm() const { return the_real_comm; }
|
|
2370
|
+
Graphcomm& operator=(const MPI_Comm& obj) {
|
|
2371
|
+
the_real_comm = obj; return *this; }
|
|
2372
|
+
virtual void Get_dims( int * v2, int * v3 ) const
|
|
2373
|
+
{
|
|
2374
|
+
MPIX_CALLREF( this, MPI_Graphdims_get( (MPI_Comm) the_real_comm, v2, v3 ));
|
|
2375
|
+
}
|
|
2376
|
+
virtual void Get_topo( int v2, int v3, int v4[], int v5[] ) const
|
|
2377
|
+
{
|
|
2378
|
+
MPIX_CALLREF( this, MPI_Graph_get( (MPI_Comm) the_real_comm, v2, v3, v4, v5 ));
|
|
2379
|
+
}
|
|
2380
|
+
virtual int Map( int v2, const int v3[], const int v4[] ) const
|
|
2381
|
+
{
|
|
2382
|
+
int v5;
|
|
2383
|
+
MPIX_CALLREF( this, MPI_Graph_map( (MPI_Comm) the_real_comm, v2, (const int *)v3, (const int *)v4, &v5 ));
|
|
2384
|
+
return v5;
|
|
2385
|
+
}
|
|
2386
|
+
virtual void Get_neighbors( int v2, int v3, int v4[] ) const
|
|
2387
|
+
{
|
|
2388
|
+
MPIX_CALLREF( this, MPI_Graph_neighbors( (MPI_Comm) the_real_comm, v2, v3, v4 ));
|
|
2389
|
+
}
|
|
2390
|
+
virtual int Get_neighbors_count( int v2 ) const
|
|
2391
|
+
{
|
|
2392
|
+
int v3;
|
|
2393
|
+
MPIX_CALLREF( this, MPI_Graph_neighbors_count( (MPI_Comm) the_real_comm, v2, &v3 ));
|
|
2394
|
+
return v3;
|
|
2395
|
+
}
|
|
2396
|
+
Graphcomm Dup( void ) const
|
|
2397
|
+
{
|
|
2398
|
+
Graphcomm v2;
|
|
2399
|
+
MPIX_CALLREF( this, MPI_Comm_dup( (MPI_Comm) the_real_comm, &(v2.the_real_comm) ));
|
|
2400
|
+
return v2;
|
|
2401
|
+
}
|
|
2402
|
+
|
|
2403
|
+
// If the compiler does not support variable return types, return a
|
|
2404
|
+
// reference to Comm. The user must then cast this to the correct type
|
|
2405
|
+
// (Standard-conforming C++ compilers support variable return types)
|
|
2406
|
+
#ifdef HAVE_NO_VARIABLE_RETURN_TYPE_SUPPORT
|
|
2407
|
+
virtual Comm & Clone(void) const {
|
|
2408
|
+
MPI_Comm ncomm;
|
|
2409
|
+
MPI_Comm_dup( (MPI_Comm)the_real_comm, &ncomm);
|
|
2410
|
+
Comm *clone = new Graphcomm(ncomm);
|
|
2411
|
+
return *clone;
|
|
2412
|
+
}
|
|
2413
|
+
#else
|
|
2414
|
+
virtual Graphcomm & Clone(void) const {
|
|
2415
|
+
MPI_Comm ncomm;
|
|
2416
|
+
MPI_Comm_dup( (MPI_Comm)the_real_comm, &ncomm);
|
|
2417
|
+
Graphcomm *clone = new Graphcomm(ncomm);
|
|
2418
|
+
return *clone;
|
|
2419
|
+
}
|
|
2420
|
+
#endif
|
|
2421
|
+
};
|
|
2422
|
+
|
|
2423
|
+
class Cartcomm : public Intracomm {
|
|
2424
|
+
|
|
2425
|
+
public:
|
|
2426
|
+
// new/delete
|
|
2427
|
+
|
|
2428
|
+
inline Cartcomm(MPI_Comm obj) : Intracomm(obj) {}
|
|
2429
|
+
inline Cartcomm(void) : Intracomm() {}
|
|
2430
|
+
|
|
2431
|
+
virtual ~Cartcomm() {}
|
|
2432
|
+
// copy/assignment
|
|
2433
|
+
|
|
2434
|
+
Cartcomm(const Cartcomm &obj) : Intracomm(obj) {}
|
|
2435
|
+
|
|
2436
|
+
Cartcomm& operator=(const Cartcomm &obj) {
|
|
2437
|
+
the_real_comm = obj.the_real_comm; return *this; }
|
|
2438
|
+
|
|
2439
|
+
// C/C++ cast and assignment
|
|
2440
|
+
inline operator MPI_Comm*() { return &the_real_comm; }
|
|
2441
|
+
inline operator MPI_Comm() const { return the_real_comm; }
|
|
2442
|
+
Cartcomm& operator=(const MPI_Comm& obj) {
|
|
2443
|
+
the_real_comm = obj; return *this; }
|
|
2444
|
+
virtual void Get_coords( int v2, int v3, int v4[] ) const
|
|
2445
|
+
{
|
|
2446
|
+
MPIX_CALLREF( this, MPI_Cart_coords( (MPI_Comm) the_real_comm, v2, v3, v4 ));
|
|
2447
|
+
}
|
|
2448
|
+
virtual int Get_cart_rank( const int v2[] ) const
|
|
2449
|
+
{
|
|
2450
|
+
int v3;
|
|
2451
|
+
MPIX_CALLREF( this, MPI_Cart_rank( (MPI_Comm) the_real_comm, (const int *)v2, &v3 ));
|
|
2452
|
+
return v3;
|
|
2453
|
+
}
|
|
2454
|
+
virtual int Get_dim( void ) const
|
|
2455
|
+
{
|
|
2456
|
+
int v2;
|
|
2457
|
+
MPIX_CALLREF( this, MPI_Cartdim_get( (MPI_Comm) the_real_comm, &v2 ));
|
|
2458
|
+
return v2;
|
|
2459
|
+
}
|
|
2460
|
+
Cartcomm Dup( void ) const
|
|
2461
|
+
{
|
|
2462
|
+
Cartcomm v2;
|
|
2463
|
+
MPIX_CALLREF( this, MPI_Comm_dup( (MPI_Comm) the_real_comm, &(v2.the_real_comm) ));
|
|
2464
|
+
return v2;
|
|
2465
|
+
}
|
|
2466
|
+
virtual void Get_topo( int v2, int v3[], bool v4[], int v5[] ) const
|
|
2467
|
+
{
|
|
2468
|
+
int *l4 = new int[(unsigned long)v2];
|
|
2469
|
+
MPIX_CALLREF( this, MPI_Cart_get( (MPI_Comm) the_real_comm, v2, v3, l4, v5 ));
|
|
2470
|
+
{
|
|
2471
|
+
int i4;
|
|
2472
|
+
for (i4=0;i4<v2;i4++) {
|
|
2473
|
+
// Unfortunately, at least one C++ compiler (Microsoft's)
|
|
2474
|
+
// generates warning messages when the type size changes
|
|
2475
|
+
// even when an explicit cast is used. To avoid these messages, we
|
|
2476
|
+
// cause the generated code to explicitly compute a
|
|
2477
|
+
// boolean value
|
|
2478
|
+
v4[i4] = l4[i4] != 0;
|
|
2479
|
+
}
|
|
2480
|
+
delete[] l4;
|
|
2481
|
+
}
|
|
2482
|
+
}
|
|
2483
|
+
virtual int Map( int v2, const int v3[], const bool v4[] ) const
|
|
2484
|
+
{
|
|
2485
|
+
int v5;
|
|
2486
|
+
int *l4 = new int[(unsigned long)v2];
|
|
2487
|
+
{
|
|
2488
|
+
int i4;
|
|
2489
|
+
for (i4=0;i4<v2;i4++) {
|
|
2490
|
+
l4[i4] = v4[i4] == true ? 1 : 0;
|
|
2491
|
+
}
|
|
2492
|
+
}
|
|
2493
|
+
MPIX_CALLREF( this, MPI_Cart_map( (MPI_Comm) the_real_comm, v2, (const int *)v3, l4, &v5 ));
|
|
2494
|
+
|
|
2495
|
+
delete[] l4;
|
|
2496
|
+
return v5;
|
|
2497
|
+
}
|
|
2498
|
+
virtual Cartcomm Sub( const bool v2[] ) const
|
|
2499
|
+
{
|
|
2500
|
+
Cartcomm v3;
|
|
2501
|
+
int *l2 = new int[(unsigned long)10];
|
|
2502
|
+
{
|
|
2503
|
+
int i2;
|
|
2504
|
+
for (i2=0;i2<10;i2++) {
|
|
2505
|
+
l2[i2] = v2[i2] == true ? 1 : 0;
|
|
2506
|
+
}
|
|
2507
|
+
}
|
|
2508
|
+
MPIX_CALLREF( this, MPI_Cart_sub( (MPI_Comm) the_real_comm, l2, &(v3.the_real_comm) ));
|
|
2509
|
+
|
|
2510
|
+
delete[] l2;
|
|
2511
|
+
return v3;
|
|
2512
|
+
}
|
|
2513
|
+
virtual void Shift( int v2, int v3, int &v4, int &v5 ) const
|
|
2514
|
+
{
|
|
2515
|
+
MPIX_CALLREF( this, MPI_Cart_shift( (MPI_Comm) the_real_comm, v2, v3, &v4, &v5 ));
|
|
2516
|
+
}
|
|
2517
|
+
|
|
2518
|
+
// If the compiler does not support variable return types, return a
|
|
2519
|
+
// reference to Comm. The user must then cast this to the correct type
|
|
2520
|
+
// (Standard-conforming C++ compilers support variable return types)
|
|
2521
|
+
#ifdef HAVE_NO_VARIABLE_RETURN_TYPE_SUPPORT
|
|
2522
|
+
virtual Comm & Clone(void) const {
|
|
2523
|
+
MPI_Comm ncomm;
|
|
2524
|
+
MPI_Comm_dup( (MPI_Comm)the_real_comm, &ncomm);
|
|
2525
|
+
Comm *clone = new Cartcomm(ncomm);
|
|
2526
|
+
return *clone;
|
|
2527
|
+
}
|
|
2528
|
+
#else
|
|
2529
|
+
virtual Cartcomm & Clone(void) const {
|
|
2530
|
+
MPI_Comm ncomm;
|
|
2531
|
+
MPI_Comm_dup( (MPI_Comm)the_real_comm, &ncomm);
|
|
2532
|
+
Cartcomm *clone = new Cartcomm(ncomm);
|
|
2533
|
+
return *clone;
|
|
2534
|
+
}
|
|
2535
|
+
#endif
|
|
2536
|
+
};
|
|
2537
|
+
extern int Add_error_class( void ) ;
|
|
2538
|
+
extern void* Alloc_mem( Aint v1, const Info &v2 ) ;
|
|
2539
|
+
extern void Lookup_name( const char * v1, const Info &v2, char * v3 ) ;
|
|
2540
|
+
extern void Publish_name( const char * v1, const Info &v2, const char * v3 ) ;
|
|
2541
|
+
extern void Unpublish_name( const char * v1, const Info &v2, const char * v3 ) ;
|
|
2542
|
+
extern Aint Get_address( const void * v1 ) ;
|
|
2543
|
+
extern void Add_error_string( int v1, const char * v2 ) ;
|
|
2544
|
+
extern int Query_thread( void ) ;
|
|
2545
|
+
extern void Close_port( const char * v1 ) ;
|
|
2546
|
+
extern int Add_error_code( int v1 ) ;
|
|
2547
|
+
extern void Free_mem( void * v1 ) ;
|
|
2548
|
+
extern void Open_port( const Info &v1, char * v2 ) ;
|
|
2549
|
+
extern bool Is_finalized( void ) ;
|
|
2550
|
+
extern bool Is_thread_main( void ) ;
|
|
2551
|
+
|
|
2552
|
+
#ifdef MPI_MODE_RDONLY
|
|
2553
|
+
typedef int Datarep_extent_function( const Datatype&, Aint&, void *);
|
|
2554
|
+
typedef int Datarep_conversion_function( void *, Datatype &, int, void *,
|
|
2555
|
+
Offset, void * );
|
|
2556
|
+
#endif
|
|
2557
|
+
|
|
2558
|
+
|
|
2559
|
+
extern Datatype CHAR;
|
|
2560
|
+
extern Datatype UNSIGNED_CHAR;
|
|
2561
|
+
extern Datatype BYTE;
|
|
2562
|
+
extern Datatype SHORT;
|
|
2563
|
+
extern Datatype UNSIGNED_SHORT;
|
|
2564
|
+
extern Datatype INT;
|
|
2565
|
+
extern Datatype UNSIGNED;
|
|
2566
|
+
extern Datatype LONG;
|
|
2567
|
+
extern Datatype UNSIGNED_LONG;
|
|
2568
|
+
extern Datatype FLOAT;
|
|
2569
|
+
extern Datatype DOUBLE;
|
|
2570
|
+
extern Datatype LONG_DOUBLE;
|
|
2571
|
+
extern Datatype LONG_LONG_INT;
|
|
2572
|
+
extern Datatype LONG_LONG;
|
|
2573
|
+
extern Datatype PACKED;
|
|
2574
|
+
extern Datatype LB;
|
|
2575
|
+
extern Datatype UB;
|
|
2576
|
+
extern Datatype FLOAT_INT;
|
|
2577
|
+
extern Datatype DOUBLE_INT;
|
|
2578
|
+
extern Datatype LONG_INT;
|
|
2579
|
+
extern Datatype SHORT_INT;
|
|
2580
|
+
extern Datatype LONG_DOUBLE_INT;
|
|
2581
|
+
extern Datatype REAL4;
|
|
2582
|
+
extern Datatype REAL8;
|
|
2583
|
+
extern Datatype REAL16;
|
|
2584
|
+
extern Datatype COMPLEX8;
|
|
2585
|
+
extern Datatype COMPLEX16;
|
|
2586
|
+
extern Datatype COMPLEX32;
|
|
2587
|
+
extern Datatype INTEGER1;
|
|
2588
|
+
extern Datatype INTEGER2;
|
|
2589
|
+
extern Datatype INTEGER4;
|
|
2590
|
+
extern Datatype INTEGER8;
|
|
2591
|
+
extern Datatype INTEGER16;
|
|
2592
|
+
extern Datatype WCHAR;
|
|
2593
|
+
extern Datatype SIGNED_CHAR;
|
|
2594
|
+
extern Datatype UNSIGNED_LONG_LONG;
|
|
2595
|
+
extern Datatype TWOINT;
|
|
2596
|
+
extern Datatype BOOL;
|
|
2597
|
+
#define MPIR_CXX_BOOL 0x4c000133
|
|
2598
|
+
extern Datatype COMPLEX;
|
|
2599
|
+
#define MPIR_CXX_COMPLEX 0x4c000834
|
|
2600
|
+
extern Datatype DOUBLE_COMPLEX;
|
|
2601
|
+
#define MPIR_CXX_DOUBLE_COMPLEX 0x4c001035
|
|
2602
|
+
extern Datatype LONG_DOUBLE_COMPLEX;
|
|
2603
|
+
#define MPIR_CXX_LONG_DOUBLE_COMPLEX 0x4c002036
|
|
2604
|
+
extern Datatype DATATYPE_NULL;
|
|
2605
|
+
|
|
2606
|
+
#if 1
|
|
2607
|
+
extern Datatype INTEGER;
|
|
2608
|
+
extern Datatype REAL;
|
|
2609
|
+
extern Datatype DOUBLE_PRECISION;
|
|
2610
|
+
extern Datatype F_COMPLEX;
|
|
2611
|
+
extern Datatype F_DOUBLE_COMPLEX;
|
|
2612
|
+
extern Datatype LOGICAL;
|
|
2613
|
+
extern Datatype CHARACTER;
|
|
2614
|
+
extern Datatype TWOREAL;
|
|
2615
|
+
extern Datatype TWODOUBLE_PRECISION;
|
|
2616
|
+
extern Datatype TWOINTEGER;
|
|
2617
|
+
#endif
|
|
2618
|
+
extern const Op MAX;
|
|
2619
|
+
extern const Op MIN;
|
|
2620
|
+
extern const Op SUM;
|
|
2621
|
+
extern const Op PROD;
|
|
2622
|
+
extern const Op LAND;
|
|
2623
|
+
extern const Op BAND;
|
|
2624
|
+
extern const Op LOR;
|
|
2625
|
+
extern const Op BOR;
|
|
2626
|
+
extern const Op LXOR;
|
|
2627
|
+
extern const Op BXOR;
|
|
2628
|
+
extern const Op MINLOC;
|
|
2629
|
+
extern const Op MAXLOC;
|
|
2630
|
+
extern const Op REPLACE;
|
|
2631
|
+
extern const Op OP_NULL;
|
|
2632
|
+
extern Intracomm COMM_SELF;
|
|
2633
|
+
extern const Group GROUP_EMPTY;
|
|
2634
|
+
extern const Nullcomm COMM_NULL;
|
|
2635
|
+
extern const Group GROUP_NULL;
|
|
2636
|
+
extern const Request REQUEST_NULL;
|
|
2637
|
+
extern const Errhandler ERRHANDLER_NULL;
|
|
2638
|
+
extern const Errhandler ERRORS_RETURN;
|
|
2639
|
+
extern const Errhandler ERRORS_ARE_FATAL;
|
|
2640
|
+
extern const Errhandler ERRORS_THROW_EXCEPTIONS;
|
|
2641
|
+
extern const Info INFO_NULL;
|
|
2642
|
+
extern const Win WIN_NULL;
|
|
2643
|
+
extern const int BSEND_OVERHEAD;
|
|
2644
|
+
extern const int KEYVAL_INVALID;
|
|
2645
|
+
extern const int CART;
|
|
2646
|
+
extern const int GRAPH;
|
|
2647
|
+
extern const int IDENT;
|
|
2648
|
+
extern const int SIMILAR;
|
|
2649
|
+
extern const int CONGRUENT;
|
|
2650
|
+
extern const int UNEQUAL;
|
|
2651
|
+
extern const int PROC_NULL;
|
|
2652
|
+
extern const int ANY_TAG;
|
|
2653
|
+
extern const int ANY_SOURCE;
|
|
2654
|
+
extern const int ROOT;
|
|
2655
|
+
extern const int TAG_UB;
|
|
2656
|
+
extern const int IO;
|
|
2657
|
+
extern const int HOST;
|
|
2658
|
+
extern const int WTIME_IS_GLOBAL;
|
|
2659
|
+
extern const int UNIVERSE_SIZE;
|
|
2660
|
+
extern const int LASTUSEDCODE;
|
|
2661
|
+
extern const int APPNUM;
|
|
2662
|
+
extern const int MAX_PROCESSOR_NAME;
|
|
2663
|
+
extern const int MAX_ERROR_STRING;
|
|
2664
|
+
extern const int MAX_PORT_NAME;
|
|
2665
|
+
extern const int MAX_OBJECT_NAME;
|
|
2666
|
+
extern const int MAX_INFO_VAL;
|
|
2667
|
+
extern const int MAX_INFO_KEY;
|
|
2668
|
+
extern const int UNDEFINED;
|
|
2669
|
+
extern const int LOCK_EXCLUSIVE;
|
|
2670
|
+
extern const int LOCK_SHARED;
|
|
2671
|
+
extern const int WIN_BASE;
|
|
2672
|
+
extern const int WIN_DISP_UNIT;
|
|
2673
|
+
extern const int WIN_SIZE;
|
|
2674
|
+
extern const int SUCCESS;
|
|
2675
|
+
extern const int ERR_BUFFER;
|
|
2676
|
+
extern const int ERR_COUNT;
|
|
2677
|
+
extern const int ERR_TYPE;
|
|
2678
|
+
extern const int ERR_TAG;
|
|
2679
|
+
extern const int ERR_COMM;
|
|
2680
|
+
extern const int ERR_RANK;
|
|
2681
|
+
extern const int ERR_REQUEST;
|
|
2682
|
+
extern const int ERR_ROOT;
|
|
2683
|
+
extern const int ERR_GROUP;
|
|
2684
|
+
extern const int ERR_OP;
|
|
2685
|
+
extern const int ERR_TOPOLOGY;
|
|
2686
|
+
extern const int ERR_DIMS;
|
|
2687
|
+
extern const int ERR_ARG;
|
|
2688
|
+
extern const int ERR_UNKNOWN;
|
|
2689
|
+
extern const int ERR_TRUNCATE;
|
|
2690
|
+
extern const int ERR_OTHER;
|
|
2691
|
+
extern const int ERR_INTERN;
|
|
2692
|
+
extern const int ERR_PENDING;
|
|
2693
|
+
extern const int ERR_IN_STATUS;
|
|
2694
|
+
extern const int ERR_LASTCODE;
|
|
2695
|
+
extern const int ERR_FILE;
|
|
2696
|
+
extern const int ERR_ACCESS;
|
|
2697
|
+
extern const int ERR_AMODE;
|
|
2698
|
+
extern const int ERR_BAD_FILE;
|
|
2699
|
+
extern const int ERR_FILE_EXISTS;
|
|
2700
|
+
extern const int ERR_FILE_IN_USE;
|
|
2701
|
+
extern const int ERR_NO_SPACE;
|
|
2702
|
+
extern const int ERR_NO_SUCH_FILE;
|
|
2703
|
+
extern const int ERR_IO;
|
|
2704
|
+
extern const int ERR_READ_ONLY;
|
|
2705
|
+
extern const int ERR_CONVERSION;
|
|
2706
|
+
extern const int ERR_DUP_DATAREP;
|
|
2707
|
+
extern const int ERR_UNSUPPORTED_DATAREP;
|
|
2708
|
+
extern const int ERR_INFO;
|
|
2709
|
+
extern const int ERR_INFO_KEY;
|
|
2710
|
+
extern const int ERR_INFO_VALUE;
|
|
2711
|
+
extern const int ERR_INFO_NOKEY;
|
|
2712
|
+
extern const int ERR_NAME;
|
|
2713
|
+
extern const int ERR_NO_MEM;
|
|
2714
|
+
extern const int ERR_NOT_SAME;
|
|
2715
|
+
extern const int ERR_PORT;
|
|
2716
|
+
extern const int ERR_QUOTA;
|
|
2717
|
+
extern const int ERR_SERVICE;
|
|
2718
|
+
extern const int ERR_SPAWN;
|
|
2719
|
+
extern const int ERR_UNSUPPORTED_OPERATION;
|
|
2720
|
+
extern const int ERR_WIN;
|
|
2721
|
+
extern const int ERR_BASE;
|
|
2722
|
+
extern const int ERR_LOCKTYPE;
|
|
2723
|
+
extern const int ERR_KEYVAL;
|
|
2724
|
+
extern const int ERR_RMA_CONFLICT;
|
|
2725
|
+
extern const int ERR_RMA_SYNC;
|
|
2726
|
+
extern const int ERR_SIZE;
|
|
2727
|
+
extern const int ERR_DISP;
|
|
2728
|
+
extern const int ERR_ASSERT;
|
|
2729
|
+
extern const int TYPECLASS_REAL;
|
|
2730
|
+
extern const int TYPECLASS_INTEGER;
|
|
2731
|
+
extern const int TYPECLASS_COMPLEX;
|
|
2732
|
+
#if defined(MPI_SEEK_SET) && !defined(MPICH_IGNORE_CXX_SEEK) && !defined(SEEK_SET)
|
|
2733
|
+
extern const int SEEK_SET;
|
|
2734
|
+
extern const int SEEK_END;
|
|
2735
|
+
extern const int SEEK_CUR;
|
|
2736
|
+
#endif
|
|
2737
|
+
extern const int DISTRIBUTE_BLOCK;
|
|
2738
|
+
extern const int DISTRIBUTE_CYCLIC;
|
|
2739
|
+
extern const int DISTRIBUTE_DFLT_DARG;
|
|
2740
|
+
extern const int DISTRIBUTE_NONE;
|
|
2741
|
+
extern const int ORDER_C;
|
|
2742
|
+
extern const int ORDER_FORTRAN;
|
|
2743
|
+
// Include these only if MPI-IO is available
|
|
2744
|
+
#ifdef MPI_MODE_RDONLY
|
|
2745
|
+
extern const int MAX_DATAREP_STRING;
|
|
2746
|
+
extern const MPI_Offset DISPLACEMENT_CURRENT;
|
|
2747
|
+
extern const int MODE_APPEND;
|
|
2748
|
+
extern const int MODE_CREATE;
|
|
2749
|
+
extern const int MODE_DELETE_ON_CLOSE;
|
|
2750
|
+
extern const int MODE_EXCL;
|
|
2751
|
+
extern const int MODE_RDONLY;
|
|
2752
|
+
extern const int MODE_RDWR;
|
|
2753
|
+
extern const int MODE_SEQUENTIAL;
|
|
2754
|
+
extern const int MODE_UNIQUE_OPEN;
|
|
2755
|
+
extern const int MODE_WRONLY;
|
|
2756
|
+
#endif // IO
|
|
2757
|
+
extern const int MODE_NOCHECK;
|
|
2758
|
+
extern const int MODE_NOPRECEDE;
|
|
2759
|
+
extern const int MODE_NOPUT;
|
|
2760
|
+
extern const int MODE_NOSTORE;
|
|
2761
|
+
extern const int MODE_NOSUCCEED;
|
|
2762
|
+
extern const int COMM_TYPE_SHARED;
|
|
2763
|
+
extern const int COMBINER_CONTIGUOUS;
|
|
2764
|
+
extern const int COMBINER_DARRAY;
|
|
2765
|
+
extern const int COMBINER_DUP;
|
|
2766
|
+
extern const int COMBINER_F90_COMPLEX;
|
|
2767
|
+
extern const int COMBINER_F90_INTEGER;
|
|
2768
|
+
extern const int COMBINER_F90_REAL;
|
|
2769
|
+
extern const int COMBINER_HINDEXED_INTEGER;
|
|
2770
|
+
extern const int COMBINER_HINDEXED;
|
|
2771
|
+
extern const int COMBINER_HVECTOR_INTEGER;
|
|
2772
|
+
extern const int COMBINER_HVECTOR;
|
|
2773
|
+
extern const int COMBINER_INDEXED_BLOCK;
|
|
2774
|
+
extern const int COMBINER_INDEXED;
|
|
2775
|
+
extern const int COMBINER_NAMED;
|
|
2776
|
+
extern const int COMBINER_RESIZED;
|
|
2777
|
+
extern const int COMBINER_STRUCT_INTEGER;
|
|
2778
|
+
extern const int COMBINER_STRUCT;
|
|
2779
|
+
extern const int COMBINER_SUBARRAY;
|
|
2780
|
+
extern const int COMBINER_VECTOR;
|
|
2781
|
+
extern const int COMBINER_HINDEXED_BLOCK;
|
|
2782
|
+
extern const int THREAD_FUNNELED;
|
|
2783
|
+
extern const int THREAD_MULTIPLE;
|
|
2784
|
+
extern const int THREAD_SERIALIZED;
|
|
2785
|
+
extern const int THREAD_SINGLE;
|
|
2786
|
+
extern const char ** const ARGV_NULL;
|
|
2787
|
+
extern const char *** const ARGVS_NULL;
|
|
2788
|
+
extern void * const BOTTOM;
|
|
2789
|
+
extern void * const IN_PLACE;
|
|
2790
|
+
extern void Init(void);
|
|
2791
|
+
extern void Init(int &, char **& );
|
|
2792
|
+
extern int Init_thread(int);
|
|
2793
|
+
extern int Init_thread(int &, char **&, int );
|
|
2794
|
+
extern double Wtime(void);
|
|
2795
|
+
extern double Wtick(void);
|
|
2796
|
+
} // namespace MPI
|