Latest implementation is adding coroutines to the simulator manually. It looks something like this:
for node in top.iter_bfs():
# TODO(cjdrake): Get rid of isinstance
if isinstance(node, Module):
for proc, r in node.procs:
loop.add_proc(proc, Region(r))
Not quite sure what the correct API decision is, but this is a kludge.
Latest implementation is adding coroutines to the simulator manually. It looks something like this:
Not quite sure what the correct API decision is, but this is a kludge.