Thanks a lot. That is the only issue.
/usr/lib64/openmpi/include doesn't exist.
The configuration can be done without issue with the 2nd method. But when I
did make, the following warning came. I will study your link.
Thanks,
f951: Warning: Nonexistent include directory ‘/usr/lib64/openmpi/inclu
> Includes: -I/usr/lib64/openmpi/include (*This is not the right include
> directory*)
So this is the only issue? Does this dir not exist? If so, you can try the
following fix:
https://urldefense.us/v3/__https://gitlab.com/petsc/petsc/-/merge_requests/7545__;!!G_uCfscf7eWS!a7OhWBQn8Zp5RfRnL
On Mon, 13 May 2024, neil liu wrote:
> I also tried the 2nd way, it didn't work.
configure.log attached is successful.
Configure Options: --configModules=PETSc.Configure
--optionsModule=config.compilerOptions --download-fblaslapack
--with-mpi-dir=/usr/lib64/openmpi
Compilers:
C Co
If you are using mpicc/mpif90 as compilers from you pre-installed MPI - you
don't need to list --with-mpi-include, --with-mpi-lib options.
As mentioned - you can do this either with:
[if you have then in PATH] --with-cc=mpicc --with-cxx=mpicxx --with-fc=mpif90
or:
--with-cc=MPI-DIR/bin/mpicc -
Thanks. I want to use the preinstalled OpenMPI to configure petsc. For the
preinstalled OpenMPI, the lib and include dir are at different places.
Then how should I configure with this preinstalled OpenMPI?
Thanks,
$ mpicc --show
gcc -I/usr/include/openmpi-x86_64 -Wl,-rpath -Wl,/usr/lib64/openmpi/
You are misinterpreting --with-mpi-include --with-mpi-lib options.
Any particular reason you want to use these options instead of mpi compilers?
>>>
balay@p1 /home/balay
$ mpicc -show
gcc -I/home/balay/soft/mpich-4.0.1/include -L/home/balay/soft/mpich-4.0.1/lib
-Wl,-rpath -Wl,/home/balay/so
On Mon, 13 May 2024, neil liu wrote:
> Dear Petsc developers,
>
> I am trying to install Petsc with a preinstalled OpenMPi.
>
> ./configure --download-fblaslapack --with-mpi-dir=/usr/lib64/openmpi
--with-mpi-dir=DIR is a bit unique [wrt other pkg-dir options].
It means:
--with-cc=DIR/bin/mp
Dear Petsc developers,
I am trying to install Petsc with a preinstalled OpenMPi.
./configure --download-fblaslapack --with-mpi-dir=/usr/lib64/openmpi
--with-mpi-incdir=/usr/include/openmpi-x86_64
But the final information shows,
MPI:
Version:3
Includes: -I/usr/lib64/openmpi/include (