[petsc-users] about MPI

Ethan Coon ecoon at lanl.gov
Fri Aug 26 17:00:21 CDT 2011


By default, PETSc doesn't put mpiexec in the path.

Try:

${PETSC_DIR}/${PETSC_ARCH}/bin/mpiexec -n ...

Assuming that works, you can put this directory, i.e.

$PETSC_DIR/$PETSC_ARCH/bin 

in your $PATH environmental variable, and just using "mpiexec" should
work fine then.

Ethan


On Fri, 2011-08-26 at 17:41 -0400, Likun Tan wrote:
> Hello,
> 
> I try to run my code with MPI, but i got the message: 'mpiexec: command
> not found'. I installed mpi and tested it successfully on examples with
> 'make all test'.

> I also tried to specify the path for mpi with ./config/configure.py
> --with-mpi-dir=/home/likunt/petsc-3.1-p8/externalpackages/mpich2-1.0.8,
> but it shows 'unable to configure with given options'.
> 
> Any suggestions on this?
> 
> Thanks,
> Likun
> 
> 
> 
> 
> 
> 

-- 
------------------------------------
Ethan Coon
Post-Doctoral Researcher
Applied Mathematics - T-5
Los Alamos National Laboratory
505-665-8289

http://www.ldeo.columbia.edu/~ecoon/
------------------------------------



More information about the petsc-users mailing list