Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. How to configure MKL with QT
Forum Updated to NodeBB v4.3 + New Features

How to configure MKL with QT

Scheduled Pinned Locked Moved Unsolved General and Desktop
6 Posts 4 Posters 3.6k Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • F Offline
    F Offline
    Fly Fan
    wrote on last edited by Fly Fan
    #1

    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.

    jsulmJ kshegunovK 2 Replies Last reply
    0
    • F Fly Fan

      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.

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @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!

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      F 1 Reply Last reply
      2
      • jsulmJ jsulm

        @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!

        F Offline
        F Offline
        Fly Fan
        wrote on last edited by
        #3

        @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.

        jsulmJ 1 Reply Last reply
        0
        • K Offline
          K Offline
          kenchan
          wrote on last edited by kenchan
          #4

          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.

          1 Reply Last reply
          2
          • F Fly Fan

            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.

            kshegunovK Offline
            kshegunovK Offline
            kshegunov
            Moderators
            wrote on last edited by
            #5

            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 the LIBS 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

            Read and abide by the Qt Code of Conduct

            1 Reply Last reply
            2
            • F Fly Fan

              @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.

              jsulmJ Offline
              jsulmJ Offline
              jsulm
              Lifetime Qt Champion
              wrote on last edited by
              #6

              @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.

              https://forum.qt.io/topic/113070/qt-code-of-conduct

              1 Reply Last reply
              0

              • Login

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • Users
              • Groups
              • Search
              • Get Qt Extensions
              • Unsolved