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?
Forum Updated to NodeBB v4.3 + New Features

Can I use GPU?

Scheduled Pinned Locked Moved Unsolved General and Desktop
17 Posts 7 Posters 8.1k Views 3 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.
  • M Mikee

    Can I use GPU in QT?

    raven-worxR Offline
    raven-worxR Offline
    raven-worx
    Moderators
    wrote on last edited by
    #2

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

    Can I use GPU in QT?

    depends if you can be a little more specific than that

    --- 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
    2
    • M Offline
      M Offline
      Mikee
      wrote on last edited by
      #3

      I need to run the function at all CPU and GPU in mode multithreading.

      1 Reply Last reply
      0
      • VRoninV Offline
        VRoninV Offline
        VRonin
        wrote on last edited by
        #4
        This post is deleted!
        1 Reply Last reply
        0
        • M Offline
          M Offline
          Mikee
          wrote on last edited by
          #5

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

          mrjjM 1 Reply Last reply
          0
          • M Mikee

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

            mrjjM Offline
            mrjjM Offline
            mrjj
            Lifetime Qt Champion
            wrote on 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
            • raven-worxR Offline
              raven-worxR Offline
              raven-worx
              Moderators
              wrote on 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 last edited by
                #8

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

                QThread

                QThread can use GPU?

                jsulmJ J.HilkJ 2 Replies Last reply
                0
                • M Mikee

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

                  QThread

                  QThread can use GPU?

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

                  @Mikee no

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

                  1 Reply Last reply
                  0
                  • M Mikee

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

                    QThread

                    QThread can use GPU?

                    J.HilkJ Offline
                    J.HilkJ Offline
                    J.Hilk
                    Moderators
                    wrote on 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 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
                      2
                      • ? A Former User

                        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 last edited by
                        #12

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

                        ? 1 Reply Last reply
                        0
                        • M Mikee

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

                          ? Offline
                          ? Offline
                          A Former User
                          wrote on 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 last edited by
                            #14

                            Maybe you know where I can download OpenCL ?

                            jsulmJ 1 Reply Last reply
                            0
                            • M Mikee

                              Maybe you know where I can download OpenCL ?

                              jsulmJ Offline
                              jsulmJ Offline
                              jsulm
                              Lifetime Qt Champion
                              wrote on 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 last edited by
                                #16

                                On Qt.
                                OpenCV will use CPU and GPU?

                                ? 1 Reply Last reply
                                0
                                • M Mikee

                                  On Qt.
                                  OpenCV will use CPU and GPU?

                                  ? Offline
                                  ? Offline
                                  A Former User
                                  wrote on 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

                                  • Login

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