Skip to content

[SYCL] Throw for invalid info::kernel::num_args query #9061

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

Merged
merged 10 commits into from
Apr 18, 2023

Conversation

KornevNikita
Copy link
Contributor

@KornevNikita KornevNikita commented Apr 13, 2023

According to SYCL2020 spec:
This descriptor may only be used to query a kernel that resides in a kernel bundle that was constructed using a backend specific interoperability function or to query a device built-in kernel, and the semantics of this descriptor are defined by each SYCL backend specification. Attempting to use this descriptor for other kernels throws an exception with the errc::invalid error code.

Fow now the only one way to create such kernel bundle - use make_kernel(). And creating bundle from built-in kernels is not fully supported, so it should throw in most cases at the present time.

Resolves #7630

According to SYCL2020 spec:
This descriptor may only be used to query a kernel that resides in a kernel
bundle that was constructed using a backend specific interoperability
function or to query a device built-in kernel, and the semantics of this
descriptor are defined by each SYCL backend specification. Attempting to use
this descriptor for other kernels throws an exception with the errc::invalid
error code.

Fow now the only one way to create such kernel bundle - use
make_kernel(). And creating bundle from built-in kernels is not fully
supported, so it should throw in most cases at the present time.
@KornevNikita KornevNikita requested a review from a team as a code owner April 13, 2023 10:30
@KornevNikita KornevNikita temporarily deployed to aws April 13, 2023 11:06 — with GitHub Actions Inactive
@KornevNikita KornevNikita temporarily deployed to aws April 13, 2023 11:08 — with GitHub Actions Inactive
@KornevNikita
Copy link
Contributor Author

@intel/sycl-language-enabling-triage take a look please.

@KornevNikita KornevNikita temporarily deployed to aws April 13, 2023 14:16 — with GitHub Actions Inactive
@KornevNikita KornevNikita temporarily deployed to aws April 13, 2023 14:16 — with GitHub Actions Inactive
@KornevNikita KornevNikita temporarily deployed to aws April 13, 2023 15:28 — with GitHub Actions Inactive
@KornevNikita KornevNikita temporarily deployed to aws April 13, 2023 15:28 — with GitHub Actions Inactive
@KornevNikita KornevNikita temporarily deployed to aws April 14, 2023 12:39 — with GitHub Actions Inactive
@KornevNikita KornevNikita temporarily deployed to aws April 14, 2023 13:26 — with GitHub Actions Inactive
@KornevNikita KornevNikita temporarily deployed to aws April 14, 2023 13:33 — with GitHub Actions Inactive
@KornevNikita KornevNikita temporarily deployed to aws April 14, 2023 14:02 — with GitHub Actions Inactive
@KornevNikita KornevNikita temporarily deployed to aws April 14, 2023 15:01 — with GitHub Actions Inactive
@KornevNikita KornevNikita temporarily deployed to aws April 14, 2023 16:40 — with GitHub Actions Inactive
Copy link
Contributor

@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.

Only a couple nits. Looks good!

@KornevNikita KornevNikita temporarily deployed to aws April 17, 2023 16:42 — with GitHub Actions Inactive
@KornevNikita KornevNikita temporarily deployed to aws April 17, 2023 19:14 — with GitHub Actions Inactive
@KornevNikita KornevNikita temporarily deployed to aws April 18, 2023 11:17 — with GitHub Actions Inactive
@KornevNikita KornevNikita temporarily deployed to aws April 18, 2023 12:28 — with GitHub Actions Inactive
@KornevNikita
Copy link
Contributor Author

@intel/llvm-gatekeepers PR is ready for merge, take a look please.

@sergey-semenov sergey-semenov merged commit 93e8ca3 into intel:sycl Apr 18, 2023
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.

How to understand the sycl::kernel get_info<info::kernel::num_args> ?
4 participants