I want to test Intel MKL
matrix multiplication, So I include and I just use the cblas_dgemm function, but it always says
undefined reference to `cblas_dgemm'
I also link the -lmkl_core -lmkl_blas95_lp64 -lmkl_lapack95_lp64
, But I have testes many combinations among the libraries in the $MKLROOT/lib/intel64/
directory, the error still exists. Could someone give me some advice, please? Thanks.
Intel® Math Kernel Library Link Line Advisor is exactly what you need. It can generate the proper compile/link options for you.
http://software.intel.com/en-us/articles/intel-mkl-link-line-advisor
Maybe this is a right answer, we can use
cblas_
:In the project file of a QT Creator:
The following is the
main.cpp
for testcblas_*
inMKL
:Then, in terminal, type the following code to load environment settings: