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. Number of GPUs in a system with Qt

Number of GPUs in a system with Qt

Scheduled Pinned Locked Moved Solved General and Desktop
5 Posts 2 Posters 658 Views 1 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.
  • S Offline
    S Offline
    Sahar
    wrote on last edited by
    #1

    Hi,
    I am new in Qt and want to find out the number of GPUs in a system. I am designing a GUI for a simulator. The simulator can work on 1 or more available GPUs in a workstation. For example if a system has 4 NVIDIA GPUs, I need to get this info (4 GPUs). Then I can run my simulator with QProcess based on the number of GPUs.
    Thanks

    jsulmJ 1 Reply Last reply
    0
    • S Sahar

      Hi,
      I am new in Qt and want to find out the number of GPUs in a system. I am designing a GUI for a simulator. The simulator can work on 1 or more available GPUs in a workstation. For example if a system has 4 NVIDIA GPUs, I need to get this info (4 GPUs). Then I can run my simulator with QProcess based on the number of GPUs.
      Thanks

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

      @Sahar I don't think there is anything for that in Qt. You will need to use native APIs for that.

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

      S 1 Reply Last reply
      1
      • jsulmJ jsulm

        @Sahar I don't think there is anything for that in Qt. You will need to use native APIs for that.

        S Offline
        S Offline
        Sahar
        wrote on last edited by
        #3

        @jsulm said in Number of GPUs in a system with Qt:

        is

        Thanks for the reply. Would you explain more what you mean by native APIs? How can I do it by a native API while my GUI is designed in Qt?

        jsulmJ 1 Reply Last reply
        0
        • S Sahar

          @jsulm said in Number of GPUs in a system with Qt:

          is

          Thanks for the reply. Would you explain more what you mean by native APIs? How can I do it by a native API while my GUI is designed in Qt?

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

          @Sahar With native APIs I mean API provided by the operating system. Like win32 on Windows.
          You can use native APIs in your Qt app as any other as long as it has C or C++ interfaces.
          Win32, for example, is a C API and you can use it in your Qt app.

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

          S 1 Reply Last reply
          2
          • jsulmJ jsulm

            @Sahar With native APIs I mean API provided by the operating system. Like win32 on Windows.
            You can use native APIs in your Qt app as any other as long as it has C or C++ interfaces.
            Win32, for example, is a C API and you can use it in your Qt app.

            S Offline
            S Offline
            Sahar
            wrote on last edited by
            #5

            @jsulm thanks for your reply.

            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