[petsc-users] [Ext] Re: configure error

Kun Jiao KJiao at slb.com
Mon Jun 15 12:31:47 CDT 2020


Actually, that is a question I should ask. When I use --with-64-bit-indices option to config petsc, do I need to use 64 integer option in mkl which means -lmkl_intel_ilp64, or I can use 32integer option for mkl which is -lmkl_intel_lp64?



Schlumberger-Private
From: Barry Smith <bsmith at petsc.dev>
Sent: Monday, June 15, 2020 12:29 PM
To: Kun Jiao <KJiao at slb.com>
Cc: petsc-users at mcs.anl.gov
Subject: [Ext] Re: [petsc-users] configure error


   It is reporting

    ld: cannot find -lmkl_intel_ilp64

    Please send the output from

ls /mnt/disks/intel-2018-3-222-blade-runtime-env-2018-1-07-08-2018-132838/2019.3/intel/compilers_and_libraries_2019.3.199/linux/mkl
ls /mnt/disks/intel-2018-3-222-blade-runtime-env-2018-1-07-08-2018-132838/2019.3/intel/compilers_and_libraries_2019.3.199/linux/mkl/lib
ls /mnt/disks/intel-2018-3-222-blade-runtime-env-2018-1-07-08-2018-132838/2019.3/intel/compilers_and_libraries_2019.3.199/linux/mkl/lib/intel64

Also you are mixing using the Intel MPI and OpenMPI, I am not sure this will work.

/opt/openmpi_4.0.3_intel2019.3/lib
-lmkl_blacs_intelmpi_lp64




On Jun 15, 2020, at 12:11 PM, Kun Jiao via petsc-users <petsc-users at mcs.anl.gov<mailto:petsc-users at mcs.anl.gov>> wrote:

Hi,

Lately I run into a configure error with intel compiler+openmpi+lapack,

Error message as:
===============================================================================                                                                                             TESTING: checkLib from config.packages.BlasLapack(config/BuildSystem/config/packages/BlasLapack.py:114)                                                                     *******************************************************************************
         UNABLE to CONFIGURE with GIVEN OPTIONS    (see configure.log for details):
-------------------------------------------------------------------------------
You set a value for --with-blaslapack-lib=<lib>, but ['-L/mnt/disks/intel-2018-3-222-blade-runtime-env-2018-1-07-08-2018-132838/2019.3/intel/compilers_and_libraries_2019.3.199/linux/mkl/lib/intel64', '-Wl,', '--no-as-needed', '-lmkl_intel_ilp64', '-lmkl_intel_thread', '-lmkl_core', '-liomp5', '-lpthread', '-lm', '-ldl'] cannot be used
*******************************************************************************


Here is my configure parameters:

./configure --configModules=PETSc.Configure --optionsModule=config.compilerOptions --configModules=PETSc.Configure --optionsModule=config.compilerOptions PETSC_ARCH=linux-gnu-intel --with-precision=single --with-cc=icc --with-cxx=icc --with-fc=ifort --with-mpi-include=/opt/openmpi_4.0.3_intel2019.3/include --with-mpi-lib="-L/opt/openmpi_4.0.3_intel2019.3/lib -lmpi_usempif08 -lmpi_usempi_ignore_tkr -lmpi_mpifh -lmpi" --with-blaslapack-include="/mnt/disks/intel-2018-3-222-blade-runtime-env-2018-1-07-08-2018-132838/2019.3/intel/compilers_and_libraries_2019.3.199/linux/mkl/include" --with-blaslapack-lib="-L/mnt/disks/intel-2018-3-222-blade-runtime-env-2018-1-07-08-2018-132838/2019.3/intel/compilers_and_libraries_2019.3.199/linux/mkl/lib/intel64 -Wl, --no-as-needed -lmkl_intel_ilp64 -lmkl_intel_thread -lmkl_core -liomp5 -lpthread -lm -ldl" --with-scalapack-lib="-L/mnt/disks/intel-2018-3-222-blade-runtime-env-2018-1-07-08-2018-132838/2019.3/intel/compilers_and_libraries_2019.3.199/linux/mkl/lib/intel64 -lmkl_scalapack_lp64 -lmkl_blacs_intelmpi_lp64" --with-scalapack-include=/mnt/disks/intel-2018-3-222-blade-runtime-env-2018-1-07-08-2018-132838/2019.3/intel/compilers_and_libraries_2019.3.199/linux/mkl/include --with-cmake=1 --prefix=/opt/petsc_3.10.4_intel2019.3 --known-endian=big --with-debugging=0 --COPTFLAGS=" -Ofast -xHost" --CXXOPTFLAGS=" -Ofast -xHost" --FOPTLAGS=" -Ofast -xHost" --with-x=0 --with-64-bit-indices

And configure.log attached.

Any suggestion will be great?

Regards,
Kun


Schlumberger-Private
<configure.log>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20200615/4c0df218/attachment-0001.html>


More information about the petsc-users mailing list