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