Skip to content
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

[LIBCLC][CUDA] Apply always_inline to all atomics #5710

Merged
merged 1 commit into from
Mar 3, 2022

Conversation

jchlanda
Copy link
Contributor

@jchlanda jchlanda commented Mar 2, 2022

Fixes: #5429

Interestingly enough, the performance penalty comes here not from performing the call, but from clang not being able to optimise away all the cases that atomics define, but don't need at call site.

@jchlanda jchlanda requested a review from bader as a code owner March 2, 2022 14:49
@jchlanda
Copy link
Contributor Author

jchlanda commented Mar 3, 2022

Am I right in thinking that the test suite failures are unrelated?

@bader
Copy link
Contributor

bader commented Mar 3, 2022

Am I right in thinking that the test suite failures are unrelated?

I think so. AFAIK, libclc is not used for by OpenCL back-end.

@bader bader merged commit dda743a into intel:sycl Mar 3, 2022
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.

[CUDA] Atomic fetch_add call cannot be inlined
2 participants