Skip to content

Conversation

@lbushi25
Copy link
Contributor

@lbushi25 lbushi25 commented Oct 27, 2025

When inside a parallel_for_work_group context, calls to functions that contain calls to parallel_for_work_item are being lowered incorrectly into IR in that they are being put under the work-group leader branch in the IR which is semantically incorrect as this function should be called in every work item. This manifests when we have an indirect function call to parallel_for_work_item together with at least one other direct call to parallel_for_work_item in the same parallel_for_work_group context and it leads to a program that hangs. This PR fixes the issue and adds a couple of other tests to check this behavior.

Copy link
Contributor

@YuriPlyakhin YuriPlyakhin left a comment

Choose a reason for hiding this comment

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

LGTM

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