Hi gys,
I am trying to integrate my kernel files (cu) in a existing c/c++ project. The method i am using is first compile the “.cu” files to “.cu.cpp” files and then linking them in the project.I made a visual studio 2010 project and selected “-cuda” in nvcc compilation type in the project properties. The building of solution was succesfull but i canr find the “.cu.cpp” files. The flags for nvcc compiler are as follows:
F:\CudaCCv2\CudaCCV\CudaCCV>"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v3.2\bin\nvcc.exe" -gencode=arch=compute_13,code=sm_13 --use-local-env --cl-version 2008 -ccbin "C:\Program Files\Microsoft Visual Studio 9.0\VC\bin" -I"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v3.2\include" --keep-dir "Debug" -maxrregcount=32 --ptxas-options=-v --machine 32 -cuda -D_NEXUS_DEBUG -g -Xcompiler "/EHsc /nologo /Od /Zi /MDd " -o "Debug\gpu_threshold.cu.obj" "F:\CudaCCv2\CudaCCV\CudaCCV\Threshold\gpu_threshold.cu"
Can anyone tell me what I am doing wrong thnx…