Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Will the use of OpenCL with Qt for mobile devices benefit the performance somehow?
Forum Update on Monday, May 27th 2025

Will the use of OpenCL with Qt for mobile devices benefit the performance somehow?

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
4 Posts 3 Posters 770 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.
  • K Offline
    K Offline
    Kofr
    wrote on last edited by
    #1

    Many modern mobile devices have a performant GPU.
    Is it possible to use OpenCL in order to involve GPU into computation?

    jsulmJ 1 Reply Last reply
    0
    • K Kofr

      Many modern mobile devices have a performant GPU.
      Is it possible to use OpenCL in order to involve GPU into computation?

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

      @Kofr You mean for your own code? Sure, why not (if the platform provides OpenCL)? But whether your app will benefit or not depends on what it is doing. Does it do any heavy calculations? If it is waiting for user input most of the time then there is no need for OpenCL.

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

      K 1 Reply Last reply
      0
      • jsulmJ jsulm

        @Kofr You mean for your own code? Sure, why not (if the platform provides OpenCL)? But whether your app will benefit or not depends on what it is doing. Does it do any heavy calculations? If it is waiting for user input most of the time then there is no need for OpenCL.

        K Offline
        K Offline
        Kofr
        wrote on last edited by
        #3

        @jsulm it is realtime video processing

        1 Reply Last reply
        0
        • M Offline
          M Offline
          Meteorhead
          wrote on last edited by
          #4

          As far as OpenCL is concerned, definitely. OpenGL can be very cumbersome in places for doing image processing. Using OpenCL, you may even resort to using libraries such as OpenCV, as long as you can compile it against your target platform.

          I have used Qt in conjunction with OpenCL before and it is very developer friendly. I mostly use it for scientific visualization using OpenCL-GL interop and Qt provides all the low-level hooks required to get things working in a cross-platform manner, although my target platforms are Windows and Linux, so I don't have mobile OS experience, but I have heard Qt excels in that domain as well.

          Infact, I had a thread regarding this issue here, and I did manage to find an elegant solution, but there is just one piece of the puzzle still missing which I want to attend before posting the final code. (That is multi-threaded compute/render whenever possible.)

          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