You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
*`Dockerfile` currently uses the exact library versions (Torch, CUDA, CUDNN, TensorRT) listed in <ahref="https://github.com/pytorch/TensorRT#dependencies">dependencies</a> to build Torch-TensorRT.
6
6
7
-
### Build Container
7
+
* This `Dockerfile` installs `pre-cxx11-abi` versions of Pytorch and builds Torch-TRT using `pre-cxx11-abi` libtorch as well.
8
+
Note: To install `cxx11_abi` version of Torch-TensorRT, enable `USE_CXX11=1` flag so that `dist-build.sh` can build it accordingly.
9
+
10
+
### Dependencies
11
+
12
+
* Install nvidia-docker by following https://docs.nvidia.com/datacenter/cloud-native/container-toolkit/install-guide.html#docker
nvidia-docker run --gpus all -it --shm-size=8gb --env="DISPLAY" --volume="/tmp/.X11-unix:/tmp/.X11-unix:rw" --name=torch_tensorrt --ipc=host --net=host torch_tensorrt:latest
26
+
```
27
+
28
+
Test:
29
+
30
+
31
+
You can run any converter test to verify if Torch-TRT built sucessfully inside the container. Once you launch the container, you can run
32
+
```
33
+
bazel test //tests/core/conversion/converters:test_activation --compilation_mode=opt --test_output=summary --config use_precompiled_torchtrt --config pre_cxx11_abi
34
+
```
35
+
36
+
*`--config use_precompiled_torchtrt` : Indicates bazel to use pre-installed Torch-TRT library to test an application.
37
+
*`--config pre_cxx11_abi` : This flag ensures `bazel test` uses `pre_cxx11_abi` version of `libtorch`. Use this flag corresponding to the ABI format of your Torch-TensorRT installation.
38
+
39
+
### Pytorch NGC containers
40
+
41
+
We also ship Torch-TensorRT in <ahref="https://catalog.ngc.nvidia.com/orgs/nvidia/containers/pytorch">Pytorch NGC containers </a>. Release notes for these containers can be found <ahref="https://docs.nvidia.com/deeplearning/frameworks/pytorch-release-notes/index.html">here</a>. Check out `release/ngc/23.XX` branch of Torch-TensorRT for source code that gets shipped with `23.XX` version of Pytorch NGC container.
0 commit comments