Skip to content

Commit

Permalink
Add an irregular-block example.
Browse files Browse the repository at this point in the history
  • Loading branch information
bgrant committed Mar 26, 2014
1 parent 4d392c7 commit 269c8ba
Showing 1 changed file with 64 additions and 0 deletions.
64 changes: 64 additions & 0 deletions examples/plot_distarray_protocol.py
Expand Up @@ -253,6 +253,70 @@ def create_distribution_plot_and_documentation_all(context, add_header=False):
'filename': 'plot_cyclic_cyclic.png',
'dist': ('c', 'c'),
},
# regular-block, irregular-block
{'shape': (5, 9),
'title': 'Block, Irregular-Block',
'labels': ('b', 'b'),
'filename': 'plot_block_irregularblock.png',
'dimdata': [
(
{'size': 5,
'dist_type': 'b',
'proc_grid_rank': 0,
'proc_grid_size': 1,
'start': 0,
'stop': 5},
{'size': 9,
'dist_type': 'b',
'proc_grid_rank': 0,
'proc_grid_size': 4,
'start': 0,
'stop': 2},
),
(
{'size': 5,
'dist_type': 'b',
'proc_grid_rank': 0,
'proc_grid_size': 1,
'start': 0,
'stop': 5},
{'size': 9,
'dist_type': 'b',
'proc_grid_rank': 1,
'proc_grid_size': 4,
'start': 2,
'stop': 6},
),
(
{'size': 5,
'dist_type': 'b',
'proc_grid_rank': 0,
'proc_grid_size': 1,
'start': 0,
'stop': 5},
{'size': 9,
'dist_type': 'b',
'proc_grid_rank': 2,
'proc_grid_size': 4,
'start': 6,
'stop': 7},
),
(
{'size': 5,
'dist_type': 'b',
'proc_grid_rank': 0,
'proc_grid_size': 1,
'start': 0,
'stop': 5},
{'size': 9,
'dist_type': 'b',
'proc_grid_rank': 3,
'proc_grid_size': 4,
'start': 7,
'stop': 9},
),
],
},
# Examples requiring custom dimdata.
# blockcyclic-blockcyclic: Like cyclic-cyclic but with block_size=2.
{'shape': (5, 9),
Expand Down

0 comments on commit 269c8ba

Please sign in to comment.