Skip to content

Commit fda1ca0

Browse files
committed
Build script cleanup
2 parents b884146 + 65ffaef commit fda1ca0

File tree

500 files changed

+161329
-32395
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

500 files changed

+161329
-32395
lines changed

.bazelrc

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,10 @@ build:python --define=target_lang=python
3333

3434
build:pre_cxx11_abi --cxxopt="-D_GLIBCXX_USE_CXX11_ABI=0"
3535
build:pre_cxx11_abi --linkopt="-D_GLIBCXX_USE_CXX11_ABI=0"
36-
build:pre_cxx11_abi --define=abi=pre_cxx11_abi
36+
build:pre_cxx11_abi --define=abi=pre_cxx11_abi
37+
38+
build:ci_testing --define=torchtrt_src=pre_built
39+
build:use_precompiled_torchtrt --define=torchtrt_src=pre_built
40+
41+
test:ci_testing --define=torchtrt_src=pre_built
42+
test:use_precompiled_torchtrt --define=torchtrt_src=pre_built

docker/dist-build.sh

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,13 @@
11
#!/bin/bash
22

3-
mkdir -p dist && cd py \
4-
&& MAX_JOBS=1 LANG=en_US.UTF-8 LANGUAGE=en_US:en LC_ALL=en_US.UTF-8 python3 setup.py bdist_wheel --use-cxx11-abi \
5-
&& cp -r dist/* ../dist/
3+
TOP_DIR=$(cd $(dirname $0); pwd)/..
4+
5+
cd ${TOP_DIR} \
6+
&& mkdir -p dist && cd py \
7+
&& MAX_JOBS=1 LANG=en_US.UTF-8 LANGUAGE=en_US:en LC_ALL=en_US.UTF-8 \
8+
python3 setup.py bdist_wheel --use-cxx11-abi $* || exit 1
9+
10+
cd ${TOP_DIR} && cp -r dist/* ../dist/
611

712
pip3 install ipywidgets --trusted-host pypi.org --trusted-host pypi.python.org --trusted-host=files.pythonhosted.org
813
jupyter nbextension enable --py widgetsnbextension

docker/dist-test.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,5 @@ pip3 install timm --trusted-host pypi.org --trusted-host pypi.python.org --trust
55
cd tests/modules && python3 ./hub.py
66
cd ../..
77

8-
bazel test //tests:tests //tests:python_api_tests --compilation_mode=opt --jobs=4
8+
bazel test //tests:tests //tests:python_api_tests --compilation_mode=opt --jobs=4 --define=torchtrt_src=prebuilt
9+

0 commit comments

Comments
 (0)