Skip to content

Conversation

smanna12
Copy link
Contributor

@smanna12 smanna12 commented Jan 26, 2021

We removed the following restrictions on #1878

// Allow the following kernel attributes only on lambda functions and
// function objects that are called directly from a kernel (i.e. the one
// passed to the parallel_for function). For all other cases,
// emit a warning and ignore.

  1. SYCLIntelKernelArgsRestrictAttr
  2. SYCLIntelNumSimdWorkItemsAttr
  3. SYCLIntelMaxWorkGroupSizeAttr
  4. SYCLIntelMaxGlobalWorkDimAttr

This patch updates the attribute document to reflect the changes since
we do not ignore the above kernel attributes anymore if it is applied to a function
called from a device kernel and the attribute gets propagated to a kernel.

Signed-off-by: Soumi Manna [email protected]

We removed the following restrictions on intel#1878

// Allow the following kernel attributes only on lambda functions and
// function objects that are called directly from a kernel (i.e. the one
// passed to the parallel_for function). For all other cases,
// emit a warning and ignore.

1. SYCLIntelKernelArgsRestrictAttr
2. SYCLIntelNumSimdWorkItemsAttr
3. SYCLIntelMaxWorkGroupSizeAttr
4. SYCLIntelMaxGlobalWorkDimAttr

This patch updates the attribute document to reflect the changes since
we do not ignore the kernel attributes anymore if it is applied to a function
called from a device kernel and the attribute gets propagated to a kernel.

Signed-off-by: Soumi Manna <[email protected]>
@smanna12 smanna12 marked this pull request as ready for review January 26, 2021 17:13
@smanna12 smanna12 requested a review from MrSidims January 26, 2021 17:17

If ``intel::kernel_args_restrict`` is applied to a function called from a device
kernel, the attribute is ignored and it is not propagated to a kernel.
kernel, the attribute is not ignored and it is propagated to a kernel.
Copy link
Contributor

Choose a reason for hiding this comment

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

I would change it to '... is propagated to the kernel', since it is the same kernel we are talking about. (i.e. 'the' instead of 'a' in that sentence.)

Here and the other three places below as well.

Copy link
Contributor Author

@smanna12 smanna12 Jan 26, 2021

Choose a reason for hiding this comment

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

Thanks @premanandrao. Fixed now.

@romanovvlad romanovvlad merged commit db1db99 into intel:sycl Jan 27, 2021
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