Thank you for your post; I have to admit that I never thought of this as
an option. As the "other way" [which Jeff has posted] is more natural
to me, I will probably try for that first -- but I'll keep what you
posted in the back of my mind.
Thanks a lot!
Jed Brown wrote:
> On Mon 2008-11-10 12:35, Raymond Wan wrote:
>> With #define's and compiler flags, I think that can be easily done --
>> was wondering if this is something that developers using MPI do and
>> whether AC/AM supports it.
> The normal way to do this is by building against a serial implementation
> of MPI. Lots of parallel numerical libraries bundle such an
> implementation so you could just grab one of those. For example, see
> PETSc's mpiuni ($PETSC_DIR/include/mpiuni/mpi.h and
> $PETSC_DIR/src/sys/mpiuni/mpi.c) which implements many MPI calls as
> Note that your serial implementation only needs to provide the subset of
> MPI that your program actually uses. For instance, if you never send
> messages to yourself, you can implement MPI_Send as MPI_Abort since it
> should never be called in serial.