Skip to content

[SYCL] Add the remaining diagnostics to device_global implementation #5810

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 37 commits into from
Aug 30, 2022

Conversation

schittir
Copy link
Contributor

@schittir schittir commented Mar 15, 2022

This PR is a follow up to PR #5597 to implement the diagnostics not covered in #5597

As it stands currently, this PR includes implementation for cases described in this documentation and their templated versions - https://github.com/intel/llvm/blob/sycl/sycl/doc/extensions/proposed/sycl_ext_oneapi_device_global.asciidoc#restrictions-on-creating-device-global-objects except the shadow variable/namespace case. Specifically, it covers cases where device_global is declared as a private member inside a struct and within methods inside struct, their template versions/instantiation and device_global array.

@schittir schittir marked this pull request as ready for review May 10, 2022 08:25
@schittir schittir requested a review from a team as a code owner May 10, 2022 08:25
@schittir schittir requested a review from premanandrao May 10, 2022 21:26
@elizabethandrews
Copy link
Contributor

@schittir could you please update the PR description with a list of all required diagnostics for device_global. Please mention which of these have already been implemented in the previous patch and which ones are covered in this patch. If any are yet to be implemented, please include that as well.

@elizabethandrews
Copy link
Contributor

elizabethandrews commented May 19, 2022

@schittir could you please update the PR description with a list of all required diagnostics for device_global. Please mention which of these have already been implemented in the previous patch and which ones are covered in this patch. If any are yet to be implemented, please include that as well.

@schittir can you update the PR description ASAP. It will help with review and I can start looking into diagnostics already implemented in this PR.

@schittir
Copy link
Contributor Author

@schittir could you please update the PR description with a list of all required diagnostics for device_global. Please mention which of these have already been implemented in the previous patch and which ones are covered in this patch. If any are yet to be implemented, please include that as well.

@schittir could you please update the PR description with a list of all required diagnostics for device_global. Please mention which of these have already been implemented in the previous patch and which ones are covered in this patch. If any are yet to be implemented, please include that as well.

@schittir can you update the PR description ASAP. It will help with review and I can start looking into diagnostics already implemented in this PR.

@elizabethandrews You should see the description updated now. Sorry I mistakenly thought that I already did that. Also I didn't think that it was holding you from reviewing it. Please take a look and let me know if anything else needs to be clarified. Thank you!

schittir added 6 commits June 15, 2022 08:19
1. getType() from Field directly instead of casting to ValueDecl
2. Diagnose if device_global is declared in private scope of a struct
Remove commented out case that is not needed
@elizabethandrews
Copy link
Contributor

IIUC, you haven't implemented support for shadowed device_global variables right?

@Fznamznon Fznamznon changed the title Add the remaining diagnostics to device_global implementation [SYCL] Add the remaining diagnostics to device_global implementation Aug 24, 2022
@schittir schittir requested a review from Fznamznon August 25, 2022 03:16
@schittir schittir requested a review from Fznamznon August 26, 2022 16:25
Fznamznon
Fznamznon previously approved these changes Aug 26, 2022
Fznamznon
Fznamznon previously approved these changes Aug 29, 2022
@schittir schittir requested a review from premanandrao August 29, 2022 17:30
@schittir schittir dismissed stale reviews from elizabethandrews and Fznamznon via 0377ef9 August 29, 2022 23:33
@steffenlarsen
Copy link
Contributor

Failing test is unrelated and was disabled separately.

@steffenlarsen steffenlarsen merged commit 1265721 into intel:sycl Aug 30, 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.

5 participants