How to configure MKL with QT
I want to use Intel math library in my Qt software, but I do not know how to configure it. In visual studio MKL can be selected to use if MKL has been installed. However, I cannot find similar function in Qt. Please help me. Thanks, everyone.
@Fly-Fan "I cannot find similar function in Qt" - what do you mean? Qt is just a C++ framework.
Do you mean you cannot find it in QtCreator? If so then please read http://doc.qt.io/qtcreator/creator-project-qmake-libraries.html
Be aware that in case of C++ libraries both your app and the library must be built using the same compiler!
@jsulm In visual studio 2013, you can use MKL in projects - configuration - Intel Performance Library - Use Intel MKL with Parallel selection. But I cannot similar setting in Qt.
This should help you when linking to an external library in Qt Creator.
I am assuming that is all you want to do.
On the cluster where I run my code the MKL environment is set up in a special way, but regardless MKL is just a library, so you link to it the ordinary way - add the headers to your
INCLUDEPATHvariable in your project file and add the binaries and paths to the
Here's the reference documentation (in addition to the links @kenchan and @jsulm provided)
@Fly-Fan Again: Qt is a C++ framework. What you probably mean is QtCreator which is an IDE like Visual Studio. Please read the link posted here.