Skip to content
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

[SYCL] Implement braced-init-list or a number as range for queue::parallel_for #1931

Merged
merged 2 commits into from
Jun 23, 2020

Conversation

rarutyun
Copy link
Contributor

Modification

  • Make three 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

Implement the following queue extension

Signed-off-by: Ruslan Arutyunyan ruslan.arutyunyan@intel.com

@rarutyun rarutyun requested a review from a team as a code owner June 19, 2020 13:07
@rarutyun rarutyun self-assigned this Jun 19, 2020
…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>
sycl/test/basic_tests/queue/queue_parallel_for_generic.cpp Outdated Show resolved Hide resolved
sycl/test/basic_tests/queue/queue_parallel_for_generic.cpp Outdated Show resolved Hide resolved
// UNSUPPORTED: cuda
// CUDA does not support unnamed lambdas.
//
// RUN: %clangxx -fsycl -fsyntax-only -fsycl-unnamed-lambda %s -o %t.out
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
// 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.

Copy link
Contributor Author

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>
Copy link
Contributor

@bader bader left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@bader bader merged commit 17299ee into intel:sycl Jun 23, 2020
alexbatashev pushed a commit to alexbatashev/llvm that referenced this pull request Jun 24, 2020
* 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)
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