Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
Paddle
提交
e489f2ef
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看板
提交
e489f2ef
编写于
6月 28, 2023
作者:
R
risemeup1
提交者:
GitHub
6月 28, 2023
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Revert "Change Py3 use Ubuntu20 Docker (#52523)"
This reverts commit
4001f7ae
.
上级
c6b7b2ad
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
17 addition
and
17 deletion
+17
-17
tools/dockerfile/build_scripts/install_gcc.sh
tools/dockerfile/build_scripts/install_gcc.sh
+2
-0
tools/dockerfile/ci_dockerfile.sh
tools/dockerfile/ci_dockerfile.sh
+15
-17
未找到文件。
tools/dockerfile/build_scripts/install_gcc.sh
浏览文件 @
e489f2ef
...
...
@@ -68,6 +68,7 @@ elif [ "$1" == "gcc122" ]; then
make
-j8
&&
make
install
cd
..
&&
rm
-rf
temp_gcc122 gcc-12.2.0 gcc-12.2.0.tar.gz
cp
${
lib_so_6
}
${
lib_so_6
}
.bak
&&
rm
-f
${
lib_so_6
}
&&
ln
-s
/usr/local/gcc-12.2/lib64/libgfortran.so.5
${
lib_so_5
}
&&
\
ln
-s
/usr/local/gcc-12.2/lib64/libstdc++.so.6
${
lib_so_6
}
&&
\
cp
/usr/local/gcc-12.2/lib64/libstdc++.so.6.0.30
${
lib_path
}
elif
[
"
$1
"
==
"gcc121"
]
;
then
...
...
@@ -81,6 +82,7 @@ elif [ "$1" == "gcc121" ]; then
make
-j8
&&
make
install
cd
..
&&
rm
-rf
temp_gcc122 gcc-12.1.0 gcc-12.1.0.tar.gz
cp
${
lib_so_6
}
${
lib_so_6
}
.bak
&&
rm
-f
${
lib_so_6
}
&&
ln
-s
/usr/local/gcc-12.1/lib64/libgfortran.so.5
${
lib_so_5
}
&&
\
ln
-s
/usr/local/gcc-12.1/lib64/libstdc++.so.6
${
lib_so_6
}
&&
\
cp
/usr/local/gcc-12.1/lib64/libstdc++.so.6.0.30
${
lib_path
}
fi
tools/dockerfile/ci_dockerfile.sh
浏览文件 @
e489f2ef
...
...
@@ -78,24 +78,22 @@ function make_ubuntu_trt7_dockerfile(){
function
make_centos_dockerfile
(){
dockerfile_name
=
"Dockerfile.cuda9_cudnn7_gcc48_py35_centos6"
sed
"s#<baseimg>#ubuntu:20.04#g"
./Dockerfile.ubuntu20
>
${
dockerfile_name
}
sed
-i
"s#<setcuda>##g"
${
dockerfile_name
}
sed
-i
"s#WITH_GPU:-ON#WITH_GPU:-OFF#g"
${
dockerfile_name
}
sed
-i
"s#RUN apt-key del 7fa2af80##g"
${
dockerfile_name
}
sed
-i
's#RUN rm /etc/apt/sources.list.d/\*##g'
${
dockerfile_name
}
sed
-i
"s#RUN apt-key adv --fetch-keys https://developer.download.nvidia.cn/compute/cuda/repos/ubuntu2004/x86_64/3bf863cc.pub##g"
${
dockerfile_name
}
sed
"s/<baseimg>/12.0.1-cudnn8-devel-centos7/g"
Dockerfile.centos
>
${
dockerfile_name
}
sed
-i
"s#COPY build_scripts /build_scripts#COPY tools/dockerfile/build_scripts ./build_scripts#g"
${
dockerfile_name
}
dockerfile_line
=
$(
wc
-l
${
dockerfile_name
}
|awk
'{print $1}'
)
sed
-i
's#RUN bash /build_scripts/install_trt.sh##g'
${
dockerfile_name
}
sed
-i
"
${
dockerfile_line
}
i RUN wget --no-check-certificate -q https://paddle-edl.bj.bcebos.com/hadoop-2.7.7.tar.gz
\&\&
\
tar -xzf hadoop-2.7.7.tar.gz && mv hadoop-2.7.7 /usr/local/"
${
dockerfile_name
}
sed
-i
"
${
dockerfile_line
}
i RUN apt remove git -y
\&\&
apt install -y libsndfile1 zstd pigz libcurl4-openssl-dev gettext zstd ninja-build"
${
dockerfile_name
}
sed
-i
"
${
dockerfile_line
}
i RUN pip install wheel
\&\&
pip3 install PyGithub wheel
\&\&
pip3.8 install PyGithub distro
\&\&
pip3.9 install PyGithub wheel
\&\&
pip3.10 install PyGithub distro"
${
dockerfile_name
}
sed
-i
"
${
dockerfile_line
}
i RUN apt remove git -y
\&\&
apt install -y libcurl4-openssl-dev gettext pigz zstd ninja-build
\&\&
wget -q https://paddle-ci.gz.bcebos.com/git-2.17.1.tar.gz
\&\&
\
tar -xvf git-2.17.1.tar.gz
\&\&
\
cd git-2.17.1
\&\&
\
./configure --with-openssl --with-curl --prefix=/usr/local
\&\&
\
make -j8
\&\&
make install "
${
dockerfile_name
}
sed
-i
's#<install_cpu_package>#RUN apt-get install -y gcc g++ make#g'
${
dockerfile_name
}
sed
-i
"
${
dockerfile_line
}
i RUN yum install -y pigz graphviz zstd libsndfile ninja-build"
${
dockerfile_name
}
sed
-i
"
${
dockerfile_line
}
i RUN pip3.8 install distro"
${
dockerfile_name
}
sed
-i
"
${
dockerfile_line
}
i ENV LD_LIBRARY_PATH /opt/_internal/cpython-3.8.0/lib:/usr/local/ssl/lib:/opt/rh/devtoolset-2/root/usr/lib64:/opt/rh/devtoolset-2/root/usr/lib:/usr/local/lib64:/usr/local/lib:/usr/local/nvidia/lib:/usr/local/nvidia/lib64 "
${
dockerfile_name
}
sed
-i
"
${
dockerfile_line
}
i ENV PATH /opt/_internal/cpython-3.8.0/bin:/usr/local/ssl:/usr/local/gcc-12.2/bin:/usr/local/go/bin:/root/gopath/bin:/opt/rh/devtoolset-2/root/usr/bin:/usr/local/nvidia/bin:/usr/local/cuda/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/java/jdk1.8.0_192/bin "
${
dockerfile_name
}
sed
-i
"
${
dockerfile_line
}
i RUN rm -f /usr/bin/cc && ln -s /usr/local/gcc-12.2/bin/gcc /usr/bin/cc"
${
dockerfile_name
}
sed
-i
"
${
dockerfile_line
}
i RUN rm -f /usr/bin/g++ && ln -s /usr/local/gcc-12.2/bin/g++ /usr/bin/g++"
${
dockerfile_name
}
sed
-i
"
${
dockerfile_line
}
i RUN rm -f /usr/bin/c++ && ln -s /usr/local/gcc-12.2/bin/c++ /usr/bin/c++"
${
dockerfile_name
}
sed
-i
"
${
dockerfile_line
}
i RUN rm -f /usr/bin/gcc && ln -s /usr/local/gcc-12.2/bin/gcc /usr/bin/gcc"
${
dockerfile_name
}
sed
-i
"
${
dockerfile_line
}
i RUN ln -s /usr/lib64/libz.so /usr/local/lib/libz.so
\\
RUN ln -s /usr/local/lib/libnccl.so /usr/local/cuda/lib64/"
${
dockerfile_name
}
sed
-i
$"
${
dockerfile_line
}
i RUN wget --no-check-certificate -q https://paddle-edl.bj.bcebos.com/hadoop-2.7.7.tar.gz
\\
RUN tar -xzf hadoop-2.7.7.tar.gz && mv hadoop-2.7.7 /usr/local/"
${
dockerfile_name
}
sed
-i
"s#RUN bash build_scripts/build.sh#RUN bash build_scripts/install_gcc.sh gcc122
\n
RUN mv /usr/bin/cc /usr/bin/cc.bak
\&\&
ln -s /usr/local/gcc-12.2/bin/gcc /usr/bin/cc
\n
ENV PATH=/usr/local/gcc-12.2/bin:
\$
PATH
\n
RUN bash build_scripts/build.sh#g"
${
dockerfile_name
}
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录