Sharks & Fish
Here is a brief description of all six Sharks and Fish problems.
For assignment 3, only the first and second problems are relevant.
The following software for these problems exists. Each can be seen by
clicking on the x's below. In each case you will see a directory of
source code for each problem. In the case of the Matlab code, the
routine fishXinit.m is an initialization program, to be run first to
set up the problem (where X varies from 1 to 5), and fishX.m is the
main Matlab solution routine.
Language Problem number
1 2 3 4 5 6
Matlab x x x x x
HPF x x
MPI x x x
Split-C x x
Sun Threads x x
Because the display code can be rather complicated and because you don't
need to worry about it for this assignment, we also have versions
of some of the codes with the functions for displaying fish in a separate
file from the main code.
Language Problem number
1 2 3 4 5 6
Matlab
HPF
MPI x x
Split-C x x
Sun Threads
HPF code for fish1 that includes timers is here
An optimized version of the split-c code is here