I’ve made a simple VS2005 Project Wizard for CUDA. After you install the CUDA VS2005 Wizard, you can see the CUDAWin32App in your Visual Studio installed templates Category. Then it’s easy to create a new CUDA project in VS2005.
This is first version only made in two days. So if there is any problem please let me know.
PS: Thanks JaredHoberock’s “Simple CUDA build rule for Visual Studio 2005”.
The new version:
Modify two bug:
1, Change the CUDA_LIB_PATH into CUDA_INC_PAHT;
2, Add debug info into EmuDebug;
I can compile and link in EmuDebug mode but when I try to debug it, VS says “Debugging information cannot be found or does not match. Binary was not built with debug information”. I fixed this by manually editing Properties->Linker->Debugging and setting Generate Debug Info to on, as per Debug configuration.
EmuRelease works fine.
Ordinary Debug does what I described earlier.
Release mode gives me:
LINK : fatal error LNK1181: cannot open input file '.\release\wizardtest.obj'
Build log was saved at "file://d:\NVIDIA CUDA SDK\projects\wizardTest\wizardTest\Release\BuildLog.htm"
wizardtest - 1 error(s), 0 warning(s)
(build log in attachment)
I compared build logs from the failed Release and Debug modes with the successfully linked Emu modes and found one difference:
One of the command lines looks like this in Release build log:
And here’s the successfully linked EmuRelease
/OUT:"D:\NVIDIA CUDA SDK\projects\wizardtest\EmuRelease\wizardtest.exe"
I noticed EmuRelease version has a complete path and Release doesn’t. Can this be the case? If so, how to fix it?
Edit: I changed it so that all configurations use complete paths and it didn’t help.
thanks for your great wizard.
I tried to add additional header files to the helloCuda project (my name of the project is CUDAOraTest). I set an additional full include path to the folder containing the additional header file, but I only get the project running, if I place the header file in the same directory as the .cu file.
If the headerfile is in the directory “C:\Paddy\Programmierung\CUDAOracle\CUDAOraTest\CUDAOraTest” everything is working fine. If i move the headerfile to “C:\Paddy\Programmierung\CUDAOracle\CUDAOraTest\CUDAOraTest\inc” the compiler doesn’t find the header file.
I tried to include the headerfile with <headerfile.h> and “headerfile.h”, both not working.
What am I doing wrong?
Can you help me? I’d like to get more structure to my project with “inc” and “src” folder.
When I use #include “./inc/headerfile.h” it’s working. But now the compiler doesn’t find cuda_runtime.h, although I changed (CUDA_LIB_PATH) to (CUDA_INC_PATH) in VS->projects->properties->CUDA->General->Additional include Directories.