回 帖 发 新 帖 刷新版面

主题:[讨论]如何在linux下调用mkl库函数

我有个程序,里面要用到调用矩阵求逆的子函数,

 call ZGETRF( N, N, TA, N, IPIV, INFO )
 call ZGETRI( N, TA, N, IPIV, WORK, N, INFO )

linux下,装的interfortran,

/opt/intel/mkl/lib/intel64

这是intel64所在的目录,如果我想调用这两个库函数,该在后面加哪个命令呢?我打开这个目录看了,里面有好多,不知道该用哪个啊,是不是如果知道用哪个的话这样就可以了啊?

gfortran 222bylag.f –L/opt/intel/mkl/lib/intel64  -llibmkl_avx.so.......

 

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

 

回复列表 (共2个回复)

沙发

MKL的库文件之间;;;

板凳

顺s/2872/parallel_studio_xe_2013

我来回复

您尚未登录,请登录后再回复。点此登录或注册