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 

Multiprocessor coding

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



Joined: 05 Aug 2008
Posts: 1

PostPosted: Tue Aug 05, 2008 8:57 am    Post subject: Multiprocessor coding Reply with quote

Hi all,

i currently think about buying a ps3, because i read that it is a multiple core processor. But before buying one, i want to be sure.

So can anybody tell me how many threads the ps3 can have parallel if you code with:
- OpenMP (with the gcc compiler)
- Qt (Qt 4.4 has a new feature called "concurrent".)

thank you for your answer.

Volker

PS:
Please write if you don't know how to check it, but if you know how to compile with gcc and/or Qt, then i can write a small code so you can check it.
Back to top
View user's profile Send private message
ps3fanboy



Joined: 06 Jul 2008
Posts: 66

PostPosted: Thu Aug 07, 2008 5:30 am    Post subject: Reply with quote

i don't know about openmp and qt...
on cell you usually work with spe_contexts. and you can have many of those.
_________________
http://playstation3-homebrew-multimedia.blogspot.com/
Back to top
View user's profile Send private message
sopordave



Joined: 15 May 2008
Posts: 10

PostPosted: Sun Sep 07, 2008 7:33 am    Post subject: Re: Multiprocessor coding Reply with quote

Volker wrote:
So can anybody tell me how many threads the ps3 can have parallel if you code with:
- OpenMP (with the gcc compiler)
- Qt (Qt 4.4 has a new feature called "concurrent".)

thank you for your answer.

Volker

PS:
Please write if you don't know how to check it, but if you know how to compile with gcc and/or Qt, then i can write a small code so you can check it.


Someone correct me if I am mistaken, but you will only be able to have two traditional threads, the second of which is just a context, and has no real processing power behind it. The multi-core aspect of the Cell lies in its SPUs, which are only accessible through a special library. I haven't actually looked, but I doubt that OpenMP and Qt support it.
Back to top
View user's profile Send private message
Maximus32



Joined: 27 Aug 2007
Posts: 41

PostPosted: Sun Sep 07, 2008 10:10 pm    Post subject: Reply with quote

The Cell processor in the PS3 has:
- 1 "Power Processing Element" or PPE
- 7 "Synergistic Processor Elements" or SPE's.

The PPE is like a normal CPU, it will run your main code. The SPE's are not. They can not access the main memory, but run from their own cache. Code/Data needs to be transferred by DMA. This approach is different form traditional multi-core CPU's and can be a lot faster, if used the right way.

If you want to code the SPE's, you can use the SDK provided with most linux distributions for the PS3.

Please have a look at:
http://www-01.ibm.com/chips/techlib/techlib.nsf/techdocs/FC857AE550F7EB83872571A80061F788/$file/CBE_Programming_Tutorial_v3.0.pdf
Back to top
View user's profile Send private message Visit poster's website
ps3fanboy



Joined: 06 Jul 2008
Posts: 66

PostPosted: Mon Sep 08, 2008 2:05 am    Post subject: Reply with quote

the mars framework from sony makes it also easier to parallelize the code and use the spes.
_________________
http://playstation3-homebrew-multimedia.blogspot.com/
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