[petsc-dev] PETSc developers who use weird MPI

Barry Smith bsmith at mcs.anl.gov
Fri Nov 1 19:20:42 CDT 2013


On Nov 1, 2013, at 6:35 PM, Peter Brune <prbrune at gmail.com> wrote:

> Cool.  I added things to the header and there doesn't appear to be any MPI_OP-specific code in mpiuni/mpi.c.  Am I missing something?

   Only if it doesn’t work.  General the global reductions in mpiuni are handled by a simple memcpy() likely that will work for your ops as well?


   Barry

> 
> - Peter
> 
> 
> On Fri, Nov 1, 2013 at 6:07 PM, Barry Smith <bsmith at mcs.anl.gov> wrote:
> 
> On Nov 1, 2013, at 5:40 PM, Peter Brune <prbrune at gmail.com> wrote:
> 
> > So what's the fix?
> >
> 
>    Anyone who uses functionality in MPI that was not previously used in PETSc needs to add any support that is needed to include/mpiuni/mpi.h and or src/sys/mpiuni/mpi.c Usually it is very easy
> 
>    Barry
> 
> > - Peter
> >
> >
> > On Fri, Nov 1, 2013 at 5:03 PM, Barry Smith <bsmith at mcs.anl.gov> wrote:
> >
> >    please always test with mpiuni before pushing when you use weird MPI
> >
> > 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)
> > 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)
> > src/vec/is/sf/impls/basic/sfbasic.c:598:18: error: ‘MPI_BAND’ undeclared (first use in this function)
> > src/vec/is/sf/impls/basic/sfbasic.c:599:18: error: ‘MPI_LOR’ undeclared (first use in this function)
> > src/vec/is/sf/impls/basic/sfbasic.c:600:18: error: ‘MPI_BOR’ undeclared (first use in this function)
> > src/vec/is/sf/impls/basic/sfbasic.c:601:18: error: ‘MPI_LXOR’ undeclared (first use in this function)
> > src/vec/is/sf/impls/basic/sfbasic.c:602:18: error: ‘MPI_BXOR’ undeclared (first use in this function)
> > src/vec/is/sf/impls/basic/sfbasic.c: In function ‘PetscSFBasicPackGetFetchAndOp’:
> >
> >
> >    It is frustrating to get this kind of crap all the time after pulling.
> >
> >    Thanks
> >
> >     Barry
> >
> >
> 
> 




More information about the petsc-dev mailing list