Skip to content

[SYCL] Bugfix for unexpected acceptance of id argument in nd_range pa…#1348

Merged
bader merged 1 commit intosyclfrom
bugfixforndrange
Mar 27, 2020
Merged

[SYCL] Bugfix for unexpected acceptance of id argument in nd_range pa…#1348
bader merged 1 commit intosyclfrom
bugfixforndrange

Conversation

@yubingex007-a11y
Copy link
Contributor

The kernel callable being invoked from an nd_range parallel_for is accepting an id argument, while it should be nd_item.
After my analysis, I found we check arguments' type for kernel_parallel_for instead of parallel_for. But that check is useless, because the compiler can still find a candidate for kernel_parallel_for with nd_range&id which is a wrong combination.
In my solution, parallel_for with nd_range calls kernel_parallel_for_nd_range(...) which is only available for nd_item.
Signed-off-by: Bing1 Yu bing1.yu@intel.com

@yubingex007-a11y yubingex007-a11y force-pushed the bugfixforndrange branch 2 times, most recently from f8eca84 to 5bc8bac Compare March 25, 2020 03:35
…rallel_for

Signed-off-by: Bing1 Yu <bing1.yu@intel.com>
@bader bader merged commit 0408899 into sycl Mar 27, 2020
@bader bader deleted the bugfixforndrange branch March 27, 2020 14:45
aelovikov-intel added a commit to aelovikov-intel/llvm that referenced this pull request Feb 23, 2023
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.

3 participants