Skip to content

Commit

Permalink
add REL/ACQ to EF and XF
Browse files Browse the repository at this point in the history
  • Loading branch information
tonghaining committed Sep 27, 2024
1 parent 68adc51 commit 0705298
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -102,9 +102,9 @@ public List<Event> visitAtomicThreadFence(AtomicThreadFence e) {
@Override
public List<Event> visitOpenCLBarrier(OpenCLBarrier e) {
Event entryFence = EventFactory.newControlBarrier(e.getName() + "_entry", e.getId());
entryFence.addTags(Tag.OpenCL.ENTRY_FENCE);
entryFence.addTags(Tag.OpenCL.ENTRY_FENCE, C11.MO_RELEASE);
Event exitFence = EventFactory.newControlBarrier(e.getName() + "_exit", e.getId());
exitFence.addTags(Tag.OpenCL.EXIT_FENCE);
exitFence.addTags(Tag.OpenCL.EXIT_FENCE, C11.MO_ACQUIRE);
return tagList(e, eventSequence(
entryFence,
newOpenCLBarrier(e.getName(), e.getId()),
Expand Down

0 comments on commit 0705298

Please sign in to comment.