Solved 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,
-
@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-linuxHere, both flags are required to add on the the .pro file.
-
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 -
@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-linuxHere, both flags are required to add on the the .pro file.
-
Ok so it was actual linker options.
Thank you for updating the question.