[cmake-developers] [CMake 0013084]: FindCUDA is adding libcuda.so, but this is part of driver and not CUDA Runtime.

Mantis Bug Tracker mantis at public.kitware.com
Sat Mar 31 07:25:00 EDT 2012


The following issue has been SUBMITTED. 
====================================================================== 
http://public.kitware.com/Bug/view.php?id=13084 
====================================================================== 
Reported By:                Vladislav
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   13084
Category:                   CMake
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2012-03-31 17:25 YEKST
Last Modified:              2012-03-31 17:25 YEKST
====================================================================== 
Summary:                    FindCUDA is adding libcuda.so, but this is part of
driver and not CUDA Runtime.
Description: 
FindCUDA shan't add libcuda.so library by default as it adds dependence on the
NVIDIA driver. It leads to impossibility of creation of one executable file
which can be launched regardless of NVIDIA GPU existence.

For example, it is watched in heterogeneous computing clusters when only a part
of nodes GPU are equipped.

See thread on NVIDIA forum: http://forums.nvidia.com/index.php?showtopic=190729

To fix this issue need remove next code from FindCUDA.cmake:

> # Add cuda library to the link line only if it is found.
> if (CUDA_CUDA_LIBRARY)
>   set(CUDA_LIBRARIES ${CUDA_LIBRARIES} ${CUDA_CUDA_LIBRARY})
> endif(CUDA_CUDA_LIBRARY)

====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2012-03-31 17:25 Vladislav      New Issue                                    
======================================================================




More information about the cmake-developers mailing list