Hey Folks, i want to use cuda 5.5 in qt creator with qt version 5.1.
I’ve allready read everything i found with google and tried all the code i found but i can’t get it to work.
I’m trying to code a little console program, and this is my qt .pro file at the moment:
QT += core
QT -= gui
TARGET = Simple_CPU_GPU_CUDA
CONFIG += console
CONFIG -= app_bundle
TEMPLATE = app
SOURCES += main.cpp
CUDA_SOURCES = kernel.cu
CUDA_LIB_DIR = C:/CUDA/lib/x64/
CUDA_INC_DIR = C:/CUDA/include
CUDA_BIN_DIR = C:/CUDA/bin/
INCLUDEPATH += $$CUDA_INC_DIR
QMAKE_LIBDIR += $$CUDA_LIB_DIR
LIBS += -lcudart
cuda.output = $$OBJECTS_DIR/${QMAKE_FILE_BASE}_cuda.obj
cuda.commands = $${CUDA_BIN_DIR}/nvcc.exe \
-c \
-Xcompiler $$join(QMAKE_CXXFLAGS,",") $$join(INCLUDEPATH,'" -I "','-I "','"') ${QMAKE_FILE_NAME} \
-o ${QMAKE_FILE_OUT}
cuda.input = CUDA_SOURCES
QMAKE_EXTRA_UNIX_COMPILERS += cuda
And all i get is the following error message
Error:C1083: Cannot open compiler generated file: 'C:/kernel_cuda.obj': Permission denied
I also tried to read about qmake and nvcc to get it done by myself, but i don’t understand the most of it :/.
Is there anybody who could help me to set this up??