[petsc-users] compile petsc with intel compiler

Michael Povolotskyi mpovolot at purdue.edu
Tue Jul 9 16:17:24 CDT 2013


On 07/09/2013 04:37 PM, Satish Balay wrote:
> On Tue, 9 Jul 2013, Michael Povolotskyi wrote:
>
>> Dear Petsc users and developers,
>> I'm trying to build petsc with Intel compiler.
>> What is strange to me that it has something to do with Gfortran, while I want
>> to build everything with Intel.
> Looks like you are not using intel compilers - just intel mpi
>
> Satish.
Hello Satish,
I tried to specify exactly that I want to use Intel compilers:

./config/configure.py --with-x=0 --with-hdf5 --download-hdf5=1 
--with-scalar-type=real --with-single-library=0  --with-pic=1 
--with-shared-libraries=0 --with-mpi-dir=/opt/intel/impi/4.1.0/ \
          --with-clanguage=C++ --with-fortran --with-debugging=1 
--with-cc="/opt/intel/impi/4.1.0/intel64/bin/mpiicc 
-cc=/opt/intel/bin/icc" 
--with-fc="/opt/intel/impi/4.1.0/intel64/bin/mpiifort 
-fc=/opt/intel/bin/ifort" 
--with-cxx="/opt/intel/impi/4.1.0/intel64/bin/mpiicpc 
-cxx=/opt/intel/bin/icpc " COPTFLAGS="-O3" CXXOPTFLAGS="-O3" 
FOPTFLAGS="-O3"  --download-metis=1 --download-parmetis=1 
--download-mumps=1 
--download-scalapack=/home/mpovolot/Code_intel/libs/petsc/scalapack-2.0.2.tgz 
--with-fortran-kernels=1  --with-blas-lapack-dir=/opt/intel/mkl/ 
--download-blacs=1;


But I get the following error message:

****************************************************************************
          UNABLE to CONFIGURE with GIVEN OPTIONS    (see configure.log 
for details):
-------------------------------------------------------------------------------
--with-cc=/opt/intel/impi/4.1.0/intel64/bin/mpiicc 
-cc=/opt/intel/bin/icc is specified with 
--with-mpi-dir=/opt/intel/impi/4.1.0/. However 
/opt/intel/impi/4.1.0/bin/mpicc exists and should be the prefered 
compiler! Suggest not specifying --with-cc option so that configure can 
use /opt/intel/impi/4.1.0/bin/mpicc instead.
*******************************************************************************
   File "./config/configure.py", line 293, in petsc_configure
     framework.configure(out = sys.stdout)
   File 
"/home/mpovolot/Code_intel/libs/petsc/build-real/config/BuildSystem/config/framework.py", 
line 933, in configure
     child.configure()
   File 
"/home/mpovolot/Code_intel/libs/petsc/build-real/config/BuildSystem/config/setCompilers.py", 
line 1524, in configure
     self.executeTest(self.checkMPICompilerOverride)
   File 
"/home/mpovolot/Code_intel/libs/petsc/build-real/config/BuildSystem/config/base.py", 
line 115, in executeTest
     ret = apply(test, args,kargs)
   File 
"/home/mpovolot/Code_intel/libs/petsc/build-real/config/BuildSystem/config/setCompilers.py", 
line 1492, in checkMPICompilerOverride
     raise RuntimeError(msg)


Thank you,
Michael.


More information about the petsc-users mailing list