Skip to content

Fix atomic fetch op pattern matching in workunit visitor#405

Merged
IvanGrigorik merged 1 commit intokokkos:mainfrom
Wilson1211:fix-workunit-atomic-regex
Mar 31, 2026
Merged

Fix atomic fetch op pattern matching in workunit visitor#405
IvanGrigorik merged 1 commit intokokkos:mainfrom
Wilson1211:fix-workunit-atomic-regex

Conversation

@Wilson1211
Copy link
Copy Markdown
Collaborator

the regex shall be atomic_fetch_* rather than atomic_*,
otherwise, the logic will make atomic_fetch_op to be true when using atomic_compare_exchange, then the if statement : "if not is_atomic_increment and is_atomic_fetch_op and len(args) != 3:" will evaluated to true, which causes the problem

@IvanGrigorik IvanGrigorik self-requested a review March 31, 2026 15:48
Copy link
Copy Markdown
Collaborator

@IvanGrigorik IvanGrigorik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LG, Thanks

@IvanGrigorik IvanGrigorik merged commit 7863d68 into kokkos:main Mar 31, 2026
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants