Lines Matching refs:CUDA
13 This script locates the NVIDIA CUDA toolkit and the associated libraries, but
14 does not require the ``CUDA`` language be enabled for a given project. This
15 module does not search for the NVIDIA CUDA Samples.
23 The CUDA Toolkit search behavior uses the following order:
25 1. If the ``CUDA`` language has been enabled we will use the directory
44 the desired path in the event that multiple CUDA Toolkits are installed.
51 candidate is found, this is used. The default CUDA Toolkit install locations
57 | macOS | ``/Developer/NVIDIA/CUDA-X.Y`` |
61 | Windows | ``C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\vX.Y`` |
64 Where ``X.Y`` would be a specific version of the CUDA Toolkit, such as
66 ``C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v9.0``
70 When multiple CUDA Toolkits are installed in the default location of a
76 the presence of multiple CUDA Toolkits being installed. In this
93 If specified, configuration will error if a suitable CUDA Toolkit is not
97 If specified, the search for a suitable CUDA Toolkit will not produce any
101 If specified, the CUDA Toolkit is considered found only if the exact
107 An :ref:`imported target <Imported targets>` named ``CUDA::toolkit`` is provided.
112 - :ref:`CUDA Runtime Library<cuda_toolkit_rt_lib>`
113 - :ref:`CUDA Driver Library<cuda_toolkit_driver_lib>`
132 CUDA Runtime Library
135 The CUDA Runtime library (cudart) are what most applications will typically
140 - ``CUDA::cudart``
141 - ``CUDA::cudart_static``
145 CUDA Driver Library
148 The CUDA Driver library (cuda) are used by applications that use calls
153 - ``CUDA::cuda_driver``
164 - ``CUDA::cublas``
165 - ``CUDA::cublas_static``
166 - ``CUDA::cublasLt`` starting in CUDA 10.1
167 - ``CUDA::cublasLt_static`` starting in CUDA 10.1
178 - ``CUDA::cufft``
179 - ``CUDA::cufftw``
180 - ``CUDA::cufft_static``
181 - ``CUDA::cufft_static_nocallback`` starting in CUDA 9.2, requires CMake 3.23+
182 - ``CUDA::cufftw_static``
191 - ``CUDA::curand``
192 - ``CUDA::curand_static``
203 - ``CUDA::cusolver``
204 - ``CUDA::cusolver_static``
215 - ``CUDA::cusparse``
216 - ``CUDA::cusparse_static``
223 The `NVIDIA CUDA Profiling Tools Interface <https://developer.nvidia.com/CUPTI>`_.
227 - ``CUDA::cupti``
228 - ``CUDA::cupti_static``
241 - ``CUDA::nppc``
242 - ``CUDA::nppc_static``
246 - ``CUDA::nppial``
247 - ``CUDA::nppial_static``
251 - ``CUDA::nppicc``
252 - ``CUDA::nppicc_static``
255 Removed starting in CUDA 11.0, use :ref:`nvJPEG<cuda_toolkit_nvJPEG>` instead.
257 - ``CUDA::nppicom``
258 - ``CUDA::nppicom_static``
262 - ``CUDA::nppidei``
263 - ``CUDA::nppidei_static``
267 - ``CUDA::nppif``
268 - ``CUDA::nppif_static``
272 - ``CUDA::nppig``
273 - ``CUDA::nppig_static``
277 - ``CUDA::nppim``
278 - ``CUDA::nppim_static``
282 - ``CUDA::nppist``
283 - ``CUDA::nppist_static``
287 - ``CUDA::nppisu``
288 - ``CUDA::nppisu_static``
292 - ``CUDA::nppitc``
293 - ``CUDA::nppitc_static``
297 - ``CUDA::npps``
298 - ``CUDA::npps_static``
310 - ``CUDA::nvblas``
318 Removed starting in CUDA 11.0
322 - ``CUDA::nvgraph``
323 - ``CUDA::nvgraph_static``
332 Introduced in CUDA 10.
336 - ``CUDA::nvjpeg``
337 - ``CUDA::nvjpeg_static``
349 - ``CUDA::nvrtc``
361 - ``CUDA::nvml``
373 - ``CUDA::nvToolsExt``
385 - ``CUDA::OpenCL``
393 static only. The ``CUDA::cublas_static``, ``CUDA::cusparse_static``,
394 ``CUDA::cufft_static``, ``CUDA::curand_static``, and (when implemented) NPP
399 - ``CUDA::culibos``
411 A boolean specifying whether or not the CUDA Toolkit was found.
414 The exact version of the CUDA Toolkit found (as reported by
418 The major version of the CUDA Toolkit.
421 The minor version of the CUDA Toolkit.
424 The patch version of the CUDA Toolkit.
427 The path to the CUDA Toolkit library directory that contains the CUDA
431 The path to the CUDA Toolkit ``include`` folder containing the header files
432 required to compile a project linking against CUDA.
435 The path to the CUDA Toolkit library directory that contains the CUDA
441 The path to the CUDA Toolkit directory containing the nvvm directory and
445 The path to the CUDA Toolkit directory including the target architecture
450 The path to the NVIDIA CUDA compiler ``nvcc``. Note that this path may
453 found to determine the CUDA Toolkit version as well as determining other
496 # The toolkit is located during compiler detection for CUDA and stored in CMakeCUDACompiler.cmake as
533 # This allows us to support wrapper scripts (e.g. ccache or colornvcc), CUDA Toolkit,
613 # - macOS: /Developer/NVIDIA/CUDA-X.Y
614 # - Windows: C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\vX.Y
624 set(platform_base "/Developer/NVIDIA/CUDA-")
627 set(platform_base "C:\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v")
740 if(VERSION_INFO MATCHES [=[CUDA Version ([0-9]+)\.([0-9]+)\.([0-9]+)]=])
771 …# add known CUDA target root path to the set of directories we search for programs, libraries and …
815 # Find the CUDA Runtime Library libcudart
892 if(NOT TARGET CUDA::${lib_name} AND CUDA_${lib_name}_LIBRARY)
893 add_library(CUDA::${lib_name} UNKNOWN IMPORTED)
894 set_property(TARGET CUDA::${lib_name} APPEND PROPERTY
896 set_property(TARGET CUDA::${lib_name} APPEND PROPERTY
901 set_property(TARGET CUDA::${lib_name} APPEND PROPERTY
903 set_property(TARGET CUDA::${lib_name} APPEND PROPERTY
907 … set_property(TARGET CUDA::${lib_name} PROPERTY IMPORTED_LOCATION "${CUDA_${lib_name}_LIBRARY}")
909 if(TARGET CUDA::${dep})
910 set_property(TARGET CUDA::${lib_name} APPEND PROPERTY
911 INTERFACE_LINK_LIBRARIES CUDA::${dep})
915 set_property(TARGET CUDA::${lib_name} APPEND PROPERTY
917 set_property(TARGET CUDA::${lib_name} APPEND PROPERTY
923 if(NOT TARGET CUDA::toolkit)
924 add_library(CUDA::toolkit IMPORTED INTERFACE)
925 set_property(TARGET CUDA::toolkit APPEND PROPERTY
927 set_property(TARGET CUDA::toolkit APPEND PROPERTY
937 # on linux. These are generally only required when using the CUDA toolkit
938 # when CUDA language is disabled
939 if(NOT TARGET CUDA::cudart_static_deps
940 AND TARGET CUDA::cudart_static)
942 add_library(CUDA::cudart_static_deps IMPORTED INTERFACE)
943 set_property(TARGET CUDA::cudart_static APPEND PROPERTY
944 INTERFACE_LINK_LIBRARIES CUDA::cudart_static_deps)
948 set_property(TARGET CUDA::cudart_static_deps APPEND PROPERTY
957 message(WARNING "Could not find librt library, needed by CUDA::cudart_static")
959 set_property(TARGET CUDA::cudart_static_deps APPEND PROPERTY
1002 # cusolver depends on liblapack_static.a starting with CUDA 10.1 update 2,
1049 # nvtools can be installed outside the CUDA toolkit directory,