[petsc-users] Can not find the header file for OpenMPI

Satish Balay balay at mcs.anl.gov
Mon May 13 12:39:25 CDT 2024


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 Compiler:         /usr/lib64/openmpi/bin/mpicc  -fPIC -Wall -Wwrite-strings -Wno-unknown-pragmas -Wno-lto-type-mismatch -Wno-stringop-overflow -fstack-protector -fvisibility=hidden -g3 -O0
    Version: gcc (GCC) 11.4.1 20231218 (Red Hat 11.4.1-3)
  C++ Compiler:         /usr/lib64/openmpi/bin/mpicxx  -Wall -Wwrite-strings -Wno-strict-aliasing -Wno-unknown-pragmas -Wno-lto-type-mismatch -Wno-psabi -fstack-protector -fvisibility=hidden -g -O0  -std=gnu++20 -fPIC
    Version: g++ (GCC) 11.4.1 20231218 (Red Hat 11.4.1-3)
  Fortran Compiler:         /usr/lib64/openmpi/bin/mpif90  -fPIC -Wall -ffree-line-length-none -ffree-line-length-0 -Wno-lto-type-mismatch -Wno-unused-dummy-argument -g -O0
    Version: GNU Fortran (GCC) 11.4.1 20231218 (Red Hat 11.4.1-3)
<<<<<

So the correct compilers from the specified  mpi location /usr/lib64/openmpi got used.

What problem are you seeing with this build?

Satish


More information about the petsc-users mailing list