Where is Embedspu

YDL running on the Sony Playstation 3

Moderator: billb

Where is Embedspu

Postby cpeckham » 09 Nov 2008, 17:07

I can't find embedspu on YDL 6.0.

My assumption was that it was installed as part of the install but I can not find it. Libraries are there and both SPU and PPC compilers are working.

Any ideas??

Thanks,

Clarence
cpeckham
ydl newbie
ydl newbie
 
Posts: 3
Joined: 08 Nov 2008, 19:33

Re: Where is Embedspu

Postby billb » 09 Nov 2008, 20:29

On my system it's located in /usr/bin and called ppu-embedspu:

Code: Select all
[bill@localhost ~]$ locate embedspu
/usr/bin/ppu-embedspu
/usr/bin/ppu32-embedspu


I'm not sure what provides the two scripts, though ... yum whatprovides ppu-embedspu didn't turn up anything. Not sure if they're included with YDL 6 or if I got them from installing IBM Cell SDK ... I can post them for you, if needed.
PS3 60GB [CECHA01], FW 3.15, YDL 6.2, Samsung T260HD @ 1920x1200
Powermac G4 1.25 GHz x2, 2 GB RAM, YDL 6.2
User avatar
billb
Site Admin
Site Admin
 
Posts: 5522
Joined: 24 May 2007, 20:30
Location: Eastern NC, USA

Re: Where is Embedspu

Postby cpeckham » 09 Nov 2008, 23:54

Bill,

On my system after a fresh install of YDL 6.0 PPU-embedspu is not there so I would appreciate a listing of the shell scripts.

Thanks,

clarence
cpeckham
ydl newbie
ydl newbie
 
Posts: 3
Joined: 08 Nov 2008, 19:33

Re: Where is Embedspu

Postby billb » 10 Nov 2008, 00:20

I found it:

