[cmake-developers] [CMake 0015697]: CUDA separable compilation intermediate file doesn't get created

Mantis Bug Tracker mantis at public.kitware.com
Thu Aug 20 10:42:39 EDT 2015


The following issue is now in status NEW (again) 
====================================================================== 
https://public.kitware.com/Bug/view.php?id=15697 
====================================================================== 
Reported By:                Dominic Meiser
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   15697
Category:                   CMake
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2015-08-14 16:37 EDT
Last Modified:              2015-08-20 10:42 EDT
====================================================================== 
Summary:                    CUDA separable compilation intermediate file doesn't
get created
Description: 
When I compile with CUDA_SEPARABLE_COMPILATION=TRUE the custom command for the
generation of the intermediate_link.obj does not get triggered. When I change
line 1590 in FindCUDA.cmake (master version from earlier today) to
`set(do_obj_build_rule TRUE)` the custom command does run and compilation
succeeds. I don't see the bug here.

I'm seeing this behavior with cmake 3.2.2 and master revision 17ecfd8210.

Steps to Reproduce: 
configure a cuda library target with CUDA_SEPARABLE_COMPILATION=TRUE and build.

Additional Information: 
This is with cuda toolkit 7.0
====================================================================== 

---------------------------------------------------------------------- 
 (0039283) Dominic Meiser (reporter) - 2015-08-14 17:49
 https://public.kitware.com/Bug/view.php?id=15697#c39283 
---------------------------------------------------------------------- 
I must have made a mistake earlier. I cannot reproduce this with master anymore.
Sorry for the bother. 

---------------------------------------------------------------------- 
 (0039306) Dominic Meiser (reporter) - 2015-08-20 10:20
 https://public.kitware.com/Bug/view.php?id=15697#c39306 
---------------------------------------------------------------------- 
Turns out I wasn't able to reproduce the issue because I switched compilers to
VS2012 and VS2010. But when I went back to VS 2013 the problem is reproducible.

It appears that the workaround for the object build rules used for VS2010 and
VS2012 does not work for VS2013. Apparently the multilevel object dependency
problem has been fixed in VS2013. The attached patch solves the problem for me. 

---------------------------------------------------------------------- 
 (0039307) Dominic Meiser (reporter) - 2015-08-20 10:28
 https://public.kitware.com/Bug/view.php?id=15697#c39307 
---------------------------------------------------------------------- 
See note https://public.kitware.com/Bug/view.php?id=39306 for explanation of why
I wasn't able to reproduce this earlier. 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2015-08-14 16:37 Dominic Meiser New Issue                                    
2015-08-14 17:49 Dominic Meiser Note Added: 0039283                          
2015-08-17 09:38 Brad King      Status                   new => resolved     
2015-08-17 09:38 Brad King      Resolution               open => unable to
reproduce
2015-08-17 09:38 Brad King      Issue Monitored: Brad King                    
2015-08-20 10:20 Dominic Meiser Note Added: 0039306                          
2015-08-20 10:21 Dominic Meiser File Added:
0001-FindCUDA.cmake-Fix-object-build-rule-for-separate-co.patch                 
  
2015-08-20 10:23 Dominic Meiser Issue Monitored: Dominic Meiser                 
  
2015-08-20 10:28 Dominic Meiser Note Added: 0039307                          
2015-08-20 10:28 Dominic Meiser Status                   resolved => feedback
2015-08-20 10:28 Dominic Meiser Resolution               unable to reproduce =>
reopened
2015-08-20 10:42 Brad King      Status                   feedback => new     
2015-08-20 10:42 Brad King      Resolution               reopened => open    
======================================================================



More information about the cmake-developers mailing list