Skip to content

Commit

Permalink
[SYCLomatic] Fix CodePin epilog sync issue in helper function (#1982)
Browse files Browse the repository at this point in the history
Signed-off-by: Huang, Andy <[email protected]>
  • Loading branch information
AndyCHHuang authored May 15, 2024
1 parent 8ea3832 commit 08f13ec
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions clang/runtime/dpct-rt/include/dpct/codepin/codepin.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,7 @@ void gen_prolog_API_CP(const std::string &cp_id,
template <class... Args>
void gen_epilog_API_CP(const std::string &cp_id,
queue_t queue, Args&&... args) {
synchronize(queue);
std::string epilog_tag = cp_id + ":" + "epilog";
std::string event_id =
cp_id + ":" + std::to_string(api_index[cp_id]);
Expand Down

0 comments on commit 08f13ec

Please sign in to comment.