[petsc-users] Help with mpiexec

Matthew Knepley knepley at gmail.com
Sat Oct 13 15:19:07 CDT 2012


On Sat, Oct 13, 2012 at 3:17 PM, George Mathew <gmnnus at gmail.com> wrote:

> I have petsc 3.3 and mpich2 version 1.4.1p1 installed.
> When I run the example ex2.c code in the petsc user manual, it runs one
> one machine format. But, if I chose to run on multiple nodes, it gives
> error.
> The example is the file ${PETSC}/src/ksp/ksp/examples/tutorials/ex2.c.
> I compiled it and when run using the following command, it works.
> mpiexec -f machinefile -n 1 ./ex2
> But, if I run it using the command
> mpiexec -f machinefile -n 2 ./ex2
> I get the following error.
>

It is very likely that you are running the code with the wrong mpiexec
(from another MPI installation).
I cannot tell which MPI you used with configure.log.

   Matt


> [0]PETSC ERROR: PetscOptionsInsertFile() line 485 in
> src/sys/objects/options.c
> [0]PETSC ERROR: PetscOptionsInsert() line 621 in src/sys/objects/options.c
> [0]PETSC ERROR: PetscInitialize() line 751 in src/sys/objects/pinit.c
> PETSC ERROR: Logging has not been enabled.
> You might have forgotten to call PetscInitialize().
> application called MPI_Abort(MPI_COMM_WORLD, 56) - process 0
>
> Can anyone help? Thanx in advance.
>



-- 
What most experimenters take for granted before they begin their
experiments is infinitely more interesting than any results to which their
experiments lead.
-- Norbert Wiener
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20121013/7bca59f1/attachment.html>


More information about the petsc-users mailing list