[bill@localhost ppc]$ rpm -ql ppu-binutils
/usr
/usr/bin
/usr/bin/ppu-addr2line
/usr/bin/ppu-ar
/usr/bin/ppu-as
/usr/bin/ppu-c++filt
/usr/bin/ppu-embedspu
/usr/bin/ppu-ld
/usr/bin/ppu-nm
/usr/bin/ppu-objcopy
/usr/bin/ppu-objdump
/usr/bin/ppu-ranlib
/usr/bin/ppu-readelf
/usr/bin/ppu-size
/usr/bin/ppu-strings
/usr/bin/ppu-strip
/usr/bin/ppu32-as
/usr/bin/ppu32-embedspu
/usr/bin/ppu32-ld
/usr/powerpc64-linux
/usr/powerpc64-linux/bin
/usr/powerpc64-linux/bin/ar
/usr/powerpc64-linux/bin/as
/usr/powerpc64-linux/bin/ld
/usr/powerpc64-linux/bin/nm
/usr/powerpc64-linux/bin/objdump
/usr/powerpc64-linux/bin/ranlib
/usr/powerpc64-linux/bin/strip
/usr/powerpc64-linux/include
/usr/powerpc64-linux/include/ansidecl.h
/usr/powerpc64-linux/include/bfd.h
/usr/powerpc64-linux/include/bfdlink.h
/usr/powerpc64-linux/include/dis-asm.h
/usr/powerpc64-linux/include/symcat.h
/usr/powerpc64-linux/lib
/usr/powerpc64-linux/lib/ldscripts
/usr/powerpc64-linux/lib/ldscripts/elf32_spu.x
/usr/powerpc64-linux/lib/ldscripts/elf32_spu.xbn
/usr/powerpc64-linux/lib/ldscripts/elf32_spu.xc
/usr/powerpc64-linux/lib/ldscripts/elf32_spu.xn
/usr/powerpc64-linux/lib/ldscripts/elf32_spu.xr
/usr/powerpc64-linux/lib/ldscripts/elf32_spu.xu
/usr/powerpc64-linux/lib/ldscripts/elf32_spu.xw
/usr/powerpc64-linux/lib/ldscripts/elf32ppc.x
/usr/powerpc64-linux/lib/ldscripts/elf32ppc.xbn
/usr/powerpc64-linux/lib/ldscripts/elf32ppc.xc
/usr/powerpc64-linux/lib/ldscripts/elf32ppc.xd
/usr/powerpc64-linux/lib/ldscripts/elf32ppc.xdc
/usr/powerpc64-linux/lib/ldscripts/elf32ppc.xdw
/usr/powerpc64-linux/lib/ldscripts/elf32ppc.xn
/usr/powerpc64-linux/lib/ldscripts/elf32ppc.xr
/usr/powerpc64-linux/lib/ldscripts/elf32ppc.xs
/usr/powerpc64-linux/lib/ldscripts/elf32ppc.xsc
/usr/powerpc64-linux/lib/ldscripts/elf32ppc.xsw
/usr/powerpc64-linux/lib/ldscripts/elf32ppc.xu
/usr/powerpc64-linux/lib/ldscripts/elf32ppc.xw
/usr/powerpc64-linux/lib/ldscripts/elf32ppclinux.x
/usr/powerpc64-linux/lib/ldscripts/elf32ppclinux.xbn
/usr/powerpc64-linux/lib/ldscripts/elf32ppclinux.xc
/usr/powerpc64-linux/lib/ldscripts/elf32ppclinux.xd
/usr/powerpc64-linux/lib/ldscripts/elf32ppclinux.xdc
/usr/powerpc64-linux/lib/ldscripts/elf32ppclinux.xdw
/usr/powerpc64-linux/lib/ldscripts/elf32ppclinux.xn
/usr/powerpc64-linux/lib/ldscripts/elf32ppclinux.xr
/usr/powerpc64-linux/lib/ldscripts/elf32ppclinux.xs
/usr/powerpc64-linux/lib/ldscripts/elf32ppclinux.xsc
/usr/powerpc64-linux/lib/ldscripts/elf32ppclinux.xsw
/usr/powerpc64-linux/lib/ldscripts/elf32ppclinux.xu
/usr/powerpc64-linux/lib/ldscripts/elf32ppclinux.xw
/usr/powerpc64-linux/lib/ldscripts/elf32ppcsim.x
/usr/powerpc64-linux/lib/ldscripts/elf32ppcsim.xbn
/usr/powerpc64-linux/lib/ldscripts/elf32ppcsim.xc
/usr/powerpc64-linux/lib/ldscripts/elf32ppcsim.xd
/usr/powerpc64-linux/lib/ldscripts/elf32ppcsim.xdc
/usr/powerpc64-linux/lib/ldscripts/elf32ppcsim.xdw
/usr/powerpc64-linux/lib/ldscripts/elf32ppcsim.xn
/usr/powerpc64-linux/lib/ldscripts/elf32ppcsim.xr
/usr/powerpc64-linux/lib/ldscripts/elf32ppcsim.xs
/usr/powerpc64-linux/lib/ldscripts/elf32ppcsim.xsc
/usr/powerpc64-linux/lib/ldscripts/elf32ppcsim.xsw
/usr/powerpc64-linux/lib/ldscripts/elf32ppcsim.xu
/usr/powerpc64-linux/lib/ldscripts/elf32ppcsim.xw
/usr/powerpc64-linux/lib/ldscripts/elf64ppc.x
/usr/powerpc64-linux/lib/ldscripts/elf64ppc.xbn
/usr/powerpc64-linux/lib/ldscripts/elf64ppc.xc
/usr/powerpc64-linux/lib/ldscripts/elf64ppc.xd
/usr/powerpc64-linux/lib/ldscripts/elf64ppc.xdc
/usr/powerpc64-linux/lib/ldscripts/elf64ppc.xdw
/usr/powerpc64-linux/lib/ldscripts/elf64ppc.xn
/usr/powerpc64-linux/lib/ldscripts/elf64ppc.xr
/usr/powerpc64-linux/lib/ldscripts/elf64ppc.xs
/usr/powerpc64-linux/lib/ldscripts/elf64ppc.xsc
/usr/powerpc64-linux/lib/ldscripts/elf64ppc.xsw
/usr/powerpc64-linux/lib/ldscripts/elf64ppc.xu
/usr/powerpc64-linux/lib/ldscripts/elf64ppc.xw
/usr/powerpc64-linux/lib/libbfd.a
/usr/powerpc64-linux/lib/libopcodes.a
/usr/share/man
/usr/share/man/man1
/usr/share/man/man1/ppu-addr2line.1.gz
/usr/share/man/man1/ppu-ar.1.gz
/usr/share/man/man1/ppu-as.1.gz
/usr/share/man/man1/ppu-c++filt.1.gz
/usr/share/man/man1/ppu-ld.1.gz
/usr/share/man/man1/ppu-nm.1.gz
/usr/share/man/man1/ppu-objcopy.1.gz
/usr/share/man/man1/ppu-objdump.1.gz
/usr/share/man/man1/ppu-ranlib.1.gz
/usr/share/man/man1/ppu-readelf.1.gz
/usr/share/man/man1/ppu-size.1.gz
/usr/share/man/man1/ppu-strings.1.gz
/usr/share/man/man1/ppu-strip.1.gz


