[Cbe-oss-dev] spe_cpu_info_get
Jonathan Adamczewski
jadamcze at utas.edu.au
Tue Dec 23 11:35:05 EST 2008
Geoff Levand wrote:
> 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?
-m32, but -m64 yields that same output.
>
> 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) );
6
2
j.
More information about the cbe-oss-dev
mailing list