Skip to content

Commit 60dd9c4

Browse files
committed
fix: fixed dockerfile errors and bazel error
Signed-off-by: Anurag Dixit <[email protected]>
1 parent a2c8191 commit 60dd9c4

File tree

3 files changed

+4
-6
lines changed

3 files changed

+4
-6
lines changed

docker/Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ WORKDIR /workspace/torch_tensorrt/src
3434
RUN cp ./docker/WORKSPACE.docker WORKSPACE
3535

3636
# This script builds both libtorchtrt bin/lib/include tarball and the Python wheel, in dist/
37+
RUN pip3 install --upgrade pip
3738
RUN ./docker/dist-build.sh
3839

3940
FROM base as torch-tensorrt
@@ -45,7 +46,8 @@ RUN rm -rf /opt/pytorch/torch_tensorrt
4546
COPY . /workspace/torch_tensorrt
4647
COPY --from=torch-tensorrt-builder /workspace/torch_tensorrt/src/py/dist/ .
4748

48-
RUN pip3 install ipywidgets --trusted-host pypi.org --trusted-host pypi.python.org --trusted-host=files.pythonhosted.org
49+
RUN pip3 install --upgrade pip \
50+
&& pip3 install ipywidgets --trusted-host pypi.org --trusted-host pypi.python.org --trusted-host=files.pythonhosted.org
4951
RUN jupyter nbextension enable --py widgetsnbextension
5052

5153
RUN pip3 install *.whl && rm -fr /workspace/torch_tensorrt/py/dist/* *.whl

py/setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
__cudnn_version__ = "8.4"
3434
__tensorrt_version__ = "8.4"
3535

36+
3637
def get_git_revision_short_hash() -> str:
3738
return subprocess.check_output(["git", "rev-parse", "--short", "HEAD"]).decode("ascii").strip()
3839

third_party/tensorrt/local/BUILD

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -351,11 +351,6 @@ cc_library(
351351
":ci_rhel_x86_64_linux": glob(["lib64/libnvinfer_plugin.so"]),
352352
"//conditions:default": ["lib/x86_64-linux-gnu/libnvinfer_plugin.so"],
353353
}),
354-
hdrs = select({
355-
":aarch64_linux": glob(["include/aarch64-linux-gnu/NvInferPlugin*.h"]),
356-
":windows": glob(["include/NvInferPlugin*.h"]),
357-
"//conditions:default": glob(["include/x86_64-linux-gnu/NvInferPlugin*.h"]),
358-
}),
359354
copts = [
360355
"-pthread",
361356
],

0 commit comments

Comments
 (0)