Skip to content

[SYCL] diagnostics for illegal captured pointer refs #1623

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

Closed

Conversation

cperkinsintel
Copy link
Contributor

Any pointer captured into the SYCL kernel lamba will fail when dereferenced ... except USM. If it weren't for USM we could just emit a deferred diagnostic for every pointer capture. Instead, we attempt to identify which pointers are USM, and which are definitely not. For those that are definitely not, we emit an error diagnostic, which also instructs the developer to use USM. For those pointer captures that are unknown, we emit a note suggesting that the developer ensure they are using USM. For captured pointer expressions that are identified as USM, we do nothing.

Signed-off-by: Chris Perkins <[email protected]>
Signed-off-by: Chris Perkins <[email protected]>
Signed-off-by: Chris Perkins <[email protected]>
Signed-off-by: Chris Perkins <[email protected]>
Signed-off-by: Chris Perkins <[email protected]>
Signed-off-by: Chris Perkins <[email protected]>
@cperkinsintel
Copy link
Contributor Author

Hmm - I see a fatal flaw. Going to close this PR for now.

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.

1 participant