Skip to content
This repository was archived by the owner on Feb 2, 2024. It is now read-only.

Commit 801692f

Browse files
author
Ehsan Totoni
committed
save dist analysis for testing
1 parent c88c9ce commit 801692f

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

hpat/distributed.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@
2929

3030
distributed_run_extensions = {}
3131

32+
# analysis data for debugging
33+
dist_analysis = None
34+
3235
class DistributedPass(object):
3336
"""analyze program and transfrom to distributed"""
3437
def __init__(self, func_ir, typemap, calltypes):
@@ -77,6 +80,10 @@ def run(self):
7780
post_proc = postproc.PostProcessor(self.func_ir)
7881
post_proc.run()
7982

83+
# save data for debug and test
84+
global dist_analysis
85+
dist_analysis = self._dist_analysis
86+
8087
def _run_dist_pass(self, blocks):
8188
topo_order = find_topo_order(blocks)
8289
namevar_table = get_name_var_table(blocks)

0 commit comments

Comments
 (0)