[Cbe-oss-dev] spe_cpu_info_get

Kazunori Asayama asayama at sm.sony.co.jp
Wed Dec 24 13:41:50 EST 2008


Masakazu Mokuno wrote:
> On Tue, 23 Dec 2008 08:57:28 +1100
> Jonathan Adamczewski <jadamcze at utas.edu.au> wrote:
> 
>> Why, when I run the following on a PS3, is the output 3?
>>
>> #include <stdio.h>
>> #include <libspe2.h>
>> int main () {
>>         printf( "%d\n", spe_cpu_info_get(SPE_COUNT_PHYSICAL_CPU_NODES, -1) );
>> }
> 
> Which version of libspe2 did you run?
> 
> The old version had the bug which miscounted cpus:
> 	http://ozlabs.org/pipermail/cbe-oss-dev/2008-May/004835.html

Indeed, it should be the bug you hit.

This bug was fixed in the revision 123 in the public repo, so could you
try the revision or later? For example, Fedora 9, 10 and Cell SDK 3.1
contain the revision 132.

Regards,
-- 
(ASAYAMA Kazunori
  (asayama at sm.sony.co.jp))
t



More information about the cbe-oss-dev mailing list