Skip to content

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 [email protected]

@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 bader and kbobrovs 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 <[email protected]>
@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