Open MPI logo

PLPA Users' Mailing List Archives

  |   Home   |   Support   |   FAQ   |   all PLPA Users mailing list

Subject: Re: [PLPA users] [PATCH] use readdir on /sys/devices/system/cpu to get number of processors
From: Jeff Squyres (jsquyres_at_[hidden])
Date: 2008-03-21 15:45:17


Thanks; committed with minor style changes in r172.

On Mar 21, 2008, at 3:00 PM, Bert Wesarg wrote:
> Unfortunately the code wasn't that ready for holes in the processor id
> range that I thought, so here is an updated patch that probably
> address all sites.
>
> Bert
>
> On Fri, Mar 21, 2008 at 12:50 PM, Bert Wesarg
> <bert.wesarg_at_[hidden]> wrote:
>> To support holes in the logical processor IDs one can either try to
>> access() all PLPA_BITMASK_CPU_MAX processors and continue on failure,
>> or use readdir() to scan all entries of format "cpu%d". This patch
>> does the latter.
>>
>> Bert
>>
>> ---
>>
> <use-readdir-for-scanning-
> cpus.patch>_______________________________________________
> plpa-users mailing list
> plpa-users_at_[hidden]
> http://www.open-mpi.org/mailman/listinfo.cgi/plpa-users

-- 
Jeff Squyres
Cisco Systems