[Submodule] Remove foxi (#132976)

It is not used after removal of Caffe2 code.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/132976
Approved by: https://github.com/ezyang
This commit is contained in:
cyy
2024-08-09 03:46:52 +00:00
committed by PyTorch MergeBot
parent bb6eef8ed1
commit 05e8e87a69
8 changed files with 1 additions and 33 deletions

4
.gitmodules vendored
View File

@ -74,10 +74,6 @@
ignore = dirty
path = third_party/fbgemm
url = https://github.com/pytorch/fbgemm
[submodule "third_party/foxi"]
ignore = dirty
path = third_party/foxi
url = https://github.com/houseroad/foxi.git
[submodule "android/libs/fbjni"]
ignore = dirty
path = android/libs/fbjni

View File

@ -557,7 +557,6 @@ cc_library(
"@eigen",
"@fbgemm//:fbgemm_src_headers",
"@fmt",
"@foxi",
"@onnx",
] + if_cuda(
[

View File

@ -90,12 +90,6 @@ new_local_repository(
path = "third_party/onnx",
)
new_local_repository(
name = "foxi",
build_file = "//third_party:foxi.BUILD",
path = "third_party/foxi",
)
local_repository(
name = "com_google_protobuf",
path = "third_party/protobuf",

View File

@ -1291,7 +1291,6 @@ if(CAFFE2_CMAKE_BUILDING_WITH_MAIN_REPO AND NOT INTERN_DISABLE_ONNX)
set_target_properties(onnx_proto PROPERTIES CXX_STANDARD 17)
endif()
endif()
add_subdirectory(${CMAKE_CURRENT_LIST_DIR}/../third_party/foxi EXCLUDE_FROM_ALL)
add_definitions(-DONNX_NAMESPACE=${ONNX_NAMESPACE})
if(NOT USE_SYSTEM_ONNX)
@ -1320,8 +1319,6 @@ if(CAFFE2_CMAKE_BUILDING_WITH_MAIN_REPO AND NOT INTERN_DISABLE_ONNX)
message("-- Found onnx: ${ONNX_LIBRARY} ${ONNX_PROTO_LIBRARY}")
list(APPEND Caffe2_DEPENDENCY_LIBS onnx_proto onnx)
endif()
include_directories(${FOXI_INCLUDE_DIRS})
list(APPEND Caffe2_DEPENDENCY_LIBS foxi_loader)
# Recover the build shared libs option.
set(BUILD_SHARED_LIBS ${TEMP_BUILD_SHARED_LIBS})
endif()

View File

@ -96,7 +96,7 @@ else()
append_torchlib_if_found(caffe2_protos protobuf-lite protobuf protoc)
append_torchlib_if_found(onnx onnx_proto)
append_torchlib_if_found(foxi_loader fmt)
append_torchlib_if_found(fmt)
append_torchlib_if_found(cpuinfo clog)
if(NOT @USE_INTERNAL_PTHREADPOOL_IMPL@)

View File

@ -365,7 +365,6 @@ def get_submodule_folders():
"gloo",
"cpuinfo",
"onnx",
"foxi",
"QNNPACK",
"fbgemm",
"cutlass",

1
third_party/foxi vendored

Submodule third_party/foxi deleted from c278588e34

View File

@ -1,16 +0,0 @@
load("@rules_cc//cc:defs.bzl", "cc_library")
cc_library(
name = "foxi",
srcs = [
"foxi/onnxifi_loader.c",
],
hdrs = glob([
"foxi/*.h",
]),
includes = [
".",
],
linkstatic = 1,
visibility = ["//visibility:public"],
)