Hi,
I am trying to build my CUDA/C++ projects using nmake, which is contained with Visual Studio 2008.
During execution a strange error occurs. Maybe it is totally simple, but I just don’t see the problem. Here is the makefile:
# Makefile for mixed CUDA projects
#
# Author: ***
# Date: 28.4.2010
# Contact: ***
# Platform: Windows 7 / Visual Studio 2008 / CUDA 3.0
#Toolkit path
CUDA_LIB_PATH = C:\CUDA\lib
CUDA_INC_PATH = C:\CUDA\include
CUDA_BIN_PATH = C:\CUDA\bin
#SDK path
SDK_LIB_PATH = C:\CUDA\SDK\C\common\lib
SDK_INC_PATH = C:\CUDA\SDK\C\common\inc
#Make debuggable executable for emulation
emudebug: *.cpp *.h *.cu *.cuh
IF NOT EXIST build\emudebug mkdir build\emudebug
"$(CUDA_BIN_PATH)\nvcc" \
-g \
-deviceemu \
-L "$(CUDA_LIB_PATH)" \
-I "$(CUDA_INC_PATH)" \
-L "$(SDK_LIB_PATH)" \
-I "$(SDK_INC_PATH)" \
-odir "$(MAKEDIR)\build\emudebug" \
$**
#Make debuggable executable
debug: *.cpp *.h *.cu *.cuh
IF NOT EXIST build\debug mkdir build\debug
$(CUDA_BIN_PATH)\nvcc \
-g \
-L "$(CUDA_LIB_PATH)" \
-I "$(CUDA_INC_PATH)" \
-L "$(SDK_LIB_PATH)" \
-I "$(SDK_INC_PATH)" \
-odir "$(MAKEDIR)\build\debug" \
$**
#Make build
release: *.cpp *.h *.cu *.cuh
IF NOT EXIST build\release mkdir build\release
$(CUDA_BIN_PATH)\nvcc \
-O \
-L "$(CUDA_LIB_PATH)" \
-I "$(CUDA_INC_PATH)" \
-L "$(SDK_LIB_PATH)" \
-I "$(SDK_INC_PATH)" \
-odir \build\release \
$**
#Make clean
clean:
rmdir /S /Q build
I’m getting the following error during the compiler call, regardless which make target I select:
C:\CUDA\bin\nvcc -O -LC:\CUDA\lib -IC:\CUDA\include -LC:\CUDA\SDK\C\
common\lib -IC:\CUDA\SDK\C\common\inc -odir \build\release CUDATest.cpp PPMFi
le.cpp PPMReader.cpp PPMFile.h PPMReader.h CUDAFunctions.cu CUDAFunctions.cuh
Internal error
NMAKE : fatal error U1077: "C:\CUDA\bin\nvcc.EXE": Rückgabe-Code "0xc0000005"
Stop.
Any ideas?
Thank you in advance,
Cosmo