Skip to content

Commit

Permalink
[Enhancement]: Update dockerfile and add github release note (#1952)
Browse files Browse the repository at this point in the history
* update dockerfile and add github release note

* fix typo in get_started

* fix comment
  • Loading branch information
RunningLeon authored Apr 3, 2023
1 parent 8cab33c commit 0196cd0
Show file tree
Hide file tree
Showing 5 changed files with 46 additions and 7 deletions.
32 changes: 32 additions & 0 deletions .github/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
changelog:
categories:
- title: 🚀 Features
labels:
- feature
- enhancement
- title: 💥 Improvements
labels:
- improvement
- title: 🐞 Bug fixes
labels:
- bug
- Bug:P0
- Bug:P1
- Bug:P2
- Bug:P3
- title: 📚 Documentations
labels:
- documentation
- title: 🌐 Other
labels:
- '*'
exclude:
labels:
- feature
- enhancement
- bug
- documentation
- Bug:P0
- Bug:P1
- Bug:P2
- Bug:P3
2 changes: 1 addition & 1 deletion .github/workflows/prebuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ jobs:
linux_build_cxx11abi:
runs-on: [self-hosted, linux-3090]
container:
image: openmmlab/mmdeploy:build-ubuntu18.04-cuda11.3
image: openmmlab/mmdeploy:build-ubuntu16.04-cuda11.3
options: "--gpus=all --ipc=host"
volumes:
- /data2/actions-runner/prebuild:/__w/mmdeploy/prebuild
Expand Down
15 changes: 11 additions & 4 deletions docker/prebuild/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,11 @@ WORKDIR /root/workspace
ENV FORCE_CUDA="1"

# install toolset
RUN yum install devtoolset-${TOOLSET_VERSION}-gcc devtoolset-${TOOLSET_VERSION}-gcc-c++ -y
RUN yum install centos-release-scl devtoolset-${TOOLSET_VERSION}-gcc* -y

ENV PATH=/opt/rh/devtoolset-${TOOLSET_VERSION}/root/usr/bin:$PATH
ENV TOOLSET_DIR=/opt/rh/devtoolset-${TOOLSET_VERSION}/root/usr
ENV PATH=$TOOLSET_DIR/bin:$PATH
ENV LD_LIBRARY_PATH=$TOOLSET_DIR/lib:$TOOLSET_DIR/lib64:/usr/local/lib64

# install cuda cudnn
RUN curl -fsSL -v -o ./cuda_install.run -O $CUDA_URL &&\
Expand All @@ -46,6 +48,10 @@ RUN curl -fsSL -v -o ./onnxruntime.tgz -O https://github.com/microsoft/onnxrunti
tar -xzvf onnxruntime.tgz &&\
rm onnxruntime.tgz &&\
mv onnxruntime* /opt/onnxruntime &&\
curl -fsSL -v -o ./onnxruntime.tgz -O https://github.com/microsoft/onnxruntime/releases/download/v${ONNXRUNTIME_VERSION}/onnxruntime-linux-x64-gpu-${ONNXRUNTIME_VERSION}.tgz &&\
tar -xzvf onnxruntime.tgz &&\
rm onnxruntime.tgz &&\
mv onnxruntime* /opt/onnxruntime-gpu &&\
curl -fsSL -v -o ./tensorrt.tgz -O $TENSORRT_URL &&\
tar -xzvf ./tensorrt.tgz &&\
rm -f ./tensorrt.tgz &&\
Expand All @@ -56,10 +62,11 @@ RUN curl -fsSL -v -o ./onnxruntime.tgz -O https://github.com/microsoft/onnxrunti
ENV CUDA_TOOLKIT_ROOT_DIR=/usr/local/cuda
ENV CUDNN_DIR=/opt/cudnn
ENV ONNXRUNTIME_DIR=/opt/onnxruntime
ENV ONNXRUNTIME_GPU_DIR=/opt/onnxruntime-gpu
ENV TENSORRT_DIR=/opt/TensorRT

ENV LD_LIBRARY_PATH=$CUDA_TOOLKIT_ROOT_DIR/lib64:$CUDNN_DIR/lib64:$LD_LIBRARY_PATH
ENV LD_LIBRARY_PATH=${ONNXRUNTIME_DIR}/lib:$TENSORRT_DIR/lib:$LD_LIBRARY_PATH
ENV LD_LIBRARY_PATH=${ONNXRUNTIME_GPU_DIR}/lib:$TENSORRT_DIR/lib:$LD_LIBRARY_PATH
ENV PATH=$TENSORRT_DIR/bin:$PATH

### install ppl.cv
Expand Down Expand Up @@ -106,7 +113,7 @@ RUN curl -fsSL -v -o ~/miniconda.sh -O https://repo.anaconda.com/miniconda/Mini
/opt/conda/envs/torch${TORCH_VERSION}/bin/pip install --no-cache-dir torch==${TORCH_VERSION}+cu${CUDA_INT} \
torchvision==${TORCHVISION_VERSION}+cu${CUDA_INT} -f https://download.pytorch.org/whl/torch_stable.html &&\
/opt/conda/bin/conda init bash &&\
/opt/conda/bin/conda clean -ya &&\
/opt/conda/bin/conda clean -ya

ENV CONDA=/opt/conda
ENV PATH=$CONDA/bin:$PATH
2 changes: 1 addition & 1 deletion docs/en/get_started.md
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ pip install mmdeploy==1.0.0rc3
# 2.1 support onnxruntime
pip install mmdeploy-runtime==1.0.0rc3
# 2.2 support onnxruntime-gpu, tensorrt
pip install mmdeploy-runtime-cuda==1.0.0rc3
pip install mmdeploy-runtime-gpu==1.0.0rc3

# 3. install inference engine
# 3.1 install TensorRT
Expand Down
2 changes: 1 addition & 1 deletion docs/zh_cn/get_started.md
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ pip install mmdeploy==1.0.0rc3
# 2.1 支持 onnxruntime 推理
pip install mmdeploy-runtime==1.0.0rc3
# 2.2 支持 onnxruntime-gpu tensorrt 推理
pip install mmdeploy-runtime-cuda==1.0.0rc3
pip install mmdeploy-runtime-gpu==1.0.0rc3

# 3. 安装推理引擎
# 3.1 安装推理引擎 TensorRT
Expand Down

0 comments on commit 0196cd0

Please sign in to comment.