提交 77639247 authored 作者: Roy Xue's avatar Roy Xue

Add a list store executed node order

上级 6317960c
...@@ -298,6 +298,7 @@ class Stack(VM): ...@@ -298,6 +298,7 @@ class Stack(VM):
idx = self.node_idx[node] idx = self.node_idx[node]
t0 = time.time() t0 = time.time()
rval = self.thunks[idx]() rval = self.thunks[idx]()
self.node_order.append(idx)
# Some thunks on some computers run faster than the granularity # Some thunks on some computers run faster than the granularity
# of the time.time clock. # of the time.time clock.
...@@ -318,6 +319,8 @@ class Stack(VM): ...@@ -318,6 +319,8 @@ class Stack(VM):
compute_map = self.compute_map compute_map = self.compute_map
thunks = self.thunks thunks = self.thunks
dependencies = self.dependencies dependencies = self.dependencies
self.node_order = []
for k in self.storage_map: for k in self.storage_map:
compute_map[k][0] = (k.owner is None) compute_map[k][0] = (k.owner is None)
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论