I had a very depressing experience on trying to build a template CUDA project out of CUDA SDK directory (C:\Program Files\NVIDIA Corporation\NVIDIA CUDA SDK\projects, etc.);
OK, below is what I tried:
I copy the template project to D:\CUDA\source\MyTemplate. And modified the MyTemplate.vcproj so that all the file names fit the new location. And I notice that it uses relative path to access “C:\Program Files\NVIDIA Corporation\NVIDIA CUDA SDK\common\inc” and “C:\Program Files\NVIDIA Corporation\NVIDIA CUDA SDK\common\lib”, then I define a PATH called CUDA_SDK_INC_PATH and CUDA_SDK_LIB_PATH to replace relative pathes.
Then I got following error message:
“nvcc fatal : A single input file is required for a non-link phase when an outputfile is specified”
And following is my project file (). Please help!
<?xml version="1.0" encoding="Windows-1252"?>
MyTemplate.txt (11.1 KB)