mpiexec

Satish Balay balay at mcs.anl.gov
Thu Jun 25 13:52:44 CDT 2009


Also make sure 'mpiexec' you are using corresponds to the MPI petsc is built with.

Satish


On Thu, 25 Jun 2009, Barry Smith wrote:

> 
>  Did you recompile the MPI libraries? Did you re configure and compile ALL of
> PETSc after the change? You will need to do all this.
> 
>   Barry
> 
> On Jun 25, 2009, at 1:30 PM, Yixun Liu wrote:
> 
> > Hi,
> > My PETSc based application can work correctly, but after system updating
> > when I use the same commands:
> > > lamboot
> > > mpiexec -np 4 application
> > 
> > It seems only one processor works. Then I  test it using the following code,
> > 
> > **********
> > PetscErrorCode ierr = MPI_Comm_rank(PETSC_COMM_WORLD,&rank);CHKERRQ(ierr);
> > 
> > COUT << "This is processor : " << rank << ENDL;
> > 
> > Use command: mpiexec -np 4 application,
> > The output is:
> > This is processor : 0
> > This is processor : 0
> > This is processor : 0
> > This is processor : 0
> > *********
> > 
> > Thanks for your help.
> > 
> > Yixun
> > 
> > 
> 



More information about the petsc-users mailing list