Skip to content

[SYCL] Refactor processing of parallel_for_work_group constructs #5918

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 12 commits into from
Apr 5, 2022

Conversation

premanandrao
Copy link
Contributor

@premanandrao premanandrao commented Mar 29, 2022

Our processing of parallel_for_work_group was fetching the lambda function by walking the
caller statements. We now fetch the equivalent information from the GetSYCLKernelObjType
function. This refactoring also removes some validation which are no longer necessary.

@premanandrao premanandrao requested a review from a team as a code owner March 29, 2022 13:51
@premanandrao premanandrao changed the title [SYCL] Issue an error diagnostic for invalid kernel lambdas [SYCL] Refactor processing of parallel_for_work_group constructs Apr 1, 2022
@elizabethandrews
Copy link
Contributor

Did you mean to remove the tests you had in your previous commit? What happens when those invalid cases are encountered now?

@premanandrao
Copy link
Contributor Author

Did you mean to remove the tests you had in your previous commit? What happens when those invalid cases are encountered now?

I did mean to remove. They continue to get the same diagnostics as they did before, but without the assertion about the missing Lambda.

@elizabethandrews
Copy link
Contributor

Did you mean to remove the tests you had in your previous commit? What happens when those invalid cases are encountered now?

I did mean to remove. They continue to get the same diagnostics as they did before, but without the assertion about the missing Lambda.

Should we test the diagnostics since this is technically a functionality change i.e. your refactor fixes a crash.

@premanandrao
Copy link
Contributor Author

Should we test the diagnostics since this is technically a functionality change i.e. your refactor fixes a crash.

I don't feel strongly about it. But if you prefer, I can add a simple test back.

@elizabethandrews
Copy link
Contributor

Should we test the diagnostics since this is technically a functionality change i.e. your refactor fixes a crash.

I don't feel strongly about it. But if you prefer, I can add a simple test back.

I think that would be better since any functionality change should technically be accompanied by a test change.

smanna12
smanna12 previously approved these changes Apr 1, 2022
@bader bader requested a review from Fznamznon April 2, 2022 10:59
@bader bader merged commit 67b0b41 into intel:sycl Apr 5, 2022
@premanandrao
Copy link
Contributor Author

Thanks for the reviews and the merge!

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