[cmake-developers] [CMake 0014238]: FindCUDA.cmake not able to link separate device code because arch=-sm20 is not set. FIXIT!

Mantis Bug Tracker mantis at public.kitware.com
Thu Jun 20 12:41:56 EDT 2013


The following issue has been SUBMITTED. 
====================================================================== 
http://www.cmake.org/Bug/view.php?id=14238 
====================================================================== 
Reported By:                Daniel Frenzel
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   14238
Category:                   Modules
Reproducibility:            always
Severity:                   major
Priority:                   urgent
Status:                     new
====================================================================== 
Date Submitted:             2013-06-20 12:41 EDT
Last Modified:              2013-06-20 12:41 EDT
====================================================================== 
Summary:                    FindCUDA.cmake not able to link separate device code
because arch=-sm20 is not set. FIXIT!
Description: 
Build fails when SET(CUDA_SEPARABLE_COMPILATION ON) is set.
There is a "-arch=-sm20" missing in the correct cmake function where linking
happens. It is because set parameters get discarded (why?) and arch=-sm20 is not
default. NVCC throws an error then. 


Steps to Reproduce: 
Build with "SET(CUDA_SEPARABLE_COMPILATION ON)"

Additional Information: 
I wrote a small fix. The new FindCUDA.cmake is in the appendix. Use patch for
the line. 
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2013-06-20 12:41 Daniel Frenzel New Issue                                    
2013-06-20 12:41 Daniel Frenzel File Added: FindCUDA.cmake                    
======================================================================




More information about the cmake-developers mailing list