Skip to content
This repository was archived by the owner on Mar 28, 2023. It is now read-only.

[SYCL] Added E2E test for kernel_bundle::get_kernel<KernelName>() #1589

Merged

Conversation

andylshort
Copy link

This patch adds the test to ensure the functionality of the template <typename KernelName> kernel get_kernel() const function that was added in patch intel/llvm#8294

An E2E test was required to ensure the correct information was present to compare and test the kernels against one another via get_info, as operator== isn't guaranteed to work in this instance.

@andylshort andylshort requested a review from a team as a code owner February 10, 2023 12:47
@andylshort
Copy link
Author

/verify with intel/llvm#8294

@steffenlarsen
Copy link

/verify with intel/llvm#8294

AlexeySachkov pushed a commit to intel/llvm that referenced this pull request Feb 24, 2023
`kernel_bundle` was missing the `template <typename KernelName> kernel
get_kernel() const;` from its complete list of queries from the spec
[4.11.12.1](https://registry.khronos.org/SYCL/specs/sycl-2020/html/sycl-2020.html#sec:bundles.query).
This patch implements this missing function.

An E2E test was required in order to test this, the test for this patch
is intel/llvm-test-suite#1589.
Lamzed-Short, Andrew added 2 commits February 24, 2023 06:12
Small issue with returned value of expected attribute string, so replacing
with context comparison. Now passes on level_zero also.
@andylshort
Copy link
Author

The implementation of this has now been merged as part of intel/llvm#8294

@andylshort andylshort closed this Mar 3, 2023
@andylshort andylshort reopened this Mar 3, 2023
Lamzed-Short, Andrew added 2 commits March 7, 2023 06:29
Just relying on the actual get_info calls themselves for equality comparison.
Copy link

@steffenlarsen steffenlarsen left a comment

Choose a reason for hiding this comment

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

LGTM!

@AlexeySachkov AlexeySachkov merged commit 2921985 into intel:intel Mar 7, 2023
myler pushed a commit to myler/llvm-test-suite that referenced this pull request Mar 22, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants