Skip to content

Commit

Permalink
Temporary fix for happens_after/depends_on collision
Browse files Browse the repository at this point in the history
  • Loading branch information
a-alveyblanc committed Apr 17, 2023
1 parent 8a28e7f commit 919dc51
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion loopy/kernel/instruction.py
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ def __init__(self,
# {{{ process happens_after/depends_on

if happens_after is not None and depends_on is not None:
raise TypeError("may not pass both happens_after and depends_on")
happens_after = frozenset(happens_after) | frozenset(depends_on)
elif depends_on is not None:
happens_after = depends_on

Expand Down

0 comments on commit 919dc51

Please sign in to comment.