Skip to content

Commit 2c5a3d7

Browse files
ezyangpytorchmergebot
authored andcommitted
Delete functorch C extension entirely. (pytorch#163340)
Signed-off-by: Edward Yang <[email protected]> Pull Request resolved: pytorch#163340 Approved by: https://github.com/aorenste, https://github.com/wdvr, https://github.com/albanD, https://github.com/malfet
1 parent f68de58 commit 2c5a3d7

File tree

12 files changed

+0
-4884
lines changed

12 files changed

+0
-4884
lines changed

BUILD.bazel

Lines changed: 0 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -832,36 +832,6 @@ pybind_extension(
832832
],
833833
)
834834

835-
cc_library(
836-
name = "functorch",
837-
hdrs = glob([
838-
"functorch/csrc/dim/*.h",
839-
]),
840-
srcs = glob([
841-
"functorch/csrc/dim/*.cpp",
842-
]),
843-
deps = [
844-
":aten_nvrtc",
845-
":torch_python",
846-
"@pybind11",
847-
],
848-
)
849-
850-
pybind_extension(
851-
name = "functorch/_C",
852-
copts=[
853-
"-DTORCH_EXTENSION_NAME=_C"
854-
],
855-
srcs = [
856-
"functorch/csrc/init_dim_only.cpp",
857-
],
858-
deps = [
859-
":functorch",
860-
":torch_python",
861-
":aten_nvrtc",
862-
],
863-
)
864-
865835
cc_binary(
866836
name = "torch/bin/torch_shm_manager",
867837
srcs = [
@@ -902,7 +872,6 @@ py_library(
902872
],
903873
data = [
904874
":torch/_C.so",
905-
":functorch/_C.so",
906875
":torch/bin/torch_shm_manager",
907876
],
908877
)

CMakeLists.txt

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1390,10 +1390,6 @@ endif()
13901390
include(cmake/Summary.cmake)
13911391
caffe2_print_configuration_summary()
13921392

1393-
if(BUILD_FUNCTORCH)
1394-
add_subdirectory(functorch)
1395-
endif()
1396-
13971393
# Parse custom debug info
13981394
if(DEFINED USE_CUSTOM_DEBINFO)
13991395
string(REPLACE ";" " " SOURCE_FILES "${USE_CUSTOM_DEBINFO}")

functorch/.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ dist/
33
functorch.egg-info/
44
*__pycache__*
55
functorch/version.py
6-
functorch/_C.so
76
.gdbinit
87
t.py
98
.vscode/

functorch/CMakeLists.txt

Lines changed: 0 additions & 45 deletions
This file was deleted.

0 commit comments

Comments
 (0)