Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
Paddle
提交
301fb64d
P
Paddle
项目概览
PaddlePaddle
/
Paddle
大约 1 年 前同步成功
通知
2299
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看板
未验证
提交
301fb64d
编写于
7月 20, 2021
作者:
W
Wilber
提交者:
GitHub
7月 20, 2021
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
add cuda102cudnn7trt6.0.1.8 images (#34241)
上级
6a9610ed
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
24 addition
and
1 deletion
+24
-1
tools/dockerfile/build_scripts/install_trt.sh
tools/dockerfile/build_scripts/install_trt.sh
+16
-1
tools/dockerfile/centos7_manylinux.sh
tools/dockerfile/centos7_manylinux.sh
+8
-0
未找到文件。
tools/dockerfile/build_scripts/install_trt.sh
浏览文件 @
301fb64d
...
@@ -16,6 +16,16 @@
...
@@ -16,6 +16,16 @@
VERSION
=
$(
nvcc
--version
|
grep
release |
grep
-oEi
"release ([0-9]+)
\.
([0-9])"
|
sed
"s/release //"
)
VERSION
=
$(
nvcc
--version
|
grep
release |
grep
-oEi
"release ([0-9]+)
\.
([0-9])"
|
sed
"s/release //"
)
CUDNN_MAJOR
=
$(
cat
/usr/include/cudnn.h |
grep
-v
CUDNN_VERSION |
grep
CUDNN_MAJOR |
cut
-d
' '
-f3
)
CUDNN_MINOR
=
$(
cat
/usr/include/cudnn.h |
grep
-v
CUDNN_VERSION |
grep
CUDNN_MINOR |
cut
-d
' '
-f3
)
CUDNN_PATCHLEVEL
=
$(
cat
/usr/include/cudnn.h |
grep
-v
CUDNN_VERSION |
grep
CUDNN_PATCHLEVEL |
cut
-d
' '
-f3
)
if
[[
-z
"
${
CUDNN_MAJOR
}
"
]]
;
then
CUDNN_MAJOR
=
$(
cat
/usr/include/cudnn_version.h |
grep
-v
CUDNN_VERSION |
grep
CUDNN_MAJOR |
cut
-d
' '
-f3
)
CUDNN_MINOR
=
$(
cat
/usr/include/cudnn_version.h |
grep
-v
CUDNN_VERSION |
grep
CUDNN_MINOR |
cut
-d
' '
-f3
)
CUDNN_PATCHLEVEL
=
$(
cat
/usr/include/cudnn_version.h |
grep
-v
CUDNN_VERSION |
grep
CUDNN_PATCHLEVEL |
cut
-d
' '
-f3
)
fi
CUDNN_VERSION
=
"
${
CUDNN_MAJOR
}
.
${
CUDNN_MINOR
}
.
${
CUDNN_PATCHLEVEL
}
"
if
[[
"
$VERSION
"
==
"10.1"
]]
;
then
if
[[
"
$VERSION
"
==
"10.1"
]]
;
then
wget
-q
https://paddle-ci.gz.bcebos.com/TRT/TensorRT6-cuda10.1-cudnn7.tar.gz
--no-check-certificate
wget
-q
https://paddle-ci.gz.bcebos.com/TRT/TensorRT6-cuda10.1-cudnn7.tar.gz
--no-check-certificate
tar
-zxf
TensorRT6-cuda10.1-cudnn7.tar.gz
-C
/usr/local
tar
-zxf
TensorRT6-cuda10.1-cudnn7.tar.gz
-C
/usr/local
...
@@ -36,7 +46,12 @@ elif [[ "$VERSION" == "11.0" ]];then
...
@@ -36,7 +46,12 @@ elif [[ "$VERSION" == "11.0" ]];then
tar
-zxf
TensorRT-7.1.3.4.Ubuntu-16.04.x86_64-gnu.cuda-11.0.cudnn8.0.tar.gz
-C
/usr/local
tar
-zxf
TensorRT-7.1.3.4.Ubuntu-16.04.x86_64-gnu.cuda-11.0.cudnn8.0.tar.gz
-C
/usr/local
cp
-rf
/usr/local/TensorRT-7.1.3.4/include/
*
/usr/include/
&&
cp
-rf
/usr/local/TensorRT-7.1.3.4/lib/
*
/usr/lib/
cp
-rf
/usr/local/TensorRT-7.1.3.4/include/
*
/usr/include/
&&
cp
-rf
/usr/local/TensorRT-7.1.3.4/lib/
*
/usr/lib/
rm
TensorRT-7.1.3.4.Ubuntu-16.04.x86_64-gnu.cuda-11.0.cudnn8.0.tar.gz
rm
TensorRT-7.1.3.4.Ubuntu-16.04.x86_64-gnu.cuda-11.0.cudnn8.0.tar.gz
elif
[[
"
$VERSION
"
==
"10.2"
]]
;
then
elif
[[
"
$VERSION
"
==
"10.2"
&&
"
$CUDNN_VERSION
"
==
"7.6.5"
]]
;
then
wget https://paddle-ci.gz.bcebos.com/TRT/TensorRT-6.0.1.8.CentOS-7.6.x86_64-gnu.cuda-10.2.cudnn7.6.tar.gz
--no-check-certificate
tar
-zxf
TensorRT-6.0.1.8.CentOS-7.6.x86_64-gnu.cuda-10.2.cudnn7.6.tar.gz
-C
/usr/local
cp
-rf
/usr/local/TensorRT-6.0.1.8/include/
*
/usr/include/
&&
cp
-rf
/usr/local/TensorRT-6.0.1.8/lib/
*
/usr/lib/
rm
-f
TensorRT-6.0.1.8.CentOS-7.6.x86_64-gnu.cuda-10.2.cudnn7.6.tar.gz
elif
[[
"
$VERSION
"
==
"10.2"
&&
"
$CUDNN_VERSION
"
==
"8.1.1"
]]
;
then
wget https://paddle-ci.gz.bcebos.com/TRT/TensorRT-7.2.3.4.CentOS-7.9.x86_64-gnu.cuda-10.2.cudnn8.1.tar.gz
--no-check-certificate
wget https://paddle-ci.gz.bcebos.com/TRT/TensorRT-7.2.3.4.CentOS-7.9.x86_64-gnu.cuda-10.2.cudnn8.1.tar.gz
--no-check-certificate
tar
-zxf
TensorRT-7.2.3.4.CentOS-7.9.x86_64-gnu.cuda-10.2.cudnn8.1.tar.gz
-C
/usr/local
tar
-zxf
TensorRT-7.2.3.4.CentOS-7.9.x86_64-gnu.cuda-10.2.cudnn8.1.tar.gz
-C
/usr/local
cp
-rf
/usr/local/TensorRT-7.2.3.4/include/
*
/usr/include/
&&
cp
-rf
/usr/local/TensorRT-7.2.3.4/lib/
*
/usr/lib/
cp
-rf
/usr/local/TensorRT-7.2.3.4/include/
*
/usr/include/
&&
cp
-rf
/usr/local/TensorRT-7.2.3.4/lib/
*
/usr/lib/
...
...
tools/dockerfile/centos7_manylinux.sh
浏览文件 @
301fb64d
...
@@ -42,6 +42,11 @@ function make_cuda102cudnn7() {
...
@@ -42,6 +42,11 @@ function make_cuda102cudnn7() {
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
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_cuda102cudnn7gcc54
()
{
sed
's/<baseimg>/10.2-cudnn7-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-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_cuda102cudnn8
()
{
function
make_cuda102cudnn8
()
{
sed
's/<baseimg>/10.2-cudnn8-devel-centos7/g'
Dockerfile.centos
>
Dockerfile.tmp
sed
's/<baseimg>/10.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 bash build_scripts/build.sh#g"
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 bash build_scripts/build.sh#g"
Dockerfile.tmp
...
@@ -94,6 +99,9 @@ function main() {
...
@@ -94,6 +99,9 @@ function main() {
cuda102cudnn7
)
cuda102cudnn7
)
make_cuda102cudnn7
make_cuda102cudnn7
;;
;;
cuda102cudnn7gcc54
)
make_cuda102cudnn7gcc54
;;
cuda102cudnn8
)
cuda102cudnn8
)
make_cuda102cudnn8
make_cuda102cudnn8
;;
;;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录