You need to install ppu-binutils and probably spu-binutils:

Code: Select all
yum install ppu-binutils spu-binutils

(both are included in yellowdog-base -- one of the default repos)

And if what you're trying to compile is looking for embedspu instead of ppu-embedspu, you might need to specify the location for it, rename it, or create a dynamic link for embedspu to ppu-embedspu. Also, you might want to look at the contents of ppu32-embedspu to see what it's doing -- basically running ppu-embedspu with -m32 specified.
PS3 60GB [CECHA01], FW 3.15, YDL 6.2, Samsung T260HD @ 1920x1200
Powermac G4 1.25 GHz x2, 2 GB RAM, YDL 6.2
User avatar
billb
Site Admin
Site Admin
 
Posts: 5522
Joined: 24 May 2007, 20:30
Location: Eastern NC, USA

Re: Where is Embedspu

Postby cpeckham » 11 Nov 2008, 21:24

Ok I got it running and now the distance sample works fine.

Have you tried the 3.1 SDK yet???

Thanks for the help.

Clarence
cpeckham
ydl newbie
ydl newbie
 
Posts: 3
Joined: 08 Nov 2008, 19:33

Re: Where is Embedspu

Postby billb » 11 Nov 2008, 21:41

cpeckham wrote:Ok I got it running and now the distance sample works fine.

Have you tried the 3.1 SDK yet???


Good -- and no, I haven't tried the 3.1 SDK. Another user mentions installing it in this post:

viewtopic.php?p=20853#p20853
PS3 60GB [CECHA01], FW 3.15, YDL 6.2, Samsung T260HD @ 1920x1200
Powermac G4 1.25 GHz x2, 2 GB RAM, YDL 6.2
User avatar
billb
Site Admin
Site Admin
 
Posts: 5522
Joined: 24 May 2007, 20:30
Location: Eastern NC, USA

Re: Where is Embedspu

Postby Gogeden » 28 Feb 2010, 14:11

I am having some difficulty with this same example. I am up to the part where you have to compile the spe program and the ppu program together (The step before you run the program) and I get this:

Code: Select all
[root@localhost Desktop]# ppu-gcc ppe_distance.c spe_distance_csf.o -lspe -o cheese
In file included from /usr/include/features.h:352,
                 from /usr/include/stdio.h:28,
                 from ppe_distance.c:1:
/usr/include/gnu/stubs.h:9:27: error: gnu/stubs-64.h: No such file or directory
ppe_distance.c:2:20: error: libspe.h: No such file or directory
ppe_distance.c:6: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'calculate_distance_handle'
ppe_distance.c: In function 'main':
ppe_distance.c:27: error: 'speid_t' undeclared (first use in this function)
ppe_distance.c:27: error: (Each undeclared identifier is reported only once
ppe_distance.c:27: error: for each function it appears in.)
ppe_distance.c:27: error: expected ';' before 'spe_id'
ppe_distance.c:30: error: 'spe_id' undeclared (first use in this function)



Am I using the wrong compiler or something?


Thank you! ^_^
Gogeden
ydl lover
ydl lover
 
Posts: 74
Joined: 31 Jul 2009, 07:01


Return to Playstation 3

Who is online

Users browsing this forum: No registered users and 12 guests