forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Can you use SPE's in user created programs on PS3 Linux?

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PS3 Linux Development
View previous topic :: View next topic  
Author Message
The Duud



Joined: 16 Dec 2007
Posts: 13

PostPosted: Sun Dec 16, 2007 6:44 pm    Post subject: Can you use SPE's in user created programs on PS3 Linux? Reply with quote

Is this possible?(the title)
_________________
Learning linux !
Back to top
View user's profile Send private message
d-range



Joined: 26 Oct 2007
Posts: 60

PostPosted: Sun Dec 16, 2007 8:56 pm    Post subject: Reply with quote

Yes
Back to top
View user's profile Send private message
The Duud



Joined: 16 Dec 2007
Posts: 13

PostPosted: Mon Dec 17, 2007 5:47 am    Post subject: Reply with quote

Would you have to be programming in PPC assembly or what language can interact with the SPE's
_________________
Learning linux !
Back to top
View user's profile Send private message
d-range



Joined: 26 Oct 2007
Posts: 60

PostPosted: Mon Dec 17, 2007 6:18 am    Post subject: Reply with quote

The Duud wrote:
Would you have to be programming in PPC assembly or what language can interact with the SPE's


C with SPU extensions or SPU assembly. You can read all about it here: http://www.ibm.com/developerworks/power/cell

Just google for things like this, this is all pretty basic stuff...
Back to top
View user's profile Send private message
IronPeter



Joined: 06 Aug 2007
Posts: 207

PostPosted: Mon Dec 17, 2007 6:36 am    Post subject: Reply with quote

Some basic examples are here:

http://www.kernel.org/pub/linux/kernel/people/geoff/cell/CELL-Linux-CL_20071023-ADDON/doc/CellProgrammingTutorial/BasicsOfSPEProgramming.html

All major PS3 llinux distros have spu-gcc compiler and libspe runtime included.

The spe programming language is primarily C/C++. There are assembler intrinsics for high-perfomance code. If you want to write good spe code you must study this doc: http://www.ief.u-psud.fr/~lacas/ComputerArchitecture/SPU_language_extensions_v20.pdf
Back to top
View user's profile Send private message Send e-mail Visit poster's website
The Duud



Joined: 16 Dec 2007
Posts: 13

PostPosted: Mon Dec 17, 2007 8:39 am    Post subject: Reply with quote

Thanks a lot everyone. I do want to start programming the SPU's but... Does anyone have an idea once the ps3 fades away, would me SPU programming knowledge have any use at all? Will the ps4 use cell?
_________________
Learning linux !
Back to top
View user's profile Send private message
Jim



Joined: 02 Jul 2005
Posts: 487
Location: Sydney

PostPosted: Mon Dec 17, 2007 9:47 am    Post subject: Reply with quote

Since we seem to have hit some local peak in CPU core clock speeds and the temporary fix seems to be to add more cores, then it certainly won't hurt to learn how to program SPU. More importantly though it will change the way you think about algorithms for processing massive amounts of data.

Jim
_________________
http://www.dbfinteractive.com
Back to top
View user's profile Send private message Visit poster's website
The Duud



Joined: 16 Dec 2007
Posts: 13

PostPosted: Mon Dec 17, 2007 10:05 am    Post subject: Reply with quote

Thanks Jim... Im going to do some more research on linux/spu related things.
_________________
Learning linux !
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PS3 Linux Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group