MantisBT - CMake
View Issue Details
0015801CMakeModulespublic2015-10-19 09:542016-06-10 14:31
tomwar 
Kitware Robot 
normalcrashalways
closedmoved 
Visual StudioWindowsAny
CMake 3.3.2 
 
0015801: FindCUDA.cmake incorrectly includes cu file dependencies
FindCuda.cmake line 399 include(${dependency_file}). Includes file that is changed everytime during build process. Everytime when NVCC compiles some cu file it generates new depends file (*_generated_*.cu.obj.depend) for it that contains cu file dependencies (eg h files or other #included files). As I checked in other cmake projects dependencies files (generate.stamp.depend) contain only reference to other cmake fiels that it depends. I couldn't find reference to source code files in generate.stamp.depend which makes sense. As FindCuda adds such source code file dependency that is changed on compilation time, it coused that after every build ZERO_CHECK triggers reconfiguration of whole project which if you have enabled parallel build might coused crash of MSBuild application or crash of build process b/c one thread is configuring whole project and another is still compiling or linking different one. If in other generate.stamp.depend files that were generated by cmake I couldn't find any #included .h file dependency i would suggest to remove whole this functionality from FindCUDA.cmake.
No tags attached.
Issue History
2015-10-19 09:54tomwarNew Issue
2016-06-10 14:29Kitware RobotNote Added: 0042861
2016-06-10 14:29Kitware RobotStatusnew => resolved
2016-06-10 14:29Kitware RobotResolutionopen => moved
2016-06-10 14:29Kitware RobotAssigned To => Kitware Robot
2016-06-10 14:31Kitware RobotStatusresolved => closed

Notes
(0042861)
Kitware Robot   
2016-06-10 14:29   
Resolving issue as `moved`.

This issue tracker is no longer used. Further discussion of this issue may take place in the current CMake Issues page linked in the banner at the top of this page.