未验证 提交 535a6e92 编写于 作者: C Chen Weihang 提交者: GitHub

Merge pull request #12509 from JiabinYang/scripts0802

fix the paddle script causes 'command not found' error'
......@@ -54,7 +54,7 @@ function cpu_config() {
if [ $platform == "Linux" ]; then
ht=`lscpu |grep "per core"|awk -F':' '{print $2}'|xargs`
elif [ $platform == "Darwin" ]; then
if [`sysctl -n hw.physicalcpu` -eq `sysctl -n hw.logicalcpu`]; then
if [ `sysctl -n hw.physicalcpu` -eq `sysctl -n hw.logicalcpu` ]; then
# HT is OFF
ht=1
fi
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册