Skip to content

Commit

Permalink
Remove caffe2 db
Browse files Browse the repository at this point in the history
  • Loading branch information
cyyever committed Apr 27, 2024
1 parent 368f521 commit 575d70e
Show file tree
Hide file tree
Showing 27 changed files with 5 additions and 1,462 deletions.
10 changes: 2 additions & 8 deletions .ci/docker/common/install_db.sh
Expand Up @@ -5,10 +5,7 @@ set -ex
install_ubuntu() {
apt-get update
apt-get install -y --no-install-recommends \
libhiredis-dev \
libleveldb-dev \
liblmdb-dev \
libsnappy-dev
libhiredis-dev

# Cleanup
apt-get autoclean && apt-get clean
Expand All @@ -21,10 +18,7 @@ install_centos() {
yum --enablerepo=extras install -y epel-release

yum install -y \
hiredis-devel \
leveldb-devel \
lmdb-devel \
snappy-devel
hiredis-devel

# Cleanup
yum clean all
Expand Down
4 changes: 0 additions & 4 deletions CMakeLists.txt
Expand Up @@ -231,9 +231,7 @@ option(USE_FAKELOWP "Use FakeLowp operators" OFF)
option(USE_FFMPEG "Use ffmpeg" OFF)
option(USE_GFLAGS "Use GFLAGS" OFF)
option(USE_GLOG "Use GLOG" OFF)
option(USE_LEVELDB "Use LEVELDB" OFF)
option(USE_LITE_PROTO "Use lite protobuf instead of full." OFF)
option(USE_LMDB "Use LMDB" OFF)
option(USE_MAGMA "Use MAGMA" ON)
option(USE_METAL "Use Metal for Caffe2 iOS build" ON)
option(USE_PYTORCH_METAL "Use Metal for PyTorch iOS build" OFF)
Expand Down Expand Up @@ -272,7 +270,6 @@ option(USE_PROF "Use profiling" OFF)
option(USE_QNNPACK "Use QNNPACK (quantized 8-bit operators)" ON)
option(USE_PYTORCH_QNNPACK "Use ATen/QNNPACK (quantized 8-bit operators)" ON)
option(USE_REDIS "Use Redis" OFF)
option(USE_ROCKSDB "Use RocksDB" OFF)
option(USE_SNPE "Use Qualcomm's SNPE library" OFF)
option(USE_SYSTEM_EIGEN_INSTALL
"Use system Eigen instead of the one under third_party" OFF)
Expand All @@ -294,7 +291,6 @@ option(USE_VULKAN_FP16_INFERENCE "Vulkan - Use fp16 inference" OFF)
option(USE_VULKAN_RELAXED_PRECISION "Vulkan - Use relaxed precision math in the kernels (mediump)" OFF)
# option USE_XNNPACK: try to enable xnnpack by default.
option(USE_XNNPACK "Use XNNPACK" ON)
option(USE_ZMQ "Use ZMQ" OFF)
option(USE_ZSTD "Use ZSTD" OFF)
option(USE_ROCM_KERNEL_ASSERT "Use Kernel Assert for ROCm" OFF)
# Ensure that an ITT build is the default for x86 CPUs
Expand Down
12 changes: 0 additions & 12 deletions binaries/CMakeLists.txt
Expand Up @@ -77,23 +77,11 @@ if(USE_ROCM)
endif()
endif()

if(USE_ZMQ)
caffe2_binary_target("zmq_feeder.cc")
target_link_libraries(zmq_feeder ${ZMQ_LIBRARIES})
endif()

if(USE_MPI)
caffe2_binary_target("run_plan_mpi.cc")
target_link_libraries(run_plan_mpi ${MPI_CXX_LIBRARIES})
endif()

if(USE_OPENCV AND USE_LEVELDB)
caffe2_binary_target("convert_encoded_to_raw_leveldb.cc")
target_link_libraries(
convert_encoded_to_raw_leveldb
${OpenCV_LIBS} ${LevelDB_LIBRARIES} ${Snappy_LIBRARIES})
endif()

if(USE_OPENCV)
caffe2_binary_target("make_image_db.cc")
target_link_libraries(make_image_db ${OpenCV_LIBS})
Expand Down
155 changes: 0 additions & 155 deletions binaries/convert_encoded_to_raw_leveldb.cc

This file was deleted.

63 changes: 0 additions & 63 deletions binaries/zmq_feeder.cc

This file was deleted.

1 change: 0 additions & 1 deletion caffe2/CMakeLists.txt
Expand Up @@ -139,7 +139,6 @@ if(BUILD_CAFFE2 AND NOT INTERN_BUILD_MOBILE)
if(USE_NVRTC)
add_subdirectory(cuda_rtc)
endif()
add_subdirectory(db)
add_subdirectory(distributed)
# add_subdirectory(experiments) # note, we may remove this folder at some point
add_subdirectory(ideep)
Expand Down
32 changes: 0 additions & 32 deletions caffe2/db/CMakeLists.txt

This file was deleted.

9 changes: 0 additions & 9 deletions caffe2/db/create_db_op.cc

This file was deleted.

42 changes: 0 additions & 42 deletions caffe2/db/create_db_op.h

This file was deleted.

6 changes: 0 additions & 6 deletions caffe2/db/create_db_op_gpu.cc

This file was deleted.

0 comments on commit 575d70e

Please sign in to comment.