Newsgroups: comp.parallel.mpi
From: bijal@nuc.berkeley.edu (Bijal C. Modi)
Subject: Re: MPI implementation and simulation
Organization: University of California
Date: 26 Apr 1996 07:46:38 GMT
Message-ID: <4lpv0u$e7p@agate.berkeley.edu>

In article <4lp6jf$f6r@fu-berlin.de>,
Axel Thimm <thimm@zedat.fu-berlin.de> wrote:
>Hello,
>Is there also a simulation library, that can simulate MPI calls on a
>single processor? (This would be nice to be able to keep the same source
>for parallel and non parallel computers)
>Many thanks in advance,
>	Axel Thimm.

HI Axel,

 If you running on a single processor, you can always modify your procgroup
file and replace all other hostnames with the hostname you are running
your program. This will simulate "multi-processors" by creating multiple
processes which communicate via sockets. Of course, performance would be
affected compared to single processor optimized serial code. However, it's
a good way to test your parallel program.

-Bijal
 bijal@fusion.berkeley.edu
--
                *      /\                       *
        *             |()|        *         Bijal Modi                    *
           *          |  |                  bijal@fusion.berkeley.edu
 *              *     |  |     *        *   U.C. Berkeley

