Please refer to background.
Please refer to parallelization.
Dependencies
- Parallel version requires mpi compliant library
- Accelerated version requires openacc
- Plotting requires gnuplot
- Creating gif requires imagemagick
To compile it is possible to use the command
make [version]
where [version]
can be either blank, mpi
or openacc
. This will produce the [version]multiplication.x
executable (the name will depend on which version it has been compiled).
The program will initialize the data and run the simulation. To run it is possible to use
make [version]run [prc=%d] [dim=%d] [iters=%d]
where [version]
as above, prc
number of processes, dim
dimension of the grid and iters
iterations of the simulation. This will produce, if necessary, the [version]multiplication.x
executable (the name will depend on how it has been compiled) and run it.
To test it is possible to pass the debug=yes
flag while making
make [version] debug=yes
and then run the [version]multiplication_debug.x
executable using mpirun
. It is also supported the command:
make [version]run debug=yes
which will compile (if necessary) and run immediately after.
Use: