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
This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:09 UTC