LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   Porting Genering C Applications (MLucas) onto the PS3 (https://www.linuxquestions.org/questions/linux-hardware-18/porting-genering-c-applications-mlucas-onto-the-ps3-697115/)

flouran 01-13-2009 07:02 PM

Porting Genering C Applications (MLucas) onto the PS3
 
Hi guys,
I was wondering how I could port generic C applications, such as MLucas (which is a program similar to Prime95 and MPrime but is intended for non-x86 processors), onto the PS3. I was thinking of installing Yellow Dog Linux on the PS3 and then going from there. Do you know of any guides or have any experience with this sort of thing? I have created a thread on the GIMPS forum site and it is located at: http://www.mersenneforum.org/showthr...ight=GIMPS+PS3.

Thanks,
Flouran

P.S. If you have any questions regarding the Great Internet Mersenne Prime Search (GIMPS) goto: http://www.mersenne.org/ for more information.

MS3FGX 01-14-2009 12:33 PM

You would need to clarify what you mean by "port".

If you are just trying to compile some software to run on the PS3, then that is no problem (assuming the code is portable enough to run on PowerPC, and all dependencies are met).

But to actually get it to utilize the PS3's Cell architecture, you are talking about a massive amount of work. You couldn't even call it a port, you would have to basically start from scratch and design the software from the ground up to be aware of the Cell's SPU coprocessors.

The fact of the matter is, when running Linux, the PS3 is just a relatively average PowerPC machine. Linux runs in it's own VM on the PS3, and applications are only aware of the Cell's primary PPC CPU. Sony provides a library that you can use to make Linux applications aware of the SPU's, but you still need to write software around it; it isn't just a matter of linking generic programs to this library and have them suddenly become super-powered.

So in other words, if you can get MLucas compiled and running on the PS3, it is only going to run as fast as a basic single-core machine could run it. You wouldn't be getting anything near the theoretical power of the system, and would be better of putting together a basic dual-core machine for ~$150 than wasting a PS3's time running this software (you could watch a Blu-Ray on it...or something).


All times are GMT -5. The time now is 02:37 PM.