[Submodule] Remove third-party CUB (#126540)

Because it was updated 4 years ago, and now all supported CUDA versions provide CUB.

Pull Request resolved: https://github.com/pytorch/pytorch/pull/126540
Approved by: https://github.com/Skylion007
This commit is contained in:
cyy 2024-05-18 02:28:17 +00:00 committed by PyTorch MergeBot
parent 1191168c45
commit 74b99438f2
3 changed files with 3 additions and 9 deletions

4
.gitmodules vendored
View file

@ -2,10 +2,6 @@
ignore = dirty
path = third_party/pybind11
url = https://github.com/pybind/pybind11.git
[submodule "third_party/cub"]
ignore = dirty
path = third_party/cub
url = https://github.com/NVlabs/cub.git
[submodule "third_party/eigen"]
ignore = dirty
path = third_party/eigen

View file

@ -1300,11 +1300,10 @@ endif()
# ---[ CUB
if(USE_CUDA)
find_package(CUB)
if(CUB_FOUND)
include_directories(SYSTEM ${CUB_INCLUDE_DIRS})
else()
include_directories(SYSTEM ${CMAKE_CURRENT_LIST_DIR}/../third_party/cub)
if(NOT CUB_FOUND)
message(FATAL_ERROR "Cannot find CUB.")
endif()
include_directories(SYSTEM ${CUB_INCLUDE_DIRS})
endif()
if(USE_DISTRIBUTED AND USE_TENSORPIPE)

1
third_party/cub vendored

@ -1 +0,0 @@
Subproject commit d106ddb991a56c3df1b6d51b2409e36ba8181ce4