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. Can I use GPU?
QtWS25 Last Chance

Can I use GPU?

Scheduled Pinned Locked Moved Unsolved General and Desktop
17 Posts 7 Posters 7.9k Views
  • 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.
  • M Mikee
    22 Nov 2017, 15:35

    But this is outdated information. Now standard OpenCL. In QT does not have the required functions?

    M Offline
    M Offline
    mrjj
    Lifetime Qt Champion
    wrote on 22 Nov 2017, 17:02 last edited by
    #6

    @Mikee said in Can I use GPU in QT?:

    OpenCL

    Nope, Qt does not contain that library.
    But you can use it like in any C++ program.

    And it has QThread to use CPU multithreaded.

    1 Reply Last reply
    2
    • R Offline
      R Offline
      raven-worx
      Moderators
      wrote on 22 Nov 2017, 21:56 last edited by raven-worx
      #7

      @VRonin
      why did you delete your post?
      Just out of curiosity what was wrong with the CUDA reference?

      i see

      --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
      If you have a question please use the forum so others can benefit from the solution in the future

      1 Reply Last reply
      0
      • M Offline
        M Offline
        Mikee
        wrote on 23 Nov 2017, 06:39 last edited by
        #8

        @mrjj said in Can I use GPU in QT?:

        QThread

        QThread can use GPU?

        J J 2 Replies Last reply 23 Nov 2017, 07:40
        0
        • M Mikee
          23 Nov 2017, 06:39

          @mrjj said in Can I use GPU in QT?:

          QThread

          QThread can use GPU?

          J Offline
          J Offline
          jsulm
          Lifetime Qt Champion
          wrote on 23 Nov 2017, 07:40 last edited by
          #9

          @Mikee no

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

          1 Reply Last reply
          0
          • M Mikee
            23 Nov 2017, 06:39

            @mrjj said in Can I use GPU in QT?:

            QThread

            QThread can use GPU?

            J Offline
            J Offline
            J.Hilk
            Moderators
            wrote on 23 Nov 2017, 07:45 last edited by J.Hilk
            #10

            @Mikee No, but you can use OpenCL & QThread, and combine those two. QThread to use all of your cpu, OpenCL to use all of your GPU.

            Just make sure your cooling is adequate.


            Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


            Q: What's that?
            A: It's blue light.
            Q: What does it do?
            A: It turns blue.

            1 Reply Last reply
            0
            • ? Offline
              ? Offline
              A Former User
              wrote on 23 Nov 2017, 08:09 last edited by
              #11

              No need to use QThread when you want to run the same function on the GPU and CPU: you can use OpenCL for both (if it's supported on your system, ofc).

              M 1 Reply Last reply 23 Nov 2017, 08:37
              2
              • ? A Former User
                23 Nov 2017, 08:09

                No need to use QThread when you want to run the same function on the GPU and CPU: you can use OpenCL for both (if it's supported on your system, ofc).

                M Offline
                M Offline
                Mikee
                wrote on 23 Nov 2017, 08:37 last edited by
                #12

                @Wieland How can I add a function from OpenCL in QT?

                ? 1 Reply Last reply 23 Nov 2017, 08:42
                0
                • M Mikee
                  23 Nov 2017, 08:37

                  @Wieland How can I add a function from OpenCL in QT?

                  ? Offline
                  ? Offline
                  A Former User
                  wrote on 23 Nov 2017, 08:42 last edited by A Former User
                  #13

                  @Mikee Has nothing to do with Qt. Qt is only yet another C++ framework (although a quite big one). Just google "opencl tutorial c++".

                  1 Reply Last reply
                  4
                  • M Offline
                    M Offline
                    Mikee
                    wrote on 24 Nov 2017, 10:34 last edited by
                    #14

                    Maybe you know where I can download OpenCL ?

                    J 1 Reply Last reply 24 Nov 2017, 11:16
                    0
                    • M Mikee
                      24 Nov 2017, 10:34

                      Maybe you know where I can download OpenCL ?

                      J Offline
                      J Offline
                      jsulm
                      Lifetime Qt Champion
                      wrote on 24 Nov 2017, 11:16 last edited by
                      #15

                      @Mikee I never used OpenCL but did what @Wieland suggested: entered "opencl tutorial c++" in Google and the first match is:
                      http://simpleopencl.blogspot.de/2013/06/tutorial-simple-start-with-opencl-and-c.html

                      On which platform are you?

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

                      1 Reply Last reply
                      1
                      • M Offline
                        M Offline
                        Mikee
                        wrote on 25 Nov 2017, 16:30 last edited by
                        #16

                        On Qt.
                        OpenCV will use CPU and GPU?

                        ? 1 Reply Last reply 25 Nov 2017, 19:50
                        0
                        • M Mikee
                          25 Nov 2017, 16:30

                          On Qt.
                          OpenCV will use CPU and GPU?

                          ? Offline
                          ? Offline
                          A Former User
                          wrote on 25 Nov 2017, 19:50 last edited by
                          #17

                          @Mikee said in Can I use GPU?:

                          On Qt.

                          Qt is just a set of C++ libraries; not a platform, not a programming language.

                          OpenCV will use CPU and GPU ?

                          Is that a typo or do you really mean OpenCV?

                          Anyway: the question is completely off-topic (not related to our framework). please use google search.

                          1 Reply Last reply
                          1

                          15/17

                          24 Nov 2017, 11:16

                          • Login

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