Skip to content

Conversation

@AlexeySachkov
Copy link
Contributor

  • SYCL 2020 is the oldest standard we support, so check SYCL >= 2020 is always true, dropped the corresponding check;
  • Outlined calls repeated for both rounded and non-rounded paths into a common section;
  • Outlined (void) casts into a common section to reduce size of #ifdef branches for improved readability;

Strictly speaking, the patch has a functional side effect: call to processProperties is now hit always, but previously it could be missed if range rounded kernel is being used

- SYCL 2020 is the oldest standard we support, so check `SYCL >= 2020` is
  always true, dropped the corresponding check;
- Outlined calls repeated for both rounded and non-rounded paths into a
  common section;
- Outlined `(void)` casts into a common section to reduce size of
  `#ifdef` branches for improved readability;
@vinser52
Copy link
Contributor

Strictly speaking, the patch has a functional side effect: call to processProperties is now hit always, but previously it could be missed if range rounded kernel is being used

Do we really need to call it always?

typename PropertiesT = ext::oneapi::experimental::empty_properties_t>
void parallel_for_lambda_impl(range<Dims> UserRange, PropertiesT Props,
const KernelType &KernelFunc) {
(void)Props;
Copy link
Contributor

Choose a reason for hiding this comment

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

[[maybe_unused]] ?

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