mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 12:54:11 +08:00
Use FindCUDAToolkit to find cuda dependencies (#82695)
Pull Request resolved: https://github.com/pytorch/pytorch/pull/82695 Approved by: https://github.com/malfet
This commit is contained in:
committed by
PyTorch MergeBot
parent
5d1fec80e3
commit
7289d22d67
@ -84,22 +84,17 @@ function(caffe2_print_configuration_summary)
|
||||
message(STATUS " cuDNN version : ${CUDNN_VERSION}")
|
||||
endif()
|
||||
message(STATUS " CUDA root directory : ${CUDA_TOOLKIT_ROOT_DIR}")
|
||||
get_target_property(__tmp caffe2::cuda IMPORTED_LOCATION)
|
||||
message(STATUS " CUDA library : ${__tmp}")
|
||||
get_target_property(__tmp torch::cudart INTERFACE_LINK_LIBRARIES)
|
||||
message(STATUS " cudart library : ${__tmp}")
|
||||
get_target_property(__tmp caffe2::cublas INTERFACE_LINK_LIBRARIES)
|
||||
message(STATUS " cublas library : ${__tmp}")
|
||||
get_target_property(__tmp caffe2::cufft INTERFACE_LINK_LIBRARIES)
|
||||
message(STATUS " cufft library : ${__tmp}")
|
||||
get_target_property(__tmp caffe2::curand IMPORTED_LOCATION)
|
||||
message(STATUS " curand library : ${__tmp}")
|
||||
message(STATUS " CUDA library : ${CUDA_cuda_driver_LIBRARY}")
|
||||
message(STATUS " cudart library : ${CUDA_cudart_LIBRARY}")
|
||||
message(STATUS " cublas library : ${CUDA_cublas_LIBRARY}")
|
||||
message(STATUS " cufft library : ${CUDA_cufft_LIBRARY}")
|
||||
message(STATUS " curand library : ${CUDA_curand_LIBRARY}")
|
||||
message(STATUS " cusparse library : ${CUDA_cusparse_LIBRARY}")
|
||||
if(${USE_CUDNN})
|
||||
get_target_property(__tmp torch::cudnn INTERFACE_LINK_LIBRARIES)
|
||||
message(STATUS " cuDNN library : ${__tmp}")
|
||||
endif()
|
||||
get_target_property(__tmp caffe2::nvrtc IMPORTED_LOCATION)
|
||||
message(STATUS " nvrtc : ${__tmp}")
|
||||
message(STATUS " nvrtc : ${CUDA_nvrtc_LIBRARY}")
|
||||
message(STATUS " CUDA include path : ${CUDA_INCLUDE_DIRS}")
|
||||
message(STATUS " NVCC executable : ${CUDA_NVCC_EXECUTABLE}")
|
||||
message(STATUS " CUDA compiler : ${CMAKE_CUDA_COMPILER}")
|
||||
@ -192,6 +187,8 @@ function(caffe2_print_configuration_summary)
|
||||
endif()
|
||||
message(STATUS " Public Dependencies : ${Caffe2_PUBLIC_DEPENDENCY_LIBS}")
|
||||
message(STATUS " Private Dependencies : ${Caffe2_DEPENDENCY_LIBS}")
|
||||
message(STATUS " Public CUDA Deps. : ${Caffe2_PUBLIC_CUDA_DEPENDENCY_LIBS}")
|
||||
message(STATUS " Private CUDA Deps. : ${Caffe2_CUDA_DEPENDENCY_LIBS}")
|
||||
# coreml
|
||||
message(STATUS " USE_COREML_DELEGATE : ${USE_COREML_DELEGATE}")
|
||||
message(STATUS " BUILD_LAZY_TS_BACKEND : ${BUILD_LAZY_TS_BACKEND}")
|
||||
|
Reference in New Issue
Block a user