Skip to content

Commit

Permalink
Distributed partitioning without partitioning
Browse files Browse the repository at this point in the history
  • Loading branch information
inducer committed Dec 6, 2022
1 parent 2dd57be commit 94b7d19
Show file tree
Hide file tree
Showing 5 changed files with 212 additions and 562 deletions.
9 changes: 6 additions & 3 deletions examples/distributed.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,17 @@ def main():
from pytato.visualization import show_dot_graph
show_dot_graph(distributed_parts)

# Sanity check
from pytato.visualization import get_dot_graph_from_partition
get_dot_graph_from_partition(distributed_parts)
if 0:
# Sanity check
from pytato.visualization import get_dot_graph_from_partition
get_dot_graph_from_partition(distributed_parts)

# Execute the distributed partition
ctx = cl.create_some_context()
queue = cl.CommandQueue(ctx)

pt.verify_distributed_partition(comm, distributed_parts)

context = execute_distributed_partition(distributed_parts, prg_per_partition,
queue, comm)

Expand Down
Loading

0 comments on commit 94b7d19

Please sign in to comment.