On Wed, 2010-09-15 at 17:06 +0200, Thomas Pornin wrote:
> Hello all,
> 
> gcc38 is documented to be a PS3, with a 3.2 Ghz Cell processor (PowerPC
> architecture). Every (integer) code I run on it seems "sluggish". This
> covers both my own C and assembly code, and, for instance, OpenSSL:
> "openssl speed sha256" reports a top hashing speed of about 52 MB/s, as
> if the CPU was running at 1 GHz or so.
> 
> However, the kernel reports that the processor should be able to
> run at 3.2 GHz. Maybe there is a problem with the automatic
> frequency downscaling (the frequency failing to go up when the CPU
> is not idle) ? Or is there something I utterly misunderstood ?

To run code on the 3.2 GHz SPU you need to invoke a few tools, see
below, is it what you're doing?

Sincerely,

Laurent

gue...@ps3gccfarm:~$ cd /home/guerby/example
gue...@ps3gccfarm:~/example$ spu-gcc t.c -o spu-t
gue...@ps3gccfarm:~/example$ embedspu simple_spu spu-t t_embed.o
gue...@ps3gccfarm:~/example$ gcc -o tt tt.c -lspe2 t_embed.o
gue...@ps3gccfarm:~/example$ ./tt
hello Cell (0x10013008)
hello Cell (0x10013280)
hello Cell (0x10013518)
hello Cell (0x10013790)
hello Cell (0x10013a08)
hello Cell (0x10013c80)

The program has successfully executed.
gue...@ps3gccfarm:~/example$ 




_______________________________________________
Gcc-cfarm-users mailing list
Gcc-cfarm-users@gna.org
https://mail.gna.org/listinfo/gcc-cfarm-users

Reply via email to