Commit 98b3ac44 authored by Thomas Steinreiter's avatar Thomas Steinreiter
Browse files

formatting

parent 71c599d3
...@@ -3,11 +3,11 @@ ...@@ -3,11 +3,11 @@
## Description ## Description
*Wireworld* is a simple cellular automaton, similar to the Game of Life. The game Area is a 2-Dimensional Rectangle of cells. Each generation a set of rules are applied which define the next state of the cell depending on the neighboring cells. *Wireworld* is a simple cellular automaton, similar to the Game of Life. The game area is a 2-dimensional rectangle of cells. Each generation a set of rules are applied which define the next state of the cell depending on the neighboring cells.
This example shows how to distribute the simulation of Wireworld across multiple compute nodes. This includes Parallel IO for the input/output files and parallel computation of the next generation.localized. This example shows how to distribute the simulation of Wireworld across multiple compute nodes. This includes Parallel IO for the input/output files and parallel computation of the next generation.localized.
The computation is distributed by spatially splitting the Wireworld rectangle into smaller chunks (*Tiles*). Where each compute node has one tile. At the border of each tile, there has to be communication with the neighboring tiles (** Halo Exchange**) The computation is distributed by spatially splitting the Wireworld rectangle into smaller chunks (*Tiles*). Where each compute node has one tile. At the border of each tile, there has to be communication with the neighboring tiles (**Halo Exchange**)
This code sample demonstrates: This code sample demonstrates:
* Using **Collective IO** MPI functions for efficiently reading and writing from multiple nodes to the same File, i.e. `MPI_File_set_view`, `MPI_File_read_all` * Using **Collective IO** MPI functions for efficiently reading and writing from multiple nodes to the same File, i.e. `MPI_File_set_view`, `MPI_File_read_all`
...@@ -91,12 +91,12 @@ either on the command line or in your batch script, where `g` specifies the numb ...@@ -91,12 +91,12 @@ either on the command line or in your batch script, where `g` specifies the numb
### Command line arguments ### Command line arguments
`-r [ --gridrows ]`: number of rows in the grid to form the tiles (optional, automatically deduced) * `-r [ --gridrows ]`: number of rows in the grid to form the tiles (optional, automatically deduced)
`-c [ --gridcols ]`: number of columns in the grid to form the tiles (optional, automatically deduced) * `-c [ --gridcols ]`: number of columns in the grid to form the tiles (optional, automatically deduced)
`-g [ --generations ]`: number of generations simulated (default 1000) * `-g [ --generations ]`: number of generations simulated (default 1000)
`-m [ --commmode ]`: Communication Mode. Collective or P2P (default Collective) * `-m [ --commmode ]`: Communication Mode. Collective or P2P (default Collective)
`-f [ --inputfile ]`: path to wireworld input file (mandatory, flag can be obmitted) The file dimension must be divisible by the grid dimension. * `-f [ --inputfile ]`: path to wireworld input file (mandatory, flag can be obmitted) The file dimension must be divisible by the *grid dimension.
`-o [ --outputfile ]`: path to wireworld input file (optional, no writing) * `-o [ --outputfile ]`: path to wireworld input file (optional, no writing)
### Example ### Example
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment