omptarget with NVPTX on Qt Creator widgets Application
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.
Please help me for solving this issue. Thanks in advance,
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.
Ok so it was actual linker options.
Thank you for updating the question.