2013-06-01 103 views
0

我正嘗試使用來自Intel MKL的BLAS和LAPACK編譯SuiteSparse。但似乎make找不到那些庫。 SuiteSparse_config.mk文件的考慮的BLAS和LAPACK的makefile文件中使用的部分看起來像這樣:在Linux上使用Intel MKL編譯SuiteSparse(UMFPACK)

# 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 

但之後它說它找不到這樣的文件。我也嘗試給這些庫提供一個完整的路徑,但是它會編譯除demos之外的所有東西,其中有未解決的錯誤。如何設置這些庫以使SuiteSparse工作?

回答

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

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