[petsc-dev] building with MKL

Mark Adams mfadams at lbl.gov
Sat Jun 30 10:50:10 CDT 2018


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/7bd0de80/attachment.html>


More information about the petsc-dev mailing list