Visual Studio 2010
Windows 6.1 SDK (because at the moment CUDA toolkit doesn’t support directly Visual Studio 2010 and at compile time it’s required VC 9.0 compiler to compile cu file -.-")
Nsight 1.5 Standard (include CUDA toolkit 3.2)
NVIDIA Driver 260.99
Windows Server 2008 R2
This is very boring… I cannot build CUDA samples or my simple CUDA kernel, these are steps that I have followed:
- Create new C++ blank project;
- Add cpp file with main function;
- Add cu file (copied form samples or wrote from scratch);
- Change platform toolset from V100 to V90;
- Set Item Type of cu file to CUDA C/C++;
- Build and this is error: Error 1 error MSB3721: The command ““C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v3.2\bin\nvcc.exe” -gencode=arch=compute_10,code=“sm_10,compute_10” --use-local-env --cl-version 2008 -ccbin “C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\bin” -I"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v3.2\include” -G0 --keep-dir “Debug\” -maxrregcount=32 --machine 32 --compile -D_NEXUS_DEBUG -g -Xcompiler “/EHsc /nologo /Od /Zi /MDd " -o “Debug\Test.obj” “C:\Users\Paolo\documents\visual studio 2010\Projects\TestCUDA\TestCUDA\Test.cu”” exited with code -1. C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\BuildCustomizations\CUDA 3.2.targets 272 4 TestCUDA2
What is wrong??
- Why did not NVIDIA developers compile CUDA 3.2 with VC10.0 instead of VC9.0 -.-"??
- Nsight is great tool, but why did not Nsight developers (or NVIDIA developers) develop a simple template to add cu file with IntelliSense support in Visual Studio -.-" -.-"?? IntelliSense does not work well in Visual Studio with cu file (global is not recognized etc.)
Best practices in software installation: install everything with few clicks without to bore poor developer with useless configuration software steps. My first impression about CUDA development environment… it is negative. -.-"