Re: Does Mysql / Python Benefit From The Cell Processor?
Posted: 27 Jan 2009, 06:36
jintal wrote:How about this? http://www.linuxjournal.com/article/8497
I'm thinking... write short PPE and SPE C code, wherein the SPE one has the Python interpreter embedded in it. Any good?
No - that probably won't work.
I had to read thru that article carefully. The way I understand it, what the author is doing is linking the standard Python interpreter into the C program. So - the python interpreter would be the stock PPE interpreter, not a customized SPE interpreter.
So - unless you re-compile the Python interpreter to run on the SPE - this won't work. And - based on the SPEs instruction set, it's highly unlikely it will compile.
That's the next question you should look at - how complete is SPE C/C++? My guess is that it's a subset of standard C/C++.
And - even if it does work - the python interpreter might be too large to run in an SPE memory space. According to Wikipedia: "With the current generation of the Cell, each SPE contains a 256 KiB embedded SRAM for instruction and data"
So - 256 Kb per SPE - the code has to be pretty tight to fit in there.
You might want to check out CorePy, like you suggested earlier:
http://www.corepy.org/wiki/index.php?ti ... y_Cell/SPU
Cheers,
Paul