Create a C program that will have as input an image split into pieces of n*n size(n is also input) and those pieces are shuffled. The program must return the initial image, with the pieces in the right order. The input image will be in ppm format(P3).
The program must be created for a CELL Arhitecture(1 PPU and 8 SPU) using:
-SIMD operations;
-double-buffering;
-interrupt mailboxes and events(no busy-waiting);
-minimum data between ppu and spu;
-each spu should be given a position in the shuffled image for which it must find the best match;
-use Manhattan distance;
Example of implementation: [login to view URL]
I would like it made simpler.