1515 steps :
1616 - checkout
1717 - run :
18- name : install cudnn + tensorrt
18+ name : install cudnn + tensorrt + bazel
1919 command : |
2020 cd ~
2121 OS=ubuntu2004
@@ -35,46 +35,55 @@ jobs:
3535 v=8.2.4-1+cuda11.4
3636 sudo apt-get install libnvinfer8=${v} libnvonnxparsers8=${v} libnvparsers8=${v} libnvinfer-plugin8=${v} libnvinfer-dev=${v} libnvonnxparsers-dev=${v} libnvparsers-dev=${v} libnvinfer-plugin-dev=${v} python3-libnvinfer=${v}
3737 # check available version, apt list libnvinfer8 -a
38+ BAZEL_VERSION=5.1.1
39+ sudo wget -q https://github.com/bazelbuild/bazel/releases/download/${BAZEL_VERSION}/bazel-${BAZEL_VERSION}-linux-x86_64 -O /usr/bin/bazel
40+ sudo chmod a+x /usr/bin/bazel
3841
3942 - run :
40- name : set up environment
43+ name : set up python environment
4144 command : |
4245 pip3 install nvidia-pyindex
4346 pip3 install nvidia-tensorrt==8.2.4.2
4447 pip3 install --pre torch==1.13.0.dev20220618 torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/nightly/cu113
4548 pip3 install pytest parameterized expecttest
46- # install fx2trt
47- cd py/torch_tensorrt/fx
48- pushd setup
49+ # install torch_tensorrt
50+ cd py
4951 python3 setup.py install
52+
53+ # install fx2trt
54+ # cd py/torch_tensorrt/fx/setup
55+ # python3 setup.py install
5056 - run :
5157 name : run tests
5258 command : |
59+ # one fix pending to enable below
60+ # cd py/torch_tensorrt/fx/test
61+ # pytest $(find . -name '*.py' | grep -v test_dispatch* | grep -v test_setitem*)
62+
5363 cd py/torch_tensorrt/fx/test
54- pytest $(find . -name '*.py' | grep -v test_dispatch* | grep -v test_setitem*)
55- # pushd test/converters/acc_op
56- # pytest
57- # popd
58- # pushd test/passes
59- # list_passes=$(ls | grep -v test_setitem*)
60- # pytest $list_passes
61- # popd
62- # pushd test/core
64+ pushd converters/acc_op
65+ pytest
66+ popd
67+ pushd passes
68+ list_passes=$(ls | grep -v test_setitem*)
69+ pytest $list_passes
70+ popd
71+ pushd core
72+ pytest
73+ popd
74+ # pushd quant
6375 # pytest
6476 # popd
65- # # pushd test/quant
66- # # pytest
67- # # popd
68- # pushd test/tools
69- # pytest
70- # popd
71- # pushd test/trt_lower
72- # pytest
73- # popd
74- # pushd test/tracer
75- # list_tracer=$(ls | grep -v test_dispatch_*)
76- # pytest $list_tracer
77- # popd
77+ pushd tools
78+ pytest
79+ popd
80+ pushd trt_lower
81+ pytest
82+ popd
83+ pushd tracer
84+ list_tracer=$(ls | grep -v test_dispatch_*)
85+ pytest $list_tracer
86+ popd
7887# Invoke jobs via workflows
7988# See: https://circleci.com/docs/2.0/configuration-reference/#workflows
8089workflows :
0 commit comments