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

[SYCL] Add a built-in kernel test #576

Closed
wants to merge 2 commits into from
Closed

[SYCL] Add a built-in kernel test #576

wants to merge 2 commits into from

Conversation

dnmokhov
Copy link

@dnmokhov dnmokhov commented Nov 19, 2021

Test that program manager throws an exception when actually trying to use built-in kernels, since they are not yet fully supported.

The corresponding fix in SYCL: intel/llvm#4996

Test that program manager throws an exception when actually trying to use built-in kernels, since they are not yet fully supported.
smaslov-intel
smaslov-intel previously approved these changes Nov 20, 2021
@dnmokhov
Copy link
Author

/verify with intel/llvm#4996

@@ -0,0 +1,35 @@
// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple %s -o %t.out

Choose a reason for hiding this comment

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

Can't we have this test in intel/llvm:sycl/unittests?

Copy link
Author

Choose a reason for hiding this comment

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

I suppose so. Are you suggesting not performing a real device query at all and manually adding something into the program manager built-in kernel cache?

Choose a reason for hiding this comment

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

It would be nice to check that sycl::device::get_info<sycl::info::device::built_in_kernel_ids> returns expected value if piDeviceGetInfo with CL_​DEVICE_​BUILT_​IN_​KERNELS returns non-empty list of kernels(we can emulate piDeviceGetInfo). And then check that an attempt to get a kernel bundle containing this kernel leads to exception.

Copy link
Author

Choose a reason for hiding this comment

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

@dnmokhov
Copy link
Author

dnmokhov commented Dec 4, 2021

Closing in favor of intel/llvm#5046.

@dnmokhov dnmokhov closed this Dec 4, 2021
@dnmokhov dnmokhov deleted the sycl branch December 4, 2021 15:07
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