Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Dharma
Beginner
199 Views

[mkl 10.3]Missing libmkl_lapack.so

I have recently isntalled intel composerXE Fortran. opt/intel/mkl/lib/{intel64 | ia32} does not contain libmkl_lapac.so file. The following is the list of files from /opt/intel/mkl/lib/intel64 folder

libmkl_avx.so libmkl_core.a libmkl_intel_thread.a libmkl_sequential.so
libmkl_blacs_ilp64.a libmkl_core.so libmkl_intel_thread.so libmkl_solver_ilp64.a
libmkl_blacs_intelmpi_ilp64.a libmkl_def.so libmkl_lapack95_ilp64.a libmkl_solver_ilp64_sequential.a
libmkl_blacs_intelmpi_ilp64.so libmkl_gf_ilp64.a libmkl_lapack95_lp64.a libmkl_solver_lp64.a
libmkl_blacs_intelmpi_lp64.a libmkl_gf_ilp64.so libmkl_mc.so libmkl_solver_lp64_sequential.a
libmkl_blacs_intelmpi_lp64.so libmkl_gf_lp64.a libmkl_mc3.so libmkl_vml_avx.so
libmkl_blacs_lp64.a libmkl_gf_lp64.so libmkl_p4n.so libmkl_vml_def.so
libmkl_blacs_openmpi_ilp64.a libmkl_gnu_thread.a libmkl_pgi_thread.a libmkl_vml_mc.so
libmkl_blacs_openmpi_lp64.a libmkl_gnu_thread.so libmkl_pgi_thread.so libmkl_vml_mc2.so
libmkl_blacs_sgimpt_ilp64.a libmkl_intel_ilp64.a libmkl_rt.so libmkl_vml_mc3.so
libmkl_blacs_sgimpt_lp64.a libmkl_intel_ilp64.so libmkl_scalapack_ilp64.a libmkl_vml_p4n.so
libmkl_blas95_ilp64.a libmkl_intel_lp64.a libmkl_scalapack_ilp64.so locale
libmkl_blas95_lp64.a libmkl_intel_lp64.so libmkl_scalapack_lp64.a
libmkl_cdft_core.a libmkl_intel_sp2dp.a libmkl_scalapack_lp64.so
libmkl_cdft_core.so libmkl_intel_sp2dp.so libmkl_sequential.a

I am trying to configure petsc-3.1-p6, and i get a message

You set a value for --with-blas-lapack-dir=, but /opt/intel/mkl/lib/intel64 cannot be used

possible becuase it is looking for libmkl_lapack.so in that directory which it cannot find.

Can someone help me fix this?

Thanks
Reddy
0 Kudos
1 Reply
Dharma
Beginner
199 Views

I fixed the problem. Looks like the library files in mkl 10.3 is different from earlier versions of mkl. And the configure script of petsc was looking for a specific libmkl_lapack.a/so. I have made the folloing changes in the BlasLapack.py script in the folder "petsc-3.1-p6/config/BuildSystem/config/packages". I could get install the petsc-3.1-p6 using intelComposerXE and mkl 10.3 [for lapack and blas routines].

Lines 201 to 221

[python]      # Check Linux MKL variations
      # Commented all other lines and edited this line [Reddy]
yield ('User specified MKL Linux lib dir', None, [os.path.join(dir, 'libmkl_lapack95_lp64.a'), 'mkl_intel_lp64', 'mkl_intel_thread', 'mkl_core', 'iomp5', 'pthread'], 1) #for libdir in ['32','64','em64t']: # yield ('User specified MKL Linux installation root', None, [os.path.join(dir,'lib',libdir,'libmkl_lapack.a'),'mkl', 'guide', 'pthread'], 1) # Some new MLK 11 variations #yield ('User specified MKL11 Linux-x86 lib dir', None, [os.path.join(dir, 'libmkl_lapack.a'), 'mkl_intel', 'mkl_intel_thread', 'mkl_core', 'guide', 'pthread'], 1) #yield ('User specified MKL11 Linux-x86 installation root', None, [os.path.join(dir,'lib','em64t','libmkl_lapack.a'),'mkl_intel', 'mkl_intel_thread', 'mkl_core', 'guide', 'pthread'], 1) #yield ('User specified MKL11 Linux-em64t lib dir', None, [os.path.join(dir, 'libmkl_lapack.a'), 'mkl_intel_lp64', 'mkl_intel_thread', 'mkl_core', 'guide', 'pthread'], 1) #yield ('User specified MKL11 Linux-em64t installation root', None, [os.path.join(dir,'lib','em64t','libmkl_lapack.a'),'mkl_intel_lp64', 'mkl_intel_thread', 'mkl_core', 'guide', 'pthread'], 1) # inserted _Reddy #yield ('User specified MKL11 Linux-em64t installation root', None, [os.path.join(dir,'lib','intel64','libmkl_lapack95_lp64.a'),'mkl_intel_lp64', 'mkl_intel_thread', 'mkl_core', 'iomp5', 'pthread'], 1) # Older Linux MKL checks #yield ('User specified MKL Linux-x86 lib dir', None, [os.path.join(dir, 'libmkl_lapack.a'), 'libmkl_def.a', 'guide', 'pthread'], 1) #yield ('User specified MKL Linux-x86 lib dir', None, [os.path.join(dir, 'libmkl_lapack.a'), 'libmkl_def.a', 'guide', 'vml','pthread'], 1) #yield ('User specified MKL Linux-ia64 lib dir', None, [os.path.join(dir, 'libmkl_lapack.a'), 'libmkl_ipf.a', 'guide', 'pthread'], 1) #yield ('User specified MKL Linux-em64t lib dir', None, [os.path.join(dir, 'libmkl_lapack.a'), 'libmkl_em64t.a', 'guide', 'pthread'], 1) #yield ('User specified MKL Linux-x86 installation root', None, [os.path.join(dir,'lib','32','libmkl_lapack.a'),'libmkl_def.a', 'guide', 'pthread'], 1) #yield ('User specified MKL Linux-x86 installation root', None, [os.path.join(dir,'lib','32','libmkl_lapack.a'),'libmkl_def.a', 'guide', 'vml','pthread'], 1) #yield ('User specified MKL Linux-ia64 installation root', None, [os.path.join(dir,'lib','64','libmkl_lapack.a'),'libmkl_ipf.a', 'guide', 'pthread'], 1) #yield ('User specified MKL Linux-em64t installation root', None, [os.path.join(dir,'lib','em64t','libmkl_lapack.a'),'libmkl_em64t.a', 'guide', 'pthread'], 1) [/python]

Reply