Skip to content

[SYCL] Mark calls to barrier and work-item functions as convergent #1333

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 17, 2020

Conversation

againull
Copy link
Contributor

Calls to work-item functions and barrier function must be convergent to
preserve semantics of these functions during llvm optimizations.

Signed-off-by: Artur Gainullin artur.gainullin@intel.com

@againull
Copy link
Contributor Author

againull commented Mar 16, 2020

This patch doesn't solve the problem for PTX target (which is discussed in #1279). Because in this case spirv call is lowered to llvm.nvvm.barrier call which has convergent attribute.
But it turns out that convergent attribute on spirv calls is crucial for the case when llvm optimizations are enabled before conversion to SPIRV (at the moment when spirv call is not lowered yet). Thanks to @bader for pointing to the issue.

@againull againull requested review from kbobrovs and bader and removed request for kbobrovs March 16, 2020 20:34
Calls to work-item functions and barrier function must be convergent to
preserve semantics of these functions during llvm optimizations.

Signed-off-by: Artur Gainullin <artur.gainullin@intel.com>
@againull againull merged commit 8ddf584 into intel:sycl Mar 17, 2020
@againull againull deleted the convergent branch December 3, 2022 00:02
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