We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ad6a51f commit 0a8b69fCopy full SHA for 0a8b69f
paddle/scripts/paddle_build.sh
@@ -292,13 +292,17 @@ function check_style() {
292
#=================================================
293
294
function build_base() {
295
- parallel_number=`nproc`
296
- if [[ "$1" != "" ]]; then
+ if [ "$SYSTEM" == "Linux" ];then
+ parallel_number=`nproc`
297
+ else
298
+ parallel_number=8
299
+ fi
300
+ if [ "$1" != "" ]; then
301
parallel_number=$1
302
fi
303
make clean
304
make -j ${parallel_number}
- make install -j `nproc`
305
+ make install -j ${parallel_number}
306
}
307
308
0 commit comments