forked from intel/llvm
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SYCL] Fix SYCL kernel lambda argument type detection (intel#11679)
We have a helper which is used to extract a type of the first SYCL kernel lambda argument to do some error-checking and special handling based on that. That check, however, was missing a case when a kernel lambda is also accepting `kernel_handler` argument, always falling back to a suggested type in that case. This led to a situations where we couldn't compile code like: ```c++ sycl::queue q; q.parallel_for(sycl::range{1}, [=](sycl::item<1, false>, kernel_handler) {}); ``` This patch adds extra specializations of some internal helpers to fix the error. This is a follow-up from intel#11625
- Loading branch information
1 parent
4156f78
commit 6ba7b52
Showing
2 changed files
with
25 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters