| View previous topic :: View next topic |
| Author |
Message |
Volker
Joined: 05 Aug 2008 Posts: 1
|
Posted: Tue Aug 05, 2008 8:57 am Post subject: Multiprocessor coding |
|
|
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 |
|
 |
ps3fanboy
Joined: 06 Jul 2008 Posts: 66
|
|
| Back to top |
|
 |
sopordave
Joined: 15 May 2008 Posts: 10
|
Posted: Sun Sep 07, 2008 7:33 am Post subject: Re: Multiprocessor coding |
|
|
| 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 |
|
 |
Maximus32
Joined: 27 Aug 2007 Posts: 41
|
Posted: Sun Sep 07, 2008 10:10 pm Post subject: |
|
|
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 |
|
 |
ps3fanboy
Joined: 06 Jul 2008 Posts: 66
|
|
| Back to top |
|
 |
|