[petsc-users] [petsc-maint #97642] Configuration with Intel compilers
Satish Balay
balay at mcs.anl.gov
Thu Nov 24 09:42:06 CST 2011
1. hypre requires a c++ compiler
2. --with-mpi-dir=/curc/tools/free/redhat_5_x86_64/openmpi-1.4.3_intel-12.0_ib --with-cc=icc --with-fc=ifort
Its best to use mpicc/mpif90/mpicxx from the mpi install - and not
change compilers for mpi.
So use only
'--with-mpi-dir=/curc/tools/free/redhat_5_x86_64/openmpi-1.4.3_intel-12.0_ib'
[so that PETSc automatically uses mpicc from the specified mpi-dir] - or use:
--with-cc=/curc/tools/free/redhat_5_x86_64/openmpi-1.4.3_intel-12.0_ib/bin/mpicc
--with-fc=/curc/tools/free/redhat_5_x86_64/openmpi-1.4.3_intel-12.0_ib/bin/mpif90
--with-cxx=/curc/tools/free/redhat_5_x86_64/openmpi-1.4.3_intel-12.0_ib/bin/mpicxx
Satish
On Thu, 24 Nov 2011, Mohamad M. Nasr-Azadani wrote:
> Hi,
>
> I am trying to compile petsc with intel compilers.
> This is my configuration:
>
> ./configure
> --with-mpi-dir=/curc/tools/free/redhat_5_x86_64/openmpi-1.4.3_intel-12.0_ib
> --with-cc=icc --with-fc=ifort --download-f-blas-lapack=1 --with-debugging=0
> --download-hypre=/home/mmnasr/hypre-2.7.0b.tar.gz COPTFLAGS='-O3'
> FOPTFLAGS='-O3'
>
> It does not go through.
> I have also seen this link
> http://www.mcs.anl.gov/petsc/documentation/faq.html#mpi-compilers
> and tried --with-mpi-compilers=0. and it did not work either.
> The farthest I could get was when I defined --with-cc=icc --with-fc=ifort.
> But still it stops at
>
>
> TESTING: CxxMPICheck from
> config.packages.MPI(/home/mmnasr/petsc-3.1-p8/config/BuildSystem/config/packages/MPI.py:618)
> *******************************************************************************
> UNABLE to CONFIGURE with GIVEN OPTIONS (see configure.log for
> details):
> -------------------------------------------------------------------------------
> C++ error! MPI_Finalize() could not be located!
> *******************************************************************************
>
>
> I have attached the configure.log file.
> Any suggestions?
>
> Happy thanksgiving,
> Best,
> Mohamad
>
>
More information about the petsc-users
mailing list