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

Commit 4b4f542

Browse files
author
Ehsan Totoni
committed
save func_ir text after distributed pass
1 parent aaa9730 commit 4b4f542

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

hpat/distributed.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131

3232
# analysis data for debugging
3333
dist_analysis = None
34+
fir_text = None
3435

3536
class DistributedPass(object):
3637
"""analyze program and transfrom to distributed"""
@@ -81,8 +82,13 @@ def run(self):
8182
post_proc.run()
8283

8384
# save data for debug and test
84-
global dist_analysis
85+
global dist_analysis, fir_text
8586
dist_analysis = self._dist_analysis
87+
import io
88+
str_io = io.StringIO()
89+
self.func_ir.dump(str_io)
90+
fir_text = str_io.getvalue()
91+
str_io.close()
8692

8793
def _run_dist_pass(self, blocks):
8894
topo_order = find_topo_order(blocks)

0 commit comments

Comments
 (0)