Skip to content
Snippets Groups Projects
Commit 8ef9b265 authored by Matt Wala's avatar Matt Wala
Browse files

Remove_instructions: Update no_sync_with (closes #60).

parent 808eccf4
No related branches found
No related tags found
1 merge request!102Nosync updates
Pipeline #
...@@ -154,7 +154,14 @@ def remove_instructions(kernel, insn_ids): ...@@ -154,7 +154,14 @@ def remove_instructions(kernel, insn_ids):
for dep_id in depends_on & insn_ids: for dep_id in depends_on & insn_ids:
new_deps = new_deps | id_to_insn[dep_id].depends_on new_deps = new_deps | id_to_insn[dep_id].depends_on
new_insns.append(insn.copy(depends_on=frozenset(new_deps))) # update no_sync_with
new_no_sync_with = frozenset((insn_id, scope)
for insn_id, scope in insn.no_sync_with
if insn_id not in insn_ids)
new_insns.append(
insn.copy(depends_on=new_deps, no_sync_with=new_no_sync_with))
return kernel.copy( return kernel.copy(
instructions=new_insns) instructions=new_insns)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment