This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Problem linking with MKL 11.1

Tags: None
(comma "," separated)
emher
Registered Member
Posts
1
Karma
0

Problem linking with MKL 11.1

Sun Apr 13, 2014 8:47 pm
To get a better performance for eigen value decomposition, I would like til link with MKL. I am on Windows using MKL 11.1 and Visual Studio 2012. Here is my code:
Code: Select all
#define EIGEN_USE_LAPACKE
#include <Eigen/Dense>
using Eigen::MatrixXd;

int main (int argc, char **argv)
{
    MatrixXd m(1,1);
   Eigen::EigenSolver<MatrixXd> es(1);
   es.compute(m, /* computeEigenvectors = */ true);
   return 0;
}

which runs just fine without the "#include EIGEN_USE_LAPACKE" statement. However with the statement i get the following error:
Error 1 error LNK2019: unresolved external symbol _LAPACKE_dgees referenced in function "public: class Eigen::RealSchur<class Eigen::Matrix<double,-1,-1,0,-1,-1> > & __thiscall Eigen::RealSchur<class Eigen::Matrix<double,-1,-1,0,-1,-1> >::compute(class Eigen::Matrix<double,-1,-1,0,-1,-1> const &,bool)" (?compute@?$RealSchur@V?$Matrix@N$0?0$0?0$0A@$0?0$0?0@Eigen@@@Eigen@@QAEAAV12@ABV?$Matrix@N$0?0$0?0$0A@$0?0$0?0@2@_N@Z) C:\Users\xXx\documents\visual studio 2012\Projects\Sample\SampleMathGL\SampleMathGL.obj SampleMathGL

Am I doing something wrong or is Eigen simply not compatible with MKL 11.1?

Thanks,
emher
User avatar
ggael
Moderator
Posts
3447
Karma
19
OS

Re: Problem linking with MKL 11.1

Mon Apr 14, 2014 11:59 am
Have you looked at this page http://software.intel.com/en-us/article ... e-advisor/ to find the right compilation flags?


Bookmarks



Who is online

Registered users: Baidu [Spider], Bing [Bot], Google [Bot], rblackwell