question -- configure PETSC to exploit multicore machine

Satish Balay balay at
Tue Aug 5 17:33:27 CDT 2008

On Tue, 5 Aug 2008, Albert Hartono wrote:

> Hello,
> I'm new to PETSC and I'm running PETSC on a single node machine that has
> eight cores. And executing PETSC programs is done interactively (not via
> batch requests).
> Is there an easy way to configure/adjust PETSC so that it can run eight
> MPI processes on that machine (i.e. one MPI process/core)?

Just install PETSc with MPI - for eg: with the configure option

Now when you run with 'mpiexec -np 8 binary', the 8 MPI processes will
be spawned on this machine - and the OS will make sure that each of
the 8 cores are allocated to each of the 8 MPI processes.


More information about the petsc-users mailing list