<div><span style="white-space:pre-wrap">On Sat, Oct 13, 2012 at 3:19 PM, Matthew Knepley <</span><a href="https://lists.mcs.anl.gov/mailman/listinfo/petsc-users" style="white-space:pre-wrap">knepley at gmail.com</a><span style="white-space:pre-wrap">> wrote:</span></div>
<pre style="white-space:pre-wrap">><i> On Sat, Oct 13, 2012 at 3:17 PM, George Mathew <<a href="https://lists.mcs.anl.gov/mailman/listinfo/petsc-users">gmnnus at gmail.com</a>> wrote:
</i>><i>
</i>>><i> I have petsc 3.3 and mpich2 version 1.4.1p1 installed.
</i>>><i> When I run the example ex2.c code in the petsc user manual, it runs one
</i>>><i> one machine format. But, if I chose to run on multiple nodes, it gives
</i>>><i> error.
</i>>><i> The example is the file ${PETSC}/src/ksp/ksp/examples/tutorials/ex2.c.
</i>>><i> I compiled it and when run using the following command, it works.
</i>>><i> mpiexec -f machinefile -n 1 ./ex2
</i>>><i> But, if I run it using the command
</i>>><i> mpiexec -f machinefile -n 2 ./ex2
</i>>><i> I get the following error.
</i>>><i>
</i>><i>
</i>><i> It is very likely that you are running the code with the wrong mpiexec
</i>><i> (from another MPI installation).
</i>><i> I cannot tell which MPI you used with configure.log.
</i>><i>
</i>
>Can you also try
>1. Run multiple processes on your local machine
>2. Run with -skip_petscrc</pre><pre style="white-space:pre-wrap">I have only one MPI installation. It is under /usr/local/bin. The following command works:</pre><pre style="white-space:pre-wrap">mpiexec -n 4 ./ex2</pre>
<pre style="white-space:pre-wrap">So, locally, multiple processes must be running fine.</pre><pre style="white-space:pre-wrap">How do I run with -skip_petscrc?</pre><pre style="white-space:pre-wrap">Thanx.</pre><pre style="white-space:pre-wrap">
</pre>