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
RUN test -n "$TENSORRT_VERSION" || (echo "No tensorrt version specified, please use --build-arg TENSORRT_VERSION=x.y.z to specify a version." && exit 1)
7
+
ARG CUDNN_VERSION
8
+
RUN test -n "$CUDNN_VERSION" || (echo "No cudnn version specified, please use --build-arg CUDNN_VERSION=x.y.z to specify a version." && exit 1)
Copy file name to clipboardExpand all lines: docker/README.md
+8-2
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,10 @@
2
2
3
3
* Use `Dockerfile` to build a container which provides the exact development environment that our master branch is usually tested against.
4
4
5
-
*`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.
5
+
* The `Dockerfile` currently uses <ahref="https://github.com/bazelbuild/bazelisk">Bazelisk</a> to select the Bazel version, and uses the exact library versions of Torch and CUDA listed in <ahref="https://github.com/pytorch/TensorRT#dependencies">dependencies</a>.
6
+
* The desired versions of CUDNN and TensorRT must be specified as build-args, with major, minor, and patch versions as in: `--build-arg TENSORRT_VERSION=a.b.c --build-arg CUDNN_VERSION=x.y.z`
7
+
*[**Optional**] The desired base image be changed by explicitly setting a base image, as in `--build-arg BASE_IMG=nvidia/cuda:11.7.1-devel-ubuntu22.04`, though this is optional
8
+
*[**Optional**] Additionally, the desired Python version can be changed by explicitly setting a version, as in `--build-arg PYTHON_VERSION=3.10`, though this is optional as well.
6
9
7
10
* This `Dockerfile` installs `pre-cxx11-abi` versions of Pytorch and builds Torch-TRT using `pre-cxx11-abi` libtorch as well.
8
11
@@ -14,11 +17,14 @@ Note: By default the container uses the `pre-cxx11-abi` version of Torch + Torch
14
17
15
18
### Instructions
16
19
20
+
- The example below uses CUDNN 8.5.0 and TensorRT 8.5.1
21
+
- See <ahref="https://github.com/pytorch/TensorRT#dependencies">dependencies</a> for a list of current default dependencies.
0 commit comments