On Oct 21, 2005, at 4:11 PM, Andreas Schwab wrote:
Shantonu Sen <[EMAIL PROTECTED]> writes:
Or "getconf _NPROCESSORS_ONLN" (the POSIX way).
On darwin:
$ getconf _NPROCESSORS_ONLN
undefined
:-(
Shantonu Sen <[EMAIL PROTECTED]> writes:
> if sysctl is present in the path, "sysctl hw.ncpu" might be useful as
> well. Seems to work on FreeBSD and Darwin, assuming you don't require
> granularity of whether those CPUs are HTT or not.
Or "getconf _NPROCESSORS_ONLN" (the POSIX way).
Andreas
if sysctl is present in the path, "sysctl hw.ncpu" might be useful as
well. Seems to work on FreeBSD and Darwin, assuming you don't require
granularity of whether those CPUs are HTT or not.
Shantonu
On Oct 21, 2005, at 12:27 PM, Janis Johnson wrote:
On Fri, Oct 21, 2005 at 03:14:47PM -0400
On Fri, Oct 21, 2005 at 03:14:47PM -0400, Andrew Pinski wrote:
>
> On Oct 21, 2005, at 3:11 PM, Joseph S. Myers wrote:
>
> >The use of
> >
> >ncpu=`grep '^processor' /proc/cpuinfo | wc -l`
> >
> >seems Linux-specific; this looks like it should be in gcc-svn-env as a
> >default for the user to cus
On Oct 21, 2005, at 3:11 PM, Joseph S. Myers wrote:
The use of
ncpu=`grep '^processor' /proc/cpuinfo | wc -l`
seems Linux-specific; this looks like it should be in gcc-svn-env as a
default for the user to customise, rather than in bin/gcc-build-*.
I don't think it is Linux specific, it wor
The use of
ncpu=`grep '^processor' /proc/cpuinfo | wc -l`
seems Linux-specific; this looks like it should be in gcc-svn-env as a
default for the user to customise, rather than in bin/gcc-build-*.
--
Joseph S. Myers http://www.srcf.ucam.org/~jsm28/gcc/
[EMAIL PROTECTED] (perso