QT + CUDA installation of qmake.pro file

I am trying to create a simple Qt + Cuda framework with an example of Helloworld.cu. This is the easiest Qt. I am trying to create a project file using a .pro file. My setup is Windows 7, Qt 4.7.4 and Cuda toolkit + SDK (latest version). Everything for Qt works. What doesn't work is part of the Cuda code and probably due to the fact that there is something missing in the .pro file ... is there a simple paste / copy that I could use for cuda in mine. pro file? thank

+2
source share
1 answer

Take a look at http://cudaspace.wordpress.com/2011/04/07/qt-creator-cuda-linux/

You have to customize

# Path to cuda SDK install
CUDA_SDK = /pathto/NVIDIA_GPU_Computing_SDK/C (note i'm using a linux machine)
# Path to cuda toolkit install
CUDA_DIR = /usr/local/cuda

# libs - note than i'm using a x_86_64 machine
LIBS += -lcudart -lcutil_x86_64

with your CUDA SDK directory, CUDA Toolkit under windows and the name LIBS.

, m32 m64 32 64 .

.

+2

All Articles