Skip to content

Commit

Permalink
fix(//docker): Update docker container build script to use release path
Browse files Browse the repository at this point in the history
to not be dependent on git

Signed-off-by: Naren Dasan <[email protected]>
Signed-off-by: Naren Dasan <[email protected]>
  • Loading branch information
narendasan committed Oct 25, 2021
1 parent 78636eb commit 9982855
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
11 changes: 9 additions & 2 deletions docker/README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,16 @@
# Building a Torch-TensorRT container

## Use the container for pytorch1.10+cuda11.1+trt8.0.3.4
### Install Docker and NVIDIA Container Toolkit

https://docs.nvidia.com/datacenter/cloud-native/container-toolkit/install-guide.html

### Build Container

> From root of Torch-TensorRT repo
```
# Build:
docker build -f docker/Dockerfile -t torch_tensorrt1.0:latest .
docker build --build-arg BASE={PyTorch Base Container Version} -f docker/Dockerfile -t torch_tensorrt1.0:latest .
# Run:
docker run --gpus all -it \
Expand Down
2 changes: 1 addition & 1 deletion docker/dist-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

mkdir -p dist

cd py && 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
cd py && 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 --release

cd ..

Expand Down

0 comments on commit 9982855

Please sign in to comment.