-
Notifications
You must be signed in to change notification settings - Fork 794
[SYCL] Implement braced-init-list or a number as range for queue::parallel_for #1931
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
…allel_for
Modification:
Make three different overloads for queue::parallel for to support
range implicit conversion from number or braced-init-list
Add tests for queue::parallel_for calls with generic lambda
Signed-off-by: Ruslan Arutyunyan <ruslan.arutyunyan@intel.com>
| // UNSUPPORTED: cuda | ||
| // CUDA does not support unnamed lambdas. | ||
| // | ||
| // RUN: %clangxx -fsycl -fsyntax-only -fsycl-unnamed-lambda %s -o %t.out |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| // RUN: %clangxx -fsycl -fsyntax-only -fsycl-unnamed-lambda %s -o %t.out | |
| // RUN: %clangxx -fsycl -fsyntax-only -fsycl-unnamed-lambda %s -c -o %t.out |
I guess linking can be omitted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It tells me that -c is unknown option. Anyway, we launch this test with syntax-only flag that doesn't spend run-time
Signed-off-by: Ruslan Arutyunyan <ruslan.arutyunyan@intel.com>
bader
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
* upstream/sycl: [SYCL] Implement braced-init-list or a number as range for queue::parallel_for (intel#1931) [SYCL][Doc] Add SYCL_INTEL_accessor_properties extension specification (intel#1925) [SYCL-PTX] Add builtins for the relational category (intel#1831) [SYCL][CUDA] Remove unnecessary memfence (intel#1935) [SYCL] Add handling for wrapped sampler (intel#1942) [SYCL] Release notes for June'20 DPCPP implementation update (intel#1948) [SYCL] Fix assert when calling get_binaries() on host (intel#1944) [SYCL] Fix check for reqd_sub_group_size attribute mismatches (intel#1905)
Modification
queue::parallel_forto supportrangeimplicit conversion from number orbraced-init-listqueue::parallel_forcalls with generic lambdaImplement the following
queueextensionSigned-off-by: Ruslan Arutyunyan ruslan.arutyunyan@intel.com