-
Notifications
You must be signed in to change notification settings - Fork 788
[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
Conversation
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. |
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. |
Thanks for the reviews and the merge! |
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.