Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] Use the selective libtorch build #1314

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
[WIP] Use the selective build path to reduce number of source files (…
…~1800 -> ~1400).
  • Loading branch information
makslevental committed Aug 30, 2022
commit bfc0a15dbb7a7a59db65c6048d92406b3b0b4e9b
8 changes: 7 additions & 1 deletion build_tools/build_libtorch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,12 @@ build_pytorch() {
fi
fi

BUILD_CUSTOM_PROTOBUF=OFF \
BUILD_LAZY_TS_BACKEND=ON \
BUILD_LITE_INTERPRETER=0 \
SELECTED_OP_LIST="$SRC_ROOT/build_tools/lightweight_dispatch_ops.yaml" \
STATIC_DISPATCH_BACKEND="CPU" \
USE_LIGHTWEIGHT_DISPATCH=1 \
BUILD_SHARED_LIBS=ON \
BUILD_CAFFE2_OPS=OFF \
INTERN_BUILD_ATEN_OPS=OFF \
Expand All @@ -86,7 +92,7 @@ build_pytorch() {
USE_ITT=OFF \
USE_DISTRIBUTED=OFF \
USE_EIGEN_FOR_BLAS=OFF \
USE_FBGEMM=ON \
USE_FBGEMM=OFF \
USE_GLOO=OFF \
USE_KINETO=ON \
USE_MKL=OFF \
Expand Down
Loading