TAG: cuda

A little place for me to spew hot crazy on you.

Building CUDA in Qt Creator

Here is a working example of CUDA in a qmake project file (.pro) w/ support for error selection in Qt Creator. This code was cobbled together from several blogs and StackOverflow questions. I don't have the original references so I apologize if I've aped someone's hard work without the proper attribution. Project Script TEMPLATE = app CONFIG += console CONFIG -= app_bundle HEADERS += \ example.hpp SOURCES += \ example.cpp OTHER_FILES += \ cuda_kernel.cu DESTDIR = $$PWD OBJECTS_DIR…