mpi + shmem issues
Morten Rodal
morten at rodal.no
Tue May 27 00:23:17 PDT 2003
On Sun, May 25, 2003 at 05:17:30PM -0400, Anthony Schneider wrote:
> additional information:
>
> when recompiling mpich for debugging symbols, configure fails on:
> checking that usable shared memory locks were found... no
>
> so, does this mean that mpich somehow exhausted all shmem locks?
> after running the program only 10 times, i see this as infeasible,
> considering
> a) mpich (presumably in MPI_Init()) would only want 1 or
> 2 locks on init
> and
> b) any shared memory locks mpich grabs should be freed
> upon process completion (whether clean or not) by the
> operating system, no?
>
ALWAYS remember to call MPI_Finalize(), since it clears up stuff like
semaphores and memory allocations.
> > #include <mpi.h>
> > #include <stdio.h>
> >
> > int main (int argc, char *argv[]) {
> > int mpiRank, mpiSize;
> >
> > MPI_Init (&argc, &argv);
> > MPI_Comm_rank (MPI_COMM_WORLD, &mpiRank);
> >
> > printf ("#%d here\n", mpiRank);
> >
MPI_Finalize();
> > return 0;
> >
> > }
> >
>
--
Morten Rodal
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20030527/8db03000/attachment.bin
More information about the freebsd-current
mailing list