[Cbe-oss-dev] spe_cpu_info_get

Geoff Levand geoffrey.levand at am.sony.com
Tue Dec 23 11:21:49 EST 2008


Jonathan Adamczewski 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) );
> }

Shows 1 for me.  Maybe you have a 'special' unit with three BE's?

Are you building that with -m32 or -m64?

What does this give you?

        printf( "%d\n", spe_cpu_info_get(SPE_COUNT_PHYSICAL_SPES, -1) );
        printf( "%d\n", spe_cpu_info_get(SPE_COUNT_PHYSICAL_SPES, 2) );

-Geoff




More information about the cbe-oss-dev mailing list