In Visual Studio 2008, if I have a file kernel.cu that depends on header.h and I modify header.h, kernel.cu will not automatically recompile. Already, this has caused me a couple of bug hunts where I had assumed that the CUDA files would recompile like normal .c or .cpp files. When I look at the properties of kernel.cu, I do not see any way of adding dependencies. I wish I could enable automatic dependency analysis like is done for C and C++. Also, I have found that the dependency analysis works correctly for Visual Studio 2010, so the problem is isolated to Visual Studio 2008.
Related topics
Topic | Replies | Views | Activity | |
---|---|---|---|---|
VS2008 NVCC dependency analysis? | 1 | 1081 | March 5, 2009 | |
MS Visual C++ #include dependencies | 1 | 1453 | May 4, 2009 | |
Change in included header doesn't always cause recompilation of .cu into .ptx | 3 | 804 | June 10, 2014 | |
file dependency when compiling in vs2005 | 1 | 6296 | October 20, 2010 | |
Visual Studio isn't recognizing .cu as a dependency of a .hpp file! | 0 | 537 | November 14, 2016 | |
Visual Studio 15: rebuild modified .cu files | 0 | 568 | December 12, 2016 | |
VisualStudio Source Dependencies and Compile Time | 0 | 955 | May 30, 2011 | |
Visual studio 2019 CUDA source file header dependency issue | 1 | 952 | December 13, 2022 | |
.cu minimal rebuild can "minimal rebuild" feature be used for cuda files? | 3 | 19088 | March 28, 2011 | |
NVCC not detecting modified header files for recompile | 2 | 826 | August 9, 2022 |