Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Installation of CellSDK [SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC
View previous topic :: View next topic  
Author Message
pmatos
Veteran
Veteran


Joined: 06 Jun 2003
Posts: 1246
Location: Eckental, Germany

PostPosted: Fri Mar 14, 2008 9:06 pm    Post subject: Installation of CellSDK [SOLVED] Reply with quote

Hi all,

Did anyone manage to install the Cell SDK on Gentoo PS3?

They seem to be downloadable from IBM as RPMs and not available in the cell overlay. So, what's the best way to work with these RPMs?

Cheers,

Paulo Matos


Last edited by pmatos on Wed Mar 19, 2008 11:41 am; edited 1 time in total
Back to top
View user's profile Send private message
corsair
Retired Dev
Retired Dev


Joined: 06 Oct 2003
Posts: 451
Location: Aachen, Germany

PostPosted: Sat Mar 15, 2008 8:28 pm    Post subject: Reply with quote

I cannot tell you how to use the RPMs.

Actually I'm not sure if the SDK would be of any use because you want to install it on a PS3. A PS3 can use the nativ available toolchain (compiler/libc/binutils) and you can also use libspe2 directly.

So my question is this: why do you want to install the SDK? It's primary for people developing for the Cell processor without owning one (or you don't want to use it for development).
Back to top
View user's profile Send private message
pmatos
Veteran
Veteran


Joined: 06 Jun 2003
Posts: 1246
Location: Eckental, Germany

PostPosted: Sat Mar 15, 2008 10:28 pm    Post subject: Reply with quote

corsair wrote:
I cannot tell you how to use the RPMs.

Actually I'm not sure if the SDK would be of any use because you want to install it on a PS3. A PS3 can use the nativ available toolchain (compiler/libc/binutils) and you can also use libspe2 directly.

So my question is this: why do you want to install the SDK? It's primary for people developing for the Cell processor without owning one (or you don't want to use it for development).


You're right, it doesn't make much sense but I want to extract the documentation inside it. I don't want the compiler/toolchain whatever. I want the documentation and I don't have any idea on where to get elsewhere.

If you do know about docs on development for the cell, let me know.
Back to top
View user's profile Send private message
corsair
Retired Dev
Retired Dev


Joined: 06 Oct 2003
Posts: 451
Location: Aachen, Germany

PostPosted: Wed Mar 19, 2008 11:11 am    Post subject: Reply with quote

sure I do 8)

http://dl.alphaworks.ibm.com/technologies/systemsim970/SystemSim_Installation.pdf
http://www-01.ibm.com/chips/techlib/techlib.nsf/techdocs/FC857AE550F7EB83872571A80061F788
http://www.embedded.com/columns/technicalinsights/188101999?_requestid=129148
http://www.redbooks.ibm.com/abstracts/sg247575.html

and of cause the Power ISA: http://www.power.org/resources/reading/

You could also use rpm2tgz or mc to extract the documentation out of the rpms. (You don't need to install rpms to get the content!)
Back to top
View user's profile Send private message
pmatos
Veteran
Veteran


Joined: 06 Jun 2003
Posts: 1246
Location: Eckental, Germany

PostPosted: Wed Mar 19, 2008 11:41 am    Post subject: Reply with quote

corsair wrote:
sure I do 8)

http://dl.alphaworks.ibm.com/technologies/systemsim970/SystemSim_Installation.pdf
http://www-01.ibm.com/chips/techlib/techlib.nsf/techdocs/FC857AE550F7EB83872571A80061F788
http://www.embedded.com/columns/technicalinsights/188101999?_requestid=129148
http://www.redbooks.ibm.com/abstracts/sg247575.html

and of cause the Power ISA: http://www.power.org/resources/reading/

You could also use rpm2tgz or mc to extract the documentation out of the rpms. (You don't need to install rpms to get the content!)


Great! Thank you very much for all the references and the info on rpms. For some reason, I never liked rpms.... maybe that's why I use gentoo!
Back to top
View user's profile Send private message
wobbly
Tux's lil' helper
Tux's lil' helper


Joined: 23 Apr 2003
Posts: 146

PostPosted: Fri Mar 28, 2008 4:06 pm    Post subject: Reply with quote

corsair wrote:
I cannot tell you how to use the RPMs.

Actually I'm not sure if the SDK would be of any use because you want to install it on a PS3. A PS3 can use the nativ available toolchain (compiler/libc/binutils) and you can also use libspe2 directly.

So my question is this: why do you want to install the SDK? It's primary for people developing for the Cell processor without owning one (or you don't want to use it for development).


You need the compilers modified for the PPE and SPE that are in the SDK. You don't need the simulator.
Back to top
View user's profile Send private message
corsair
Retired Dev
Retired Dev


Joined: 06 Oct 2003
Posts: 451
Location: Aachen, Germany

PostPosted: Sun Mar 30, 2008 1:07 pm    Post subject: Reply with quote

wobbly: what's your point?

AFAIK the PPE compiler is just a normal powerpc64 compiler, so you can use the standart compiler coming with every gentoo/ppc64 system. In this case powerpc64-unknown-linux-gnu-gcc.

If you want the SPU compiler you can use crossdev to create one:

Code:
crossdev -t spu


at which point do you need the SDK?
Back to top
View user's profile Send private message
Thadeu Penna
n00b
n00b


Joined: 27 Mar 2008
Posts: 1
Location: Niterói

PostPosted: Sun Mar 30, 2008 6:59 pm    Post subject: Reply with quote

and what about the IBM XLC compiler ? I have not found any benchtest.
Be easy on me. I am pretty new at Gentoo and PS3 (I am a Debian guy but I found Gentoo is far ahead on concerning PS3).

I recently got an approval budget for a 10 PS3 cluster for my Physics/Complex Systems group. Hence, performance is a must.
_________________
Thadeu Penna
Associate Professor of Physics
Universidade Federal Fluminense
Niterói - RJ - Brazil
Back to top
View user's profile Send private message
wobbly
Tux's lil' helper
Tux's lil' helper


Joined: 23 Apr 2003
Posts: 146

PostPosted: Mon Mar 31, 2008 12:58 am    Post subject: Reply with quote

corsair:

My understanding is that both the ppe and spe compilers that come with the SDK are specialized. For example, the ppe complier is modified to allow embedding of the spe program into the ppe program for later delivery of the spe program by the ppe. I still think you need the SDK to do cell development, at least the way we're thinking of doing it. I've been wrong before, though.
Back to top
View user's profile Send private message
corsair
Retired Dev
Retired Dev


Joined: 06 Oct 2003
Posts: 451
Location: Aachen, Germany

PostPosted: Tue Apr 08, 2008 2:23 pm    Post subject: Reply with quote

wobbly wrote:
corsair:

My understanding is that both the ppe and spe compilers that come with the SDK are specialized. For example, the ppe complier is modified to allow embedding of the spe program into the ppe program for later delivery of the spe program by the ppe. I still think you need the SDK to do cell development, at least the way we're thinking of doing it. I've been wrong before, though.


I think you want to read http://www.kernel.org/pub/linux/kernel/people/geoff/cell/CELL-Linux-CL_20080201-ADDON/doc/CellProgrammingPrimer.html . It explains quite good how to programm the ppe and especially the spe.

ppe and spe compilers in the sdk are no more specialized than a gcc build for the right CHOST. the xlc compiler is sure an argument for the sdk, but I don't use it because it's closed source.

-corsair
Back to top
View user's profile Send private message
wobbly
Tux's lil' helper
Tux's lil' helper


Joined: 23 Apr 2003
Posts: 146

PostPosted: Tue Apr 08, 2008 4:38 pm    Post subject: Reply with quote

While I agree that I need to read that, you still haven't convinced me that the SDK isn't needed. What about the ALF and DaCS libraries, for example?

Anyhow, I've gone ahead and installed the SDK on my x86 box. If that pans out over time, I'll install the necessary components on the PS3 as needed.
https://forums.gentoo.org/viewtopic-t-685982.html
Back to top
View user's profile Send private message
ModelCitizen
n00b
n00b


Joined: 31 Oct 2023
Posts: 2
Location: New Jersey

PostPosted: Mon Nov 13, 2023 2:33 am    Post subject: Reply with quote

If no one minds, I can offer some up-to-date info to this thread...
I am running PPC64 Gentoo on my PS3 currently (model CECHP-01, Firmware 3.15 DEX) with kernel 6.5.7. Have spent a good portion of time these past few days manually building a Cell SPU toolchain on this Gentoo installation. However, I just now heard of Gentoo's crossdev tool working with a SPU target. I can totally confirm thet crossdev works on the PS3 (ppc64) platform and it accepts SPU as a valid target. My PS3 is currently emerging the toolchain dependencies (binutils, gcc, newlib, etc). Will immediately attempt to build libspe2 (manually) after toolchain is done. Will post a follow-up message once build is complete and tested to let you all know how it goes. Developing on the PS3 from within a modern Linux environment will be a total trip. (I'm used to using a very old Fedora (Fedora 12) to develop on the PS3 cuz all the dev tools are packaged as RPMs and install there out-of-the-box. I may not have access to all the Cell/SPU libraries that I had on Fedora (BLAS, LAPACK, MASSv) but it will be a victory just to get a toolchain up and working - will worry about specialized libraries etc. later. Wish me luck!
My PS3 Linux website (now also running on Gentoo): http://www.ps3linux.net
My PS3 Linux Youtube - Like & Subscribe: https://www.youtube.com/channel/UCt1mQjAb5WNd9fGsDX-rc9A

UPDATE (2-13-24)
Just emerged latest crossdev and it looks like support for building an SPU toolchain has been removed. Makes sense as SPU support was broken last time I tried to build it (after my previous post). I knew it wouldn't work when I saw crossdev trying to use a gcc 13.x tarball for the build (gcc dropped support for the Cell's SPU cores back in gcc 10.x). Oh well I guess no one was maintaining that part of crossdev anymore :cry:
Anyway so now I'm back to configuring/building my own spu-gcc outside of portage (using gcc-8.3.0 with binutils-2.41 currently). Will see if I can maybe contribute an ebuild for the community once I get a reliable/repooducible configuration built & tested...

Happy hacking!
_________________
Obsessed with Linux on Playstation 3 (and the PS3's Cell CPU).

My console (web server):
Playstation 3 (CECHP-01) - Jailbroke & Downgraded
Firmware - Sony 3.15 DEX (debug)
Operating Systems: PowerPC Gentoo & Fedora
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC All times are GMT
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