Re: --with-parallelism default is actually 1 core?

2015-06-07 Thread Norbert Thiebaud
On Sun, Jun 7, 2015 at 9:20 AM, Robinson Tryon
bishop.robin...@gmail.com wrote:
 Per the docs:
 https://wiki.documentfoundation.org/Development/BuildingOnLinux#--with-parallelism

 --with-parallelism already defaults to the the number of cores/cpus
 on your system, unless you use --enable-icecream - then to 10.

 I tried configuring a VM with 12 cores, and then used ./autogen.sh
 --with-parallelism

the 'default' means not specifying it on the autogen.sh at _all_
(although in this case that is the same)

The 'default' works as indicated.
you can check the value in config_host_mk

The relevant code in configure.ac is:

if test -n $with_parallelism -a $with_parallelism != yes; then
if test $with_parallelism = no; then
PARALLELISM=0
else
PARALLELISM=$with_parallelism
fi
else
if test $enable_icecream = yes; then
PARALLELISM=10
else
case `uname -s` in

Darwin|FreeBSD|NetBSD|OpenBSD)
PARALLELISM=`sysctl -n hw.ncpu`
;;

Linux)
PARALLELISM=`getconf _NPROCESSORS_ONLN`
;;
# what else than above does profit here *and* has /proc?
*)
PARALLELISM=`grep $'^processor\t*:' /proc/cpuinfo | wc -l`
;;
esac

# If we hit the catch-all case, but /proc/cpuinfo doesn't
exist or has an
# unexpected format, 'wc -l' will have returned 0 (and we
won't use -j at all).
fi
fi



so check your  uname -s and getconf _NPROCESSOR_ONLN  or/and /proc/cpuinfo

Norbert
___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


--with-parallelism default is actually 1 core?

2015-06-07 Thread Robinson Tryon
Per the docs:
https://wiki.documentfoundation.org/Development/BuildingOnLinux#--with-parallelism

--with-parallelism already defaults to the the number of cores/cpus
on your system, unless you use --enable-icecream - then to 10.

I tried configuring a VM with 12 cores, and then used ./autogen.sh
--with-parallelism and still only had 1 or (maybe?) 2 cores being
used. When I changed that to ./autogen.sh --with-parallelism=12 my
machine started chugging along like a fully-loaded freight train.

Is there something special about my setup, or?

Thanks,
--R

-- 
Robinson Tryon
QA Engineer - The Document Foundation
LibreOffice Community Outreach Herald
qu...@libreoffice.org
802-379-9482 | IRC: colonelqubit on Freenode
___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice