mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-05-16 21:00:14 +00:00
* update onnx-tensorrt parser to master * disable unsupported tests * add cuda sm 75 for T4 * update tensorrt pipeline * update trt pipelines * update trt pipelines * Update linux-gpu-tensorrt-ci-pipeline.yml * update trt cid pipeline * Update linux-gpu-tensorrt-ci-pipeline.yml * Update Tensorrt Windows build pool and TensorRT/CUDA/CuDNN version * update to cuda11.4 in trt ci pipeline * update base image to cuda11.4 * update packaging pipeline to cuda11.4 * clean up * remove cuda11.1 and cuda11.3 docker file * disable unsupported tensorrt tests at runtime * Update linux-multi-gpu-tensorrt-ci-pipeline.yml
30 lines
1.5 KiB
Text
30 lines
1.5 KiB
Text
# --------------------------------------------------------------
|
|
# Copyright (c) Microsoft Corporation. All rights reserved.
|
|
# Licensed under the MIT License.
|
|
# --------------------------------------------------------------
|
|
# Dockerfile to run ONNXRuntime with TensorRT integration
|
|
|
|
# nVidia TensorRT Base Image
|
|
FROM nvcr.io/nvidia/tensorrt:21.07-py3
|
|
|
|
ARG ONNXRUNTIME_REPO=https://github.com/Microsoft/onnxruntime
|
|
ARG ONNXRUNTIME_BRANCH=master
|
|
|
|
RUN apt-get update &&\
|
|
apt-get install -y sudo git bash unattended-upgrades
|
|
RUN unattended-upgrade
|
|
|
|
WORKDIR /code
|
|
ENV PATH /usr/local/nvidia/bin:/usr/local/cuda/bin:/code/cmake-3.21.0-linux-x86_64/bin:/opt/miniconda/bin:${PATH}
|
|
|
|
# Prepare onnxruntime repository & build onnxruntime with TensorRT
|
|
RUN git clone --single-branch --branch ${ONNXRUNTIME_BRANCH} --recursive ${ONNXRUNTIME_REPO} onnxruntime &&\
|
|
/bin/sh onnxruntime/dockerfiles/scripts/install_common_deps.sh &&\
|
|
cp onnxruntime/docs/Privacy.md /code/Privacy.md &&\
|
|
cp onnxruntime/dockerfiles/LICENSE-IMAGE.txt /code/LICENSE-IMAGE.txt &&\
|
|
cp onnxruntime/ThirdPartyNotices.txt /code/ThirdPartyNotices.txt &&\
|
|
cd onnxruntime &&\
|
|
/bin/sh ./build.sh --parallel --cuda_home /usr/local/cuda --cudnn_home /usr/lib/x86_64-linux-gnu/ --use_tensorrt --tensorrt_home /workspace/tensorrt --config Release --build_wheel --update --build --cmake_extra_defines ONNXRUNTIME_VERSION=$(cat ./VERSION_NUMBER) &&\
|
|
pip install /code/onnxruntime/build/Linux/Release/dist/*.whl &&\
|
|
cd .. &&\
|
|
rm -rf onnxruntime cmake-3.21.0-linux-x86_64
|