Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
Paddle
提交
6c4a741a
P
Paddle
项目概览
PaddlePaddle
/
Paddle
大约 1 年 前同步成功
通知
2298
Star
20931
Fork
5422
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1423
列表
看板
标记
里程碑
合并请求
543
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
P
Paddle
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1,423
Issue
1,423
列表
看板
标记
里程碑
合并请求
543
合并请求
543
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
未验证
提交
6c4a741a
编写于
9月 26, 2021
作者:
J
JingZhuangzhuang
提交者:
GitHub
9月 27, 2021
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[Docker Images] Add cuda11.2 + cudnn8.2.1 + trt8.0.3.4 images (#35982)
上级
8db6d221
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
35 addition
and
0 deletion
+35
-0
tools/dockerfile/build_scripts/install_cudnn.sh
tools/dockerfile/build_scripts/install_cudnn.sh
+8
-0
tools/dockerfile/build_scripts/install_trt.sh
tools/dockerfile/build_scripts/install_trt.sh
+5
-0
tools/dockerfile/centos7_manylinux.sh
tools/dockerfile/centos7_manylinux.sh
+22
-0
未找到文件。
tools/dockerfile/build_scripts/install_cudnn.sh
浏览文件 @
6c4a741a
...
...
@@ -37,4 +37,12 @@ elif [[ "$1" == "cudnn811" && "$VERSION" == "10.2" ]]; then
cp
-r
lib64 /usr
&&
cd
../
&&
\
rm
-f
cudnn-10.2-linux-x64-v8.1.1.33.tgz
&&
\
rm
-rf
cuda
elif
[[
"
$1
"
==
"cudnn821"
&&
"
$VERSION
"
==
"11.2"
]]
;
then
wget
-q
https://paddle-ci.gz.bcebos.com/cudnn/cudnn-11.3-linux-x64-v8.2.1.32.tgz
--no-check-certificate
tar
-xzf
cudnn-11.3-linux-x64-v8.2.1.32.tgz
&&
\
cd
cuda
&&
\
cp
-r
include /usr
&&
\
cp
-r
lib64 /usr
&&
cd
../
&&
\
rm
-f
cudnn-11.3-linux-x64-v8.2.1.32.tgz
&&
\
rm
-rf
cuda
fi
tools/dockerfile/build_scripts/install_trt.sh
浏览文件 @
6c4a741a
...
...
@@ -31,6 +31,11 @@ if [[ "$VERSION" == "10.1" ]];then
tar
-zxf
TensorRT6-cuda10.1-cudnn7.tar.gz
-C
/usr/local
cp
-rf
/usr/local/TensorRT6-cuda10.1-cudnn7/include/
*
/usr/include/
&&
cp
-rf
/usr/local/TensorRT6-cuda10.1-cudnn7/lib/
*
/usr/lib/
rm
TensorRT6-cuda10.1-cudnn7.tar.gz
elif
[[
"
$1
"
==
"trt8034"
&&
"
$VERSION
"
==
"11.2"
]]
;
then
wget
-q
https://paddle-ci.gz.bcebos.com/TRT/TensorRT-8.0.3.4.Linux.x86_64-gnu.cuda-11.3.cudnn8.2.tar.gz
--no-check-certificate
tar
-zxf
TensorRT-8.0.3.4.Linux.x86_64-gnu.cuda-11.3.cudnn8.2.tar.gz
-C
/usr/local
cp
-rf
/usr/local/TensorRT-8.0.3.4/include/
*
/usr/include/
&&
cp
-rf
/usr/local/TensorRT-8.0.3.4/lib/
*
/usr/lib/
rm
TensorRT-8.0.3.4.Linux.x86_64-gnu.cuda-11.3.cudnn8.2.tar.gz
elif
[[
"
$VERSION
"
==
"11.2"
]]
;
then
wget
-q
https://paddle-ci.gz.bcebos.com/TRT/TensorRT7-cuda11.1-cudnn8.1.tar.gz
--no-check-certificate
tar
-zxf
TensorRT7-cuda11.1-cudnn8.1.tar.gz
-C
/usr/local
...
...
tools/dockerfile/centos7_manylinux.sh
浏览文件 @
6c4a741a
...
...
@@ -84,6 +84,22 @@ function make_cuda112cudnn8() {
sed
-i
"s#RUN bash build_scripts/build.sh#RUN bash build_scripts/install_gcc.sh gcc82
\n
RUN mv /usr/bin/cc /usr/bin/cc.bak
\&\&
ln -s /usr/local/gcc-8.2/bin/gcc /usr/bin/cc
\n
ENV PATH=/usr/local/gcc-8.2/bin:
\$
PATH
\n
RUN bash build_scripts/build.sh#g"
Dockerfile.tmp
}
function
make_cuda112cudnn821trt8034gcc82
()
{
sed
's/<baseimg>/11.2.2-cudnn8-devel-centos7/g'
Dockerfile.centos
>
Dockerfile.tmp
sed
-i
"s#RUN bash build_scripts/build.sh#RUN bash build_scripts/install_gcc.sh gcc82
\n
RUN mv /usr/bin/cc /usr/bin/cc.bak
\&\&
ln -s /usr/local/gcc-8.2/bin/gcc /usr/bin/cc
\n
ENV PATH=/usr/local/gcc-8.2/bin:
\$
PATH
\n
RUN yum remove -y libcudnn8-devel.x86_64 libcudnn8.x86_64
\n
Run bash build_scripts/install_cudnn.sh cudnn821
\n
ENV CUDNN_VERSION=8.2.1
\n
RUN bash build_scripts/build.sh#g"
Dockerfile.tmp
sed
-i
"/install_trt.sh/d"
Dockerfile.tmp
sed
-i
"s#RUN bash build_scripts/build.sh#RUN bash build_scripts/install_trt.sh trt8034
\n
RUN bash build_scripts/build.sh#g"
Dockerfile.tmp
sed
-i
'/CMD/iRUN ldconfig'
Dockerfile.tmp
}
function
make_cuda112cudnn821trt8034gcc54
()
{
sed
's/<baseimg>/11.2.2-cudnn8-devel-centos7/g'
Dockerfile.centos
>
Dockerfile.tmp
sed
-i
"s#RUN bash build_scripts/build.sh#RUN bash build_scripts/install_gcc.sh gcc54
\n
RUN mv /usr/bin/cc /usr/bin/cc.bak
\&\&
ln -s /usr/local/gcc-5.4/bin/gcc /usr/bin/cc
\n
ENV PATH=/usr/local/gcc-5.4/bin:
\$
PATH
\n
RUN yum remove -y libcudnn8-devel.x86_64 libcudnn8.x86_64
\n
Run bash build_scripts/install_cudnn.sh cudnn821
\n
ENV CUDNN_VERSION=8.2.1
\n
RUN bash build_scripts/build.sh#g"
Dockerfile.tmp
sed
-i
"/install_trt.sh/d"
Dockerfile.tmp
sed
-i
"s#RUN bash build_scripts/build.sh#RUN bash build_scripts/install_trt.sh trt8034
\n
RUN bash build_scripts/build.sh#g"
Dockerfile.tmp
sed
-i
'/CMD/iRUN ldconfig'
Dockerfile.tmp
}
function
main
()
{
local
CMD
=
$1
case
$CMD
in
...
...
@@ -123,6 +139,12 @@ function main() {
cuda112cudnn8
)
make_cuda112cudnn8
;;
cuda112cudnn821trt8034gcc82
)
make_cuda112cudnn821trt8034gcc82
;;
cuda112cudnn821trt8034gcc54
)
make_cuda112cudnn821trt8034gcc54
;;
*
)
echo
"Make dockerfile error, Without this paramet."
exit
1
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录