mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 12:54:11 +08:00
[CUDA 13] CMake/Dependencies: no need to call find_package(CUB) (#159854)
CUB library is the part of CCCL of the CUDA Toolkit 13. If CUDA Found, CUB is found as well. Pull Request resolved: https://github.com/pytorch/pytorch/pull/159854 Approved by: https://github.com/eqy
This commit is contained in:
committed by
PyTorch MergeBot
parent
2457e62c90
commit
e9d27aa8fd
@ -1143,7 +1143,7 @@ if(USE_UCC)
|
||||
endif()
|
||||
|
||||
# ---[ CUB
|
||||
if(USE_CUDA)
|
||||
if(USE_CUDA AND CUDA_VERSION VERSION_LESS 13.0)
|
||||
find_package(CUB)
|
||||
if(NOT CUB_FOUND)
|
||||
message(FATAL_ERROR "Cannot find CUB.")
|
||||
|
Reference in New Issue
Block a user