我正在尝试使用Intel MKL的BLAS和LAPACK编译SuiteSparse。但是,make似乎找不到那些库。考虑Makefile使用的BLAS和LAPACK的SuiteSparse_config.mk文件的部分如下所示:

# This is probably slow ... it might connect to the Standard Reference BLAS:
#BLAS = -lblas -lgfortran
#LAPACK = -llapack

# NOTE: this next option for the "Goto BLAS" has nothing to do with a "goto"
# statement.  Rather, the Goto BLAS is written by Dr. Kazushige Goto.
# Using the Goto BLAS:
# BLAS = -lgoto -lgfortran -lgfortranbegin
# BLAS = -lgoto2 -lgfortran -lgfortranbegin -lpthread

# Using non-optimized versions:
# BLAS = -lblas_plain -lgfortran -lgfortranbegin
# LAPACK = -llapack_plain

# BLAS = -lblas_plain -lgfortran -lgfortranbegin
# LAPACK = -llapack


我试图将Intel的libmkl_blas_95ilp64.a和libmkl_blas95_lp64.a复制到稀疏套件文件夹中并进行设置

BLAS = -libmkl_blas_95ilp64
LAPACK = -libmkl_blas95_lp64


但随后它说找不到该文件。我还尝试提供了通往这些库的完整路径,但是随后它编译了除演示程序之外的所有程序,这些程序有未解决的错误。如何设置这些库以使SuiteSparse工作?

最佳答案

BLAS = -L/opt/intel/mkl/lib/intel64 -lmkl_rt

LAPACK = -L/opt/intel/mkl/lib/intel64 -lmkl_rt

关于linux - 在Linux上使用Intel MKL编译SuiteSparse(UMFPACK),我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/16872905/

10-11 18:43