[petsc-dev] building with MKL

Mark Adams mfadams at lbl.gov
Sat Jun 30 13:00:17 CDT 2018


Stuck again. I use:


'--with-blaslapack-dir=/opt/intel/compilers_and_libraries_2018.1.163/linux/mkl/lib/intel64',

'--with-mkl_pardiso-dir=/opt/intel/compilers_and_libraries_2018.1.163/linux/mkl/lib/intel64',

It does not find the MKL library because, apparently, it is not
libmkl_intel.a (log file attached).

If I add:

    '--with-blaslapack-lib=libmkl_intel_thread.a',

I get:

Specify either "--with-blaslapack-dir" or "--with-blaslapack-lib
--with-blaslapack-include". But not both!

Mark

On Sat, Jun 30, 2018 at 1:25 PM Mark Adams <mfadams at lbl.gov> wrote:

> Found a syntax error from Intel web page and --with-blaslapack-lib to
> specify the library. Press on.
>
> On Sat, Jun 30, 2018 at 11:50 AM Mark Adams <mfadams at lbl.gov> wrote:
>
>> I am configuring with MKL:
>>
>>
>>  '--with-blas-lapack-dir=/opt/intel/compilers_and_libraries_2018.1.163/linux/mkl/lib/intel64_lin',
>>
>> '--with-mkl_pardiso-dir=/opt/intel/compilers_and_libraries_2018.1.163/linux/mkl/lib/intel64_lin',
>>
>>
>> and get this error (appended). It is looking for libmkl_intel.a but this
>> is what there is:
>>
>> 08:46 cori07 maint *= ~/petsc_install/petsc/src/snes/examples/tutorials$
>> ll
>> /opt/intel/compilers_and_libraries_2018.1.163/linux/mkl/lib/intel64_lin/libmkl_inte*
>> -rw-r--r-- 1 root root 22133402 Oct  6  2017
>> /opt/intel/compilers_and_libraries_2018.1.163/linux/mkl/lib/intel64_lin/libmkl_intel_ilp64.a
>> -rwxr-xr-x 1 root root  9783841 Oct  6  2017
>> /opt/intel/compilers_and_libraries_2018.1.163/linux/mkl/lib/intel64_lin/libmkl_intel_ilp64.so
>> -rw-r--r-- 1 root root 23254666 Oct  6  2017
>> /opt/intel/compilers_and_libraries_2018.1.163/linux/mkl/lib/intel64_lin/libmkl_intel_lp64.a
>> -rwxr-xr-x 1 root root 10567885 Oct  6  2017
>> /opt/intel/compilers_and_libraries_2018.1.163/linux/mkl/lib/intel64_lin/libmkl_intel_lp64.so
>> -rw-r--r-- 1 root root 49087274 Oct  6  2017
>> /opt/intel/compilers_and_libraries_2018.1.163/linux/mkl/lib/intel64_lin/libmkl_intel_thread.a
>> -rwxr-xr-x 1 root root 37230319 Oct  6  2017
>> /opt/intel/compilers_and_libraries_2018.1.163/linux/mkl/lib/intel64_lin/libmkl_intel_thread.so
>>
>> I would guess I want to add and LDFLAGS="lmkl_intel_thread" maybe? I
>> want to use OpenMP.
>>
>> Thanks,
>> Mark
>>
>>
>>
>>                        Pushing language C
>>                             Popping language C
>> Executing: cc  -o /tmp/petsc-ZL05ng/config.libraries/conftest     -g -O0
>> -hcpu=mic-knl -qopenmp-simd -fopenmp
>> /tmp/petsc-ZL05ng/config.libraries/conftest.o
>> -Wl,-rpath,/opt/intel/compilers_and_libraries_2018.1.163/linux/mkl/lib/intel64_lin
>> -L/opt/intel/compilers_and_libraries_2018.1.163/linux/mkl/lib/intel64_lin
>> -lmkl_intel -lmkl_core -lmkl_gnu_thread -lgomp -ldl -lpthread -lstdc++ -ldl
>> Possible ERROR while running linker: exit code 256
>> stderr:
>> /usr/lib64/gcc/x86_64-suse-linux/4.8/../../../../x86_64-suse-linux/bin/ld:
>> cannot find -lmkl_intel
>>                     Popping language C
>>               Unknown name mangling in BLAS/LAPACK
>> **** Configure header /tmp/petsc-ZL05ng/confdefs.h ****
>> #if !defined(INCLUDED_UNKNOWN)
>>
>>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20180630/974da3fd/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: configure.log
Type: application/octet-stream
Size: 1751700 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20180630/974da3fd/attachment-0001.obj>


More information about the petsc-dev mailing list