how to invoke IMKL functions from Eigen

拜拜、爱过 提交于 2019-12-11 21:22:42

问题


#include<iostream>    
#define EIGEN_USE_MKL_ALL    
#include"mkl.h"    
#include<Eigen/Dense>    

using Eigen::MatrixXd;    

int main() 
{    
    MatrixXd m1,m2,m3;    
    m1<<1,2,3,4;    
    m2<<5,6,7,8;    
    m3=m1*m2.Transpose();    
    std::cout<<m3;    
}

i used IMKL11.2 Eigen 3.2.0 ubuntu 14.04 LTS intel core duo processor 64bit os g++ compiler

http://eigen.tuxfamily.org/dox/TopicUsingIntelMKL.html the link says that we can use IMKL from Eigen by defining the macro. But the following error pope up

in file included from Eigen/Core from Eigen/Dense from test.cpp MKL_BLAS was not decleared in this scope


回答1:


This issue has been fixed in changeset 0cc8ceeb7dd1 which is part of the latest stable release, namely Eigen 3.2.6.



来源:https://stackoverflow.com/questions/33080650/how-to-invoke-imkl-functions-from-eigen

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!