mirror of
https://github.com/reactos/CMake.git
synced 2025-04-02 23:31:45 +00:00
parent
c3d7f2e43b
commit
27b0d908d4
@ -105,6 +105,7 @@ of the following libraries that are part of the CUDAToolkit:
|
||||
- :ref:`cuRAND<cuda_toolkit_cuRAND>`
|
||||
- :ref:`cuSOLVER<cuda_toolkit_cuSOLVER>`
|
||||
- :ref:`cuSPARSE<cuda_toolkit_cuSPARSE>`
|
||||
- :ref:`cuPTI<cuda_toolkit_cupti>`
|
||||
- :ref:`NPP<cuda_toolkit_NPP>`
|
||||
- :ref:`nvBLAS<cuda_toolkit_nvBLAS>`
|
||||
- :ref:`nvGRAPH<cuda_toolkit_nvGRAPH>`
|
||||
@ -202,6 +203,18 @@ Targets Created:
|
||||
- ``CUDA::cusparse``
|
||||
- ``CUDA::cusparse_static``
|
||||
|
||||
.. _`cuda_toolkit_cupti`:
|
||||
|
||||
cupti
|
||||
"""""
|
||||
|
||||
The `NVIDIA CUDA Profiling Tools Interface <https://developer.nvidia.com/CUPTI>`_.
|
||||
|
||||
Targets Created:
|
||||
|
||||
- ``CUDA::cupti``
|
||||
- ``CUDA::cupti_static``
|
||||
|
||||
.. _`cuda_toolkit_NPP`:
|
||||
|
||||
NPP
|
||||
@ -732,15 +745,17 @@ endif()
|
||||
if(CUDAToolkit_FOUND)
|
||||
|
||||
function(_CUDAToolkit_find_and_add_import_lib lib_name)
|
||||
cmake_parse_arguments(arg "" "" "ALT;DEPS" ${ARGN})
|
||||
cmake_parse_arguments(arg "" "" "ALT;DEPS;EXTRA_PATH_SUFFIXES" ${ARGN})
|
||||
|
||||
set(search_names ${lib_name} ${arg_ALT})
|
||||
|
||||
message(STATUS "arg_EXTRA_PATH_SUFFIXES: ${arg_EXTRA_PATH_SUFFIXES}")
|
||||
find_library(CUDA_${lib_name}_LIBRARY
|
||||
NAMES ${search_names}
|
||||
HINTS ${CUDAToolkit_LIBRARY_DIR}
|
||||
ENV CUDA_PATH
|
||||
PATH_SUFFIXES nvidia/current lib64 lib64/stubs lib/x64 lib lib/stubs
|
||||
${arg_EXTRA_PATH_SUFFIXES}
|
||||
)
|
||||
|
||||
if (NOT TARGET CUDA::${lib_name} AND CUDA_${lib_name}_LIBRARY)
|
||||
@ -815,6 +830,13 @@ if(CUDAToolkit_FOUND)
|
||||
_CUDAToolkit_find_and_add_import_lib(${cuda_lib}_static DEPS nppc_static)
|
||||
endforeach()
|
||||
|
||||
_CUDAToolkit_find_and_add_import_lib(cupti
|
||||
EXTRA_PATH_SUFFIXES ../extras/CUPTI/lib64/
|
||||
../extras/CUPTI/lib/)
|
||||
_CUDAToolkit_find_and_add_import_lib(cupti_static
|
||||
EXTRA_PATH_SUFFIXES ../extras/CUPTI/lib64/
|
||||
../extras/CUPTI/lib/)
|
||||
|
||||
_CUDAToolkit_find_and_add_import_lib(nvrtc DEPS cuda_driver)
|
||||
|
||||
_CUDAToolkit_find_and_add_import_lib(nvml ALT nvidia-ml nvml)
|
||||
|
Loading…
x
Reference in New Issue
Block a user