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! -
@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! -
This should help you when linking to an external library in Qt Creator.
http://doc.qt.io/qt-5/qmake-project-files.html#declaring-other-libraries
I am assuming that is all you want to do.
-
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.
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
INCLUDEPATH
variable in your project file and add the binaries and paths to theLIBS
variable.Here's the reference documentation (in addition to the links @kenchan and @jsulm provided)
http://doc.qt.io/qt-5/qmake-variable-reference.html -
@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.