[Cbe-oss-dev] spe_cpu_info_get

Masakazu Mokuno mokuno at sm.sony.co.jp
Wed Dec 24 13:14:46 EST 2008


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


-- 
Masakazu Mokuno




More information about the cbe-oss-dev mailing list