我正在尝试用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我尝试将英特尔的libmkl_blas_95ilp64.a和libmkl_blas95_lp64.a复制到稀疏套件文件夹和设置中
BLAS = -libmkl_blas_95ilp64
LAPACK = -libmkl_blas95_lp64但是它又说找不到这样的文件。我还尝试为这些库提供完整的路径,但随后它编译了除demo之外的所有内容,这些demo有未解决的错误。如何设置这些库以使SuiteSparse正常工作?
发布于 2013-06-03 14:20:31
BLAS = -L/opt/intel/mkl/lib/intel64 -lmkl_rt
LAPACK = -L/opt/intel/mkl/lib/intel64 -lmkl_rthttps://stackoverflow.com/questions/16872905
复制相似问题