[Top][All Lists]
[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: |
Pádraig Brady |
Subject: |
Re: [PATCH] core-count: A new program to count the number of cpu cores |
Date: |
Sun, 01 Nov 2009 10:29:29 +0000 |
User-agent: |
Thunderbird 2.0.0.6 (X11/20071008) |
Giuseppe Scrivano wrote:
> Hi Pádraig,
>
>
> Pádraig Brady <address@hidden> writes:
>
>> I do wonder though whether it would be better
>> to have num_processors() try to return this by default?
>
> num_processors is going to be used by programs as nproc will be used by
> scripts; all considerations we made for nproc can be applied to
> num_processors.
Right. So in that case I would push the sched_getaffinity()
down into num_processors in gnulib.
Whether to drop the --installed (and consequently --available)
options to nproc, is debatable. If we leave it in then gnulib
would need a method to select between them. Let's leave it
selectable for now unless others think it's superfluous.
In any case num_processors should return the "available"
count by default.
cheers,
Pádraig.
- Re: [PATCH] core-count: A new program to count the number of cpu cores,
Pádraig Brady <=
- Re: [PATCH] core-count: A new program to count the number of cpu cores, Bruno Haible, 2009/11/01
- Re: [PATCH] core-count: A new program to count the number of cpu cores, Pádraig Brady, 2009/11/01
- Re: [PATCH] core-count: A new program to count the number of cpu cores, Bruno Haible, 2009/11/04
- Re: [PATCH] core-count: A new program to count the number of cpu cores, Giuseppe Scrivano, 2009/11/04
- Re: [PATCH] core-count: A new program to count the number of cpu cores, Paolo Bonzini, 2009/11/04
- Re: [PATCH] core-count: A new program to count the number of cpu cores, Pádraig Brady, 2009/11/04
- Re: [PATCH] core-count: A new program to count the number of cpu cores, Giuseppe Scrivano, 2009/11/04
- Re: [PATCH] core-count: A new program to count the number of cpu cores, Pádraig Brady, 2009/11/05
- Re: [PATCH] core-count: A new program to count the number of cpu cores, Giuseppe Scrivano, 2009/11/05