[petsc-dev] nightlybuild with mpiuni

Satish Balay balay at mcs.anl.gov
Sun Oct 20 10:34:47 CDT 2013


Presumably this code gets nulled out for np=1 - so the following would work?

Satish

<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<

diff --git a/include/mpiuni/mpi.h b/include/mpiuni/mpi.h
index 24d4a22..4ea3f2d 100644
--- a/include/mpiuni/mpi.h
+++ b/include/mpiuni/mpi.h
@@ -201,6 +201,13 @@ typedef int MPI_Op;
 #define MPI_MAX           0
 #define MPI_MIN           0
 #define MPI_REPLACE       0
+#define MPI_PROD          0
+#define MPI_LAND          0
+#define MPI_BAND          0
+#define MPI_LOR           0
+#define MPI_BOR           0
+#define MPI_LXOR          0
+#define MPI_BXOR          0
 #define MPI_ANY_TAG     (-1)
 #define MPI_DATATYPE_NULL 0
 #define MPI_PACKED        0
balay at mockingbird /home/balay/petsc (next)

>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>.


src/vec/is/sf/impls/basic/sfbasic.c: In function ‘PetscSFBasicPackGetUnpackOp’:
src/vec/is/sf/impls/basic/sfbasic.c:594:18: error: ‘MPI_PROD’ undeclared (first use in this function)
   else if (op == MPI_PROD) *UnpackOp = link->UnpackMult;
                  ^
src/vec/is/sf/impls/basic/sfbasic.c:594:18: note: each undeclared identifier is reported only once for each function it appears in
src/vec/is/sf/impls/basic/sfbasic.c:597:18: error: ‘MPI_LAND’ undeclared (first use in this function)
   else if (op == MPI_LAND) *UnpackOp = link->UnpackLAND;
                  ^
src/vec/is/sf/impls/basic/sfbasic.c:598:18: error: ‘MPI_BAND’ undeclared (first use in this function)
   else if (op == MPI_BAND) *UnpackOp = link->UnpackBAND;
                  ^
src/vec/is/sf/impls/basic/sfbasic.c:599:18: error: ‘MPI_LOR’ undeclared (first use in this function)
   else if (op == MPI_LOR) *UnpackOp = link->UnpackLOR;
                  ^
src/vec/is/sf/impls/basic/sfbasic.c:600:18: error: ‘MPI_BOR’ undeclared (first use in this function)
   else if (op == MPI_BOR) *UnpackOp = link->UnpackBOR;
                  ^
src/vec/is/sf/impls/basic/sfbasic.c:601:18: error: ‘MPI_LXOR’ undeclared (first use in this function)
   else if (op == MPI_LXOR) *UnpackOp = link->UnpackLXOR;
                  ^
src/vec/is/sf/impls/basic/sfbasic.c:602:18: error: ‘MPI_BXOR’ undeclared (first use in this function)
   else if (op == MPI_BXOR) *UnpackOp = link->UnpackBXOR;
                  ^
src/vec/is/sf/impls/basic/sfbasic.c: In function ‘PetscSFBasicPackGetFetchAndOp’:
src/vec/is/sf/impls/basic/sfbasic.c:620:18: error: ‘MPI_PROD’ undeclared (first use in this function)
   else if (op == MPI_PROD)   *FetchAndOp = link->FetchAndMult;
                  ^
src/vec/is/sf/impls/basic/sfbasic.c:621:18: error: ‘MPI_LAND’ undeclared (first use in this function)
   else if (op == MPI_LAND)   *FetchAndOp = link->FetchAndLAND;
                  ^
src/vec/is/sf/impls/basic/sfbasic.c:622:18: error: ‘MPI_BAND’ undeclared (first use in this function)
   else if (op == MPI_BAND)   *FetchAndOp = link->FetchAndBAND;
                  ^
src/vec/is/sf/impls/basic/sfbasic.c:623:18: error: ‘MPI_LOR’ undeclared (first use in this function)
   else if (op == MPI_LOR)    *FetchAndOp = link->FetchAndLOR;
                  ^
src/vec/is/sf/impls/basic/sfbasic.c:624:18: error: ‘MPI_BOR’ undeclared (first use in this function)
   else if (op == MPI_BOR)    *FetchAndOp = link->FetchAndBOR;
                  ^
src/vec/is/sf/impls/basic/sfbasic.c:625:18: error: ‘MPI_LXOR’ undeclared (first use in this function)
   else if (op == MPI_LXOR)   *FetchAndOp = link->FetchAndLXOR;
                  ^
src/vec/is/sf/impls/basic/sfbasic.c:626:18: error: ‘MPI_BXOR’ undeclared (first use in this function)
   else if (op == MPI_BXOR)   *FetchAndOp = link->FetchAndBXOR;
                  ^
          CC arch-linux-uni/obj/src/vec/is/is/impls/stride/stride.o
make[2]: *** [arch-linux-uni/obj/src/vec/is/sf/impls/basic/sfbasic.o] Error 1
make[2]: *** Waiting for unfinished jobs....
          CC arch-linux-uni/obj/src/vec/is/is/impls/stride/ftn-auto/stridef.o
make[2]: Leaving directory `/sandbox/petsc/petsc.clone-2'
make[1]: *** [gnumake] Error 2
make[1]: Leaving directory `/sandbox/petsc/petsc.clone-2'
ESC[1;31m**************************ERROR*************************************
  Error during compile, check arch-linux-uni/conf/make.log
  Send it and arch-linux-uni/conf/configure.log to petsc-maint at mcs.anl.gov
********************************************************************ESC[0;39mESC[0;49m



More information about the petsc-dev mailing list