mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 21:14:14 +08:00
[1/2] Remove caffe2 db and distributed from build system (#125092)
This PR tries to decompose https://github.com/pytorch/pytorch/pull/122527 into a smaller one. Caffe2 db, distributed and some binaries have been removed. To be noted, this was inspired and is co-dev with @r-barnes. Pull Request resolved: https://github.com/pytorch/pytorch/pull/125092 Approved by: https://github.com/malfet
This commit is contained in:
@ -128,8 +128,6 @@ CMAKE_ARGS+=("-DUSE_CUDA=OFF")
|
||||
CMAKE_ARGS+=("-DUSE_ITT=OFF")
|
||||
CMAKE_ARGS+=("-DUSE_GFLAGS=OFF")
|
||||
CMAKE_ARGS+=("-DUSE_OPENCV=OFF")
|
||||
CMAKE_ARGS+=("-DUSE_LMDB=OFF")
|
||||
CMAKE_ARGS+=("-DUSE_LEVELDB=OFF")
|
||||
CMAKE_ARGS+=("-DUSE_MPI=OFF")
|
||||
CMAKE_ARGS+=("-DUSE_OPENMP=OFF")
|
||||
# Only toggle if VERBOSE=1
|
||||
|
@ -107,8 +107,6 @@ CMAKE_ARGS+=("-DUSE_CUDA=OFF")
|
||||
CMAKE_ARGS+=("-DUSE_ITT=OFF")
|
||||
CMAKE_ARGS+=("-DUSE_GFLAGS=OFF")
|
||||
CMAKE_ARGS+=("-DUSE_OPENCV=OFF")
|
||||
CMAKE_ARGS+=("-DUSE_LMDB=OFF")
|
||||
CMAKE_ARGS+=("-DUSE_LEVELDB=OFF")
|
||||
CMAKE_ARGS+=("-DUSE_MPI=OFF")
|
||||
CMAKE_ARGS+=("-DUSE_NUMPY=OFF")
|
||||
CMAKE_ARGS+=("-DUSE_NNPACK=OFF")
|
||||
|
@ -68,8 +68,6 @@ CMAKE_ARGS+=("-DUSE_CUDA=OFF")
|
||||
CMAKE_ARGS+=("-DUSE_ITT=OFF")
|
||||
CMAKE_ARGS+=("-DUSE_GFLAGS=OFF")
|
||||
CMAKE_ARGS+=("-DUSE_OPENCV=OFF")
|
||||
CMAKE_ARGS+=("-DUSE_LMDB=OFF")
|
||||
CMAKE_ARGS+=("-DUSE_LEVELDB=OFF")
|
||||
CMAKE_ARGS+=("-DUSE_MPI=OFF")
|
||||
CMAKE_ARGS+=("-DUSE_OPENMP=OFF")
|
||||
CMAKE_ARGS+=("-DUSE_MKLDNN=OFF")
|
||||
|
@ -29,10 +29,7 @@ sudo apt-get install \
|
||||
# obtain optional dependencies that are usually useful to have.
|
||||
echo "Installing optional dependencies."
|
||||
sudo apt-get install \
|
||||
libleveldb-dev \
|
||||
liblmdb-dev \
|
||||
libpython-dev \
|
||||
libsnappy-dev \
|
||||
python-numpy \
|
||||
python-pip \
|
||||
python-protobuf
|
||||
|
@ -55,9 +55,6 @@ cmake .. \
|
||||
-DRUN_HAVE_POSIX_REGEX=0 \
|
||||
-DHAVE_GNU_POSIX_REGEX=0 \
|
||||
-DUSE_MPI=OFF -DUSE_OPENMP=OFF \
|
||||
-DUSE_ROCKSDB=OFF \
|
||||
-DUSE_LEVELDB=OFF \
|
||||
-DUSE_LMDB=OFF \
|
||||
-DBUILD_PYTHON=OFF \
|
||||
-DUSE_GLOO=OFF \
|
||||
-DUSE_OPENCV=OFF \
|
||||
@ -84,10 +81,7 @@ sudo zypper install \
|
||||
# Obtain optional dependencies that are usually useful to have.
|
||||
echo "Installing optional dependencies."
|
||||
sudo zypper install \
|
||||
libleveldb-dev \
|
||||
liblmdb-dev \
|
||||
libpython-dev \
|
||||
libsnappy-dev \
|
||||
python-numpy \
|
||||
python-pip \
|
||||
python-protobuf
|
||||
@ -110,7 +104,6 @@ cmake "$CAFFE2_ROOT" \
|
||||
-DUSE_CUDA=OFF \
|
||||
-DUSE_ITT=OFF \
|
||||
-DUSE_OPENCV=OFF \
|
||||
-DUSE_LMDB=OFF \
|
||||
-DCAFFE2_CPU_FLAGS="-mfpu=neon -mfloat-abi=soft" \
|
||||
|| exit 1
|
||||
|
||||
|
Reference in New Issue
Block a user