mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 21:14:14 +08:00
Use official CUDAToolkit module in CMake (#154595)
Use CUDA language in CMake and remove forked FindCUDAToolkit.cmake. Some CUDA targets are also renamed with `torch::` prefix. Pull Request resolved: https://github.com/pytorch/pytorch/pull/154595 Approved by: https://github.com/albanD
This commit is contained in:
@ -50,7 +50,7 @@ if(USE_CUDA)
|
||||
if(NOT CAFFE2_USE_NVRTC)
|
||||
caffe2_update_option(USE_NVRTC OFF)
|
||||
endif()
|
||||
list(APPEND Caffe2_CUDA_DEPENDENCY_LIBS caffe2::curand caffe2::cufft caffe2::cublas)
|
||||
list(APPEND Caffe2_CUDA_DEPENDENCY_LIBS torch::curand torch::cufft torch::cublas)
|
||||
if(CAFFE2_USE_CUDNN)
|
||||
list(APPEND Caffe2_CUDA_DEPENDENCY_LIBS torch::cudnn)
|
||||
else()
|
||||
|
Reference in New Issue
Block a user