omptarget with NVPTX on Qt Creator widgets Application

  • 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,

  • Qt Champions 2017

    What is the question?

    How to pass those extra parameters to g++ ?

    Normally you can use

  • @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.

  • Qt Champions 2017

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

Log in to reply

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.