Skip to content

[SYCL][CUDA] fix warnings in async barrier #6165

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 3 commits into from
May 19, 2022

Conversation

t4c1
Copy link
Contributor

@t4c1 t4c1 commented May 18, 2022

Fixes warnings introduced in #5303.

@t4c1 t4c1 requested a review from a team as a code owner May 18, 2022 06:15
@t4c1 t4c1 requested a review from againull May 18, 2022 06:15
Comment on lines 20 to 22
#ifdef __SYCL_DEVICE_ONLY__
int64_t state;
#endif
Copy link
Contributor

Choose a reason for hiding this comment

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

This means that barrier will have different size on the host and the device. Since it is used in local memory it may not be a problem, but I would feel safer if instead of making the class structure different we instead marks it used (using (void)state;) in some function, e.g. initialize.

@againull againull requested a review from steffenlarsen May 18, 2022 22:50
@pvchupin pvchupin merged commit 8ae7851 into intel:sycl May 19, 2022
yinyangsx pushed a commit to yinyangsx/llvm that referenced this pull request May 25, 2022
Fixes warnings introduced in intel#5303.

Co-authored-by: Artur Gainullin <[email protected]>
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.

4 participants