Skip to content

Commit e117c8b

Browse files
committed
CUDNN lib path fix in tensorrt docker
Signed-off-by: Riyad Islam <[email protected]>
1 parent 29b4cf2 commit e117c8b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

examples/onnx_ptq/docker/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ WORKDIR /workspace
1414

1515
RUN pip install tensorrt==10.13.2.6 && \
1616
export TRT_PATH=$(python -c "import tensorrt; import os; print(os.path.dirname(tensorrt.__file__))") && \
17-
export LD_LIBRARY_PATH="$TRT_PATH/lib:/usr/include:${LD_LIBRARY_PATH}" && \
17+
export CUDNN_LIB_DIR=$(python -c "import site; print(site.getsitepackages()[0])")/nvidia/cudnn/lib && \
18+
export LD_LIBRARY_PATH="$CUDNN_LIB_DIR:$TRT_PATH/lib:/usr/include:${LD_LIBRARY_PATH}" && \
1819
export PATH="$TRT_PATH/bin:${PATH}"
1920

2021
# Copy application code and install requirements

0 commit comments

Comments
 (0)