Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

I want to use PETSc only for uniprocessor programs. Must I still install and use a version of MPI?

0
Posted

I want to use PETSc only for uniprocessor programs. Must I still install and use a version of MPI?

0

For those using PETSc as a sequential library, the software can be compiled and run without using an implementation of MPI. To do this, edit the file ${PETSC_DIR}/bmake/${PETSC_ARCH}/base.site and change the lines that define the location of MPI to MPI_LIB = ${PETSC_DIR}/lib/lib${BOPT}/${PETSC_ARCH}/libmpiuni.a MPI_INCLUDE = -I${PETSC_DIR}/src/sys/src/mpiuni MPIRUN = ${PETSC_DIR}/src/sys/src/mpiuni/mpirun If you compile PETSc as such, you will be able to run PETSc ONLY on one processor. Also, you will be able to run the program directly, without using the mpirun command.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123