[petsc-users] Can not find the header file for OpenMPI
neil liu
liufield at gmail.com
Mon May 13 10:36:55 CDT 2024
Thanks, I tried the following, and it didn't work.
./configure --download-fblaslapack --with-mpi-lib=/usr/lib64/openmpi/lib
--with-mpi-include=/usr/include/openmpi-x86_64
=============================================================================================
Configuring PETSc to compile on your system
=============================================================================================
TESTING: check from
config.libraries(config/BuildSystem/config/libraries.py:186)
*********************************************************************************************
UNABLE to CONFIGURE with GIVEN OPTIONS (see configure.log for
details):
---------------------------------------------------------------------------------------------
--with-mpi-lib=['/usr/lib64/openmpi/lib'] and
--with-mpi-include=['/usr/include/openmpi-x86_64'] did not work
*********************************************************************************************
On Mon, May 13, 2024 at 11:32 AM Satish Balay <balay at mcs.anl.gov> wrote:
>
> 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/mpicc --with-cxx=DIR/bin/mpicxx --with-fc=DIR/bin/mpif90
>
> > --with-mpi-incdir=/usr/include/openmpi-x86_64
>
> There is no such configure option
>
> >
> > But the final information shows,
> > MPI:
> > Version: 3
> > Includes: -I/usr/lib64/openmpi/include (*This is not the right
> include
> > directory*)
>
> Can you send configure.log for this build [perhaps to petsc-maint]
>
> Satish
>
> > mpiexec: /usr/lib64/openmpi/bin/mpiexec
> > Implementation: openmpi
> > OMPI_VERSION: 4.1.1
> >
> > Did I use the wrong way to include the incdir?
> >
> > Thanks,
> > Xiaodong
> >
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20240513/8f4be434/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: configure.log
Type: text/x-log
Size: 577594 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20240513/8f4be434/attachment-0001.bin>
More information about the petsc-users
mailing list