Mandelbrot is a simple example of the master/slave parallel
programming technique, written in C.  It runs with one master process
and any number of slaves.  Since it is MIMD, it requires an application
schema (see myapp) to run it with mpirun.  The master writes the
computed image into a Sun rasterfile formatted file.  Try viewing
it with X11/xv.

Use hcc to compile the programs.

hcc -o master master.c -lmpi
hcc -o slave slave.c -lmpi
