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 ====================================================================== -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers
