File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -248,6 +248,12 @@ function cmake_base() {
248
248
distibuted_flag=${WITH_DISTRIBUTE:- OFF}
249
249
gloo_flag=${distibuted_flag}
250
250
251
+ if [ " $CMD " != " assert_file_approvals" ]; then
252
+ python -m pip install distro
253
+ python ${PADDLE_ROOT} /tools/summary_env.py
254
+ bash ${PADDLE_ROOT} /tools/get_cpu_info.sh
255
+ fi
256
+
251
257
cat << EOF
252
258
========================================
253
259
Configuring cmake in /paddle/build ...
@@ -1910,10 +1916,6 @@ function main() {
1910
1916
local CMD=$1
1911
1917
local parallel_number=$2
1912
1918
init
1913
- if [ " $CMD " != " assert_file_approvals" ]; then
1914
- python ${PADDLE_ROOT} /tools/summary_env.py
1915
- bash ${PADDLE_ROOT} /tools/get_cpu_info.sh
1916
- fi
1917
1919
case $CMD in
1918
1920
build_only)
1919
1921
cmake_gen_and_build ${PYTHON_ABI:- " " } ${parallel_number}
You can’t perform that action at this time.
0 commit comments