Skip to content

[SYCL] Implement runtime property to set cache size for a kernel#3417

Closed
againull wants to merge 1 commit intointel:syclfrom
againull:gpu_cache_config
Closed

[SYCL] Implement runtime property to set cache size for a kernel#3417
againull wants to merge 1 commit intointel:syclfrom
againull:gpu_cache_config

Conversation

@againull
Copy link
Contributor

No description provided.

__SYCL_PARAM_TRAITS_SPEC(sycl::property::image::use_mutex)
__SYCL_PARAM_TRAITS_SPEC(sycl::property::image::context_bound)
__SYCL_PARAM_TRAITS_SPEC(sycl::ext::oneapi::property::buffer::use_pinned_host_memory)
__SYCL_PARAM_TRAITS_SPEC(sycl::INTEL::property::kernel::gpu_cache_config)
Copy link
Contributor

Choose a reason for hiding this comment

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

I think all these SYCL::INTEL namespaces should be sycl::ext::intel instead. For example, look at the line immediately above, which has sycl::ext::oneapi.

@github-actions github-actions bot added the Stale label Feb 18, 2022
@github-actions github-actions bot closed this Mar 21, 2022
@againull againull deleted the gpu_cache_config branch December 3, 2022 00:40
jsji pushed a commit that referenced this pull request Nov 18, 2025
…ters (#3417)

Avoid translation of pointer function arguments with `byval`/`sret`
attribute as untyped pointers to preserve the information about the
pointer element type.
Insert `OpBitcast` to further use such pointers in the untyped pointer
semantics (vise-versa bitcast instructions are explicitly allowed by the
[SPV_KHR_untyped_pointers
](https://github.khronos.org/SPIRV-Registry/extensions/KHR/SPV_KHR_untyped_pointers.html)
extension).

This approach ensures valid reverse translation and correct OpenCL
runtime behavior, especially for kernels translation.
Without the fix `clSetKernelArg()` fails with `CL_INVALID_MEM_OBJECT`
error.

Original commit:
KhronosGroup/SPIRV-LLVM-Translator@b65c96eeec4e2b3
jsji pushed a commit that referenced this pull request Dec 6, 2025
…ters (#3417)

Avoid translation of pointer function arguments with `byval`/`sret`
attribute as untyped pointers to preserve the information about the
pointer element type.
Insert `OpBitcast` to further use such pointers in the untyped pointer
semantics (vise-versa bitcast instructions are explicitly allowed by the
[SPV_KHR_untyped_pointers
](https://github.khronos.org/SPIRV-Registry/extensions/KHR/SPV_KHR_untyped_pointers.html)
extension).

This approach ensures valid reverse translation and correct OpenCL
runtime behavior, especially for kernels translation.
Without the fix `clSetKernelArg()` fails with `CL_INVALID_MEM_OBJECT`
error.

Original commit:
KhronosGroup/SPIRV-LLVM-Translator@b65c96eeec4e2b3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants