未验证 提交 40b2a034 编写于 作者: T tianshuo78520a 提交者: GitHub

[cherry-pick 32784] Fix distro (#33638)

cherry-pick 32784
上级 8e163f92
......@@ -248,6 +248,12 @@ function cmake_base() {
distibuted_flag=${WITH_DISTRIBUTE:-OFF}
gloo_flag=${distibuted_flag}
if [ "$CMD" != "assert_file_approvals" ];then
python -m pip install distro
python ${PADDLE_ROOT}/tools/summary_env.py
bash ${PADDLE_ROOT}/tools/get_cpu_info.sh
fi
cat <<EOF
========================================
Configuring cmake in /paddle/build ...
......@@ -1910,10 +1916,6 @@ function main() {
local CMD=$1
local parallel_number=$2
init
if [ "$CMD" != "assert_file_approvals" ];then
python ${PADDLE_ROOT}/tools/summary_env.py
bash ${PADDLE_ROOT}/tools/get_cpu_info.sh
fi
case $CMD in
build_only)
cmake_gen_and_build ${PYTHON_ABI:-""} ${parallel_number}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册