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. omptarget with NVPTX on Qt Creator widgets Application
Qt 6.11 is out! See what's new in the release blog

omptarget with NVPTX on Qt Creator widgets Application

Scheduled Pinned Locked Moved Solved General and Desktop
4 Posts 2 Posters 873 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.
  • V Offline
    V Offline
    Venkatesan Soundirarajan
    wrote on last edited by
    #1

    Dear All,
    I need to run the Non-GUI/GUI based Qt application with the help of NVPTX for making faster performance.
    Here, I have mentioned execution comment with g++, which is i am using for normal c++ application in the terminal execution.

    -fopenmp -omptargets=nvptx64sm_30-nvidia-linux

    Please help me for solving this issue. Thanks in advance,

    1 Reply Last reply
    0
    • mrjjM mrjj

      Hi
      What is the question?

      How to pass those extra parameters to g++ ?

      Normally you can use
      QMAKE_CXXFLAGS
      http://doc.qt.io/qt-5/qmake-variable-reference.html

      V Offline
      V Offline
      Venkatesan Soundirarajan
      wrote on last edited by
      #3

      @mrjj Thanks for your valuable suggestion.
      Already I have tried with QMAKE_CXXFLAGS and I didn't see any different. So I thought it's not working and I have posted in Forum.
      Now I got the solution from one of our expert.

      QMAKE_CXXFLAGS += -fopenmp -omptargets=nvptx64sm_30-nvidia-linux -g -O3
      QMAKE_LFLAGS += -fopenmp -omptargets=nvptx64sm_30-nvidia-linux

      Here, both flags are required to add on the the .pro file.

      1 Reply Last reply
      1
      • mrjjM Offline
        mrjjM Offline
        mrjj
        Lifetime Qt Champion
        wrote on last edited by
        #2

        Hi
        What is the question?

        How to pass those extra parameters to g++ ?

        Normally you can use
        QMAKE_CXXFLAGS
        http://doc.qt.io/qt-5/qmake-variable-reference.html

        V 1 Reply Last reply
        2
        • mrjjM mrjj

          Hi
          What is the question?

          How to pass those extra parameters to g++ ?

          Normally you can use
          QMAKE_CXXFLAGS
          http://doc.qt.io/qt-5/qmake-variable-reference.html

          V Offline
          V Offline
          Venkatesan Soundirarajan
          wrote on last edited by
          #3

          @mrjj Thanks for your valuable suggestion.
          Already I have tried with QMAKE_CXXFLAGS and I didn't see any different. So I thought it's not working and I have posted in Forum.
          Now I got the solution from one of our expert.

          QMAKE_CXXFLAGS += -fopenmp -omptargets=nvptx64sm_30-nvidia-linux -g -O3
          QMAKE_LFLAGS += -fopenmp -omptargets=nvptx64sm_30-nvidia-linux

          Here, both flags are required to add on the the .pro file.

          1 Reply Last reply
          1
          • mrjjM Offline
            mrjjM Offline
            mrjj
            Lifetime Qt Champion
            wrote on last edited by
            #4

            Ok so it was actual linker options.
            Thank you for updating the question.

            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