bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] core-count: A new program to count the number of cpu cores


From: Ludovic Courtès
Subject: Re: [PATCH] core-count: A new program to count the number of cpu cores
Date: Thu, 05 Nov 2009 17:35:39 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux)

Hi,

Giuseppe Scrivano <address@hidden> writes:

> +/* Compute the number of available processors.  Return 0 on error.  */
> +
> +static u_long
> +nproc_available ()

FWIW the hwloc library (http://www.open-mpi.org/projects/hwloc/) has
code to do that portably on a number of platforms, using either
sysconf(3) or platform-specific techniques.

Thanks,
Ludo’.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]