I committed Ain's code into cg folder and started integrating it, but it
needs a bit more work. The needed parts are:
* Write makefile to compile Ain's spu c and project ppu c++ code
separately. Probably make spu code embedded in executable.
* Write MatrixIO and VectorIO implementations for text files.
* Make Ain's code compilable and verify it runs
* Write testcases for Ain's code
MatrixIO and VectorIO things are totally separate from Ain's thing,
other are more tight together. So who wants to do what?
Toomas
I developed the thing further until I got the whole thing compiling
under Eclipse with custom makefile. I could also run it in simulator
using Eclipse. Current stage is that Ain's code yells "segmentation
fault", but that is probably because it gets null pointers from not
implemented matrix and vector IO.
About compiling the code. From command line you can now type "make all"
and from Eclipse you can open Makefile view and doubleclick "all".
About running the code. Create local Cell SIM and run the code there. If
you want to use --solver ains flag, you also must add cg_spu.elf and
cg_spu2.elf to upload list in Cell SIM configuration. This can be done
under Synchronisation tab.
For those who develop with Eclipse, I committed eclipse project files
now also. I don't know if they can be shared like that, but one can try.
Toomas Laasik wrote:
> Hi,
> On Saturday I agreed with Ain regarding matrix and vector structures. I
> believe they are good enough now and we can start working with these.
>
> I committed Ain's code into cg folder and started integrating it, but it
> needs a bit more work. The needed parts are:
> * Write makefile to compile Ain's spu c and project ppu c++ code
> separately. Probably make spu code embedded in executable.
>
Done. Maybe could be done better, but current one is usable in Eclipse
Standard Make C++ Project. Only embedding SPU code into PPU is not done.
> * Write MatrixIO and VectorIO implementations for text files.
>
Who wants to do this?
> * Make Ain's code compilable and verify it runs
>
Compiles now, but won't run before IO is implemented. Maybe it won't run
even after that, but we will find out after IO thing is done.
> * Write testcases for Ain's code
>
No done at the moment.
> MatrixIO and VectorIO things are totally separate from Ain's thing,
> other are more tight together. So who wants to do what?
>
> Toomas
>
>
> >
>
Toomas
Hello I am doing right now a research on the ppe/spe profilers. Next
week I would like to make an example how to utilize a SPE for 100%
(effective DMA use) that will be very helpful for my research work and
the lab. Probably I cannot take the work you offered.
Vladimir