[cmake-developers] [CMake 0011887]: Add native CUDA compiler support

Mantis Bug Tracker mantis at public.kitware.com
Tue Feb 22 11:32:53 EST 2011


The following issue has been SUBMITTED. 
====================================================================== 
http://public.kitware.com/Bug/view.php?id=11887 
====================================================================== 
Reported By:                Peter Colberg
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   11887
Category:                   CMake
Reproducibility:            N/A
Severity:                   feature
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2011-02-22 11:32 EST
Last Modified:              2011-02-22 11:32 EST
====================================================================== 
Summary:                    Add native CUDA compiler support
Description: 
Hi,

CMake includes a FindCUDA module since version 2.8, which adds support for
compilation of CUDA source files by means of custom commands such as
CUDA_ADD_EXECUTABLE and CUDA_ADD_LIBRARY.

It would be nice to support the CUDA language (although not standardized
compared to C or C++) as a first class citizen in CMake. For this purpose, I
have been maintaining since a while a patch to CMake which adds native CUDA
support. This allows users to compile CUDA source files by simply adding
enable_language(CUDA) to CMakeLists.txt. CUDA source files may be included in
standard CMake targets, e.g. add_executable and add_library. Besides .o targets,
CMake generates .s targets that  compile a source to CUDA PTX (intermediate
virtual machine code). The patch also includes a _minimal_ FindCUDA.cmake, which
searches for the CUDA driver (cuda) and CUDA runtime (cudart) libraries.

Do you see a chance to merge the two efforts in upstream CMake?

(The patch's repository is at http://git.colberg.org/cmake-cuda.git/.)

Cheers,
Peter
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2011-02-22 11:32 Peter Colberg  New Issue                                    
2011-02-22 11:32 Peter Colberg  File Added: cmake-cuda-2.8.3.patch              
     
======================================================================




More information about the cmake-developers mailing list