[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [60191] trunk/blender/build_files/ build_environment/install_deps.sh: Somplify one-liner for CPU cores detection and make it aware of multi-CPU computers
Sergey Sharybin
sergey.vfx at gmail.com
Tue Sep 17 11:17:10 CEST 2013
Revision: 60191
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=60191
Author: nazgul
Date: 2013-09-17 09:17:10 +0000 (Tue, 17 Sep 2013)
Log Message:
-----------
Somplify one-liner for CPU cores detection and make it aware of multi-CPU computers
Modified Paths:
--------------
trunk/blender/build_files/build_environment/install_deps.sh
Modified: trunk/blender/build_files/build_environment/install_deps.sh
===================================================================
--- trunk/blender/build_files/build_environment/install_deps.sh 2013-09-17 08:58:12 UTC (rev 60190)
+++ trunk/blender/build_files/build_environment/install_deps.sh 2013-09-17 09:17:10 UTC (rev 60191)
@@ -48,7 +48,7 @@
# Try to link everything statically. Use this to produce portable versions of blender.
ALL_STATIC=false
-THREADS=`cat /proc/cpuinfo | grep siblings | uniq | sed -e "s/.*: *\(.*\)/\\1/"`
+THREADS=`cat /proc/cpuinfo | grep processor | wc -l`
if [ -z "$THREADS" ]; then
THREADS=1
fi
More information about the Bf-blender-cvs
mailing list