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 | |
---|---|---|---|---|
NVCC not detecting modified header files for recompile | 2 | 776 | August 9, 2022 | |
Visual Studio isn't recognizing .cu as a dependency of a .hpp file! | 0 | 528 | November 14, 2016 | |
Visual studio 2019 CUDA source file header dependency issue | 1 | 919 | December 13, 2022 | |
Visual Studio 15: rebuild modified .cu files | 0 | 559 | December 12, 2016 | |
MS Visual C++ #include dependencies | 1 | 1442 | May 4, 2009 | |
file dependency when compiling in vs2005 | 1 | 6287 | October 20, 2010 | |
VS2008 NVCC dependency analysis? | 1 | 1066 | March 5, 2009 | |
NVCC not linking after code changes in cu header | 0 | 468 | April 14, 2022 | |
VisualStudio Source Dependencies and Compile Time | 0 | 949 | May 30, 2011 | |
Problem with header file dependency | 1 | 503 | December 22, 2022 |