Skip to content

[SYCL][NFC] Split unit test kernels based on their args #19247

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

Open
wants to merge 4 commits into
base: sycl
Choose a base branch
from

Conversation

sergey-semenov
Copy link
Contributor

Most of the unit test kernels don't have any arguments, and those that do typically use a single accessor. Prior to this change, kernel size was passed as a template parameter of the kernel function type, while still sharing the same kernel name. This causes problems for the upcoming change to kernel name based caches, which will be tied to both types and strings.

Since currently there are only 2 cases for such test kernels: no arguments and a single accessor, this patch simply adds a separate kernel for the latter case.

Most of the unit test kernels don't have any arguments, and those that
do typically use a single accessor. Prior to this change, kernel size
was passed as a template parameter of the kernel function type,
while still sharing the same kernel name. This causes problems for the
upcoming change to kernel name based caches, which will be tied
to both types and strings.

Since currently there are only 2 cases for such test kernels: no arguments
and a single accessor, this patch simply adds a separate kernel for the
latter case.
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.

2 participants