9
9
* University of Stuttgart. All rights reserved.
10
10
* Copyright (c) 2004-2005 The Regents of the University of California.
11
11
* All rights reserved.
12
- * Copyright (c) 2007-2021 Cisco Systems, Inc. All rights reserved
12
+ * Copyright (c) 2007-2022 Cisco Systems, Inc. All rights reserved
13
13
* Copyright (c) 2008-2009 Sun Microsystems, Inc. All rights reserved.
14
14
* Copyright (c) 2009-2012 Oak Rigde National Laboratory. All rights reserved.
15
15
* Copyright (c) 2011-2020 Sandia National Laboratories. All rights reserved.
@@ -532,6 +532,11 @@ typedef MPI_Win_errhandler_function MPI_Win_errhandler_fn
532
532
533
533
/*
534
534
* Miscellaneous constants
535
+ *
536
+ * NOTE: Many of the integer constants below *also* appear in
537
+ * ompi/include/mpif-values.pl. If you change any of these integer
538
+ * values below, make sure to also change the corresponding values in
539
+ * mpif-values.pl.
535
540
*/
536
541
#define MPI_ANY_SOURCE -1 /* match any source rank */
537
542
#define MPI_PROC_NULL -2 /* rank of null process */
@@ -572,9 +577,13 @@ typedef MPI_Win_errhandler_function MPI_Win_errhandler_fn
572
577
573
578
/*
574
579
* Constants for C code to access elements in Fortran MPI status array.
580
+ *
581
+ * NOTE: The MPI_F_SOURCE, MPI_F_TAG, MPI_F_ERROR are intentionally 1
582
+ * smaller than their Fortran equivalents in mpif-values.pl (because C
583
+ * is 0-indexed and Fortran is 1-indexed).
575
584
*/
576
585
#define MPI_F_STATUS_SIZE OMPI_FORTRAN_STATUS_SIZE /* Size of Fortran MPI status array */
577
- #define MPI_F_SOURCE 0 /* Index for MPI_SOURCE */
586
+ #define MPI_F_SOURCE 0 /* Index for MPI_SOURCE */
578
587
#define MPI_F_TAG 1 /* Index for MPI_TAG */
579
588
#define MPI_F_ERROR 2 /* Index for MPI_ERROR */
580
589
@@ -626,7 +635,8 @@ typedef MPI_Win_errhandler_function MPI_Win_errhandler_fn
626
635
* Predefined attribute keyvals
627
636
*
628
637
* DO NOT CHANGE THE ORDER WITHOUT ALSO CHANGING THE ORDER IN
629
- * src/attribute/attribute_predefined.c and mpif.h.in.
638
+ * ompi/attribute/attribute_predefined.c and mpif-constants.h (which
639
+ * is included by mpif.h.in).
630
640
*/
631
641
enum {
632
642
/* MPI-1 */
@@ -744,7 +754,8 @@ enum {
744
754
/*
745
755
* Comparison results. Don't change the order of these, the group
746
756
* comparison functions rely on it.
747
- * Do not change the order of these without also modifying mpif.h.in.
757
+ * Do not change the order of these without also modifying
758
+ * mpif-values.pl.
748
759
*/
749
760
enum {
750
761
MPI_IDENT ,
@@ -755,7 +766,8 @@ enum {
755
766
756
767
/*
757
768
* MPI_Init_thread constants
758
- * Do not change the order of these without also modifying mpif.h.in.
769
+ * Do not change the order of these without also modifying
770
+ * mpif-values.pl.
759
771
*/
760
772
enum {
761
773
MPI_THREAD_SINGLE ,
@@ -766,8 +778,8 @@ enum {
766
778
767
779
/*
768
780
* Datatype combiners.
769
- * Do not change the order of these without also modifying mpif.h.in.
770
- * (see also mpif-common.h.fin) .
781
+ * Do not change the order of these without also modifying
782
+ * mpif-values.pl .
771
783
*/
772
784
enum {
773
785
MPI_COMBINER_NAMED ,
@@ -818,8 +830,8 @@ enum {
818
830
819
831
/*
820
832
* Communicator split type constants.
821
- * Do not change the order of these without also modifying mpif.h.in
822
- * (see also mpif-common.h.fin) .
833
+ * Do not change the order of these without also modifying
834
+ * mpif-values.pl .
823
835
*/
824
836
enum {
825
837
MPI_COMM_TYPE_SHARED ,
@@ -1478,7 +1490,7 @@ OMPI_DECLSPEC int MPI_Comm_disconnect(MPI_Comm *comm);
1478
1490
OMPI_DECLSPEC int MPI_Comm_dup (MPI_Comm comm , MPI_Comm * newcomm );
1479
1491
OMPI_DECLSPEC int MPI_Comm_idup (MPI_Comm comm , MPI_Comm * newcomm , MPI_Request * request );
1480
1492
OMPI_DECLSPEC int MPI_Comm_dup_with_info (MPI_Comm comm , MPI_Info info , MPI_Comm * newcomm );
1481
- OMPI_DECLSPEC int MPI_Comm_idup_with_info (MPI_Comm comm , MPI_Info info , MPI_Comm * newcomm ,
1493
+ OMPI_DECLSPEC int MPI_Comm_idup_with_info (MPI_Comm comm , MPI_Info info , MPI_Comm * newcomm ,
1482
1494
MPI_Request * request );
1483
1495
OMPI_DECLSPEC MPI_Comm MPI_Comm_f2c (MPI_Fint comm );
1484
1496
OMPI_DECLSPEC int MPI_Comm_free_keyval (int * comm_keyval );
@@ -2258,7 +2270,7 @@ OMPI_DECLSPEC int PMPI_Comm_disconnect(MPI_Comm *comm);
2258
2270
OMPI_DECLSPEC int PMPI_Comm_dup (MPI_Comm comm , MPI_Comm * newcomm );
2259
2271
OMPI_DECLSPEC int PMPI_Comm_idup (MPI_Comm comm , MPI_Comm * newcomm , MPI_Request * request );
2260
2272
OMPI_DECLSPEC int PMPI_Comm_dup_with_info (MPI_Comm comm , MPI_Info info , MPI_Comm * newcomm );
2261
- OMPI_DECLSPEC int PMPI_Comm_idup_with_info (MPI_Comm comm , MPI_Info info , MPI_Comm * newcomm ,
2273
+ OMPI_DECLSPEC int PMPI_Comm_idup_with_info (MPI_Comm comm , MPI_Info info , MPI_Comm * newcomm ,
2262
2274
MPI_Request * request );
2263
2275
OMPI_DECLSPEC MPI_Comm PMPI_Comm_f2c (MPI_Fint comm );
2264
2276
OMPI_DECLSPEC int PMPI_Comm_free_keyval (int * comm_keyval );
0 commit comments