KhronosGroup / KhronosGroup/SYCL-Docs

No device-specific kernel information descriptor for local memory

Open
#452 6 comments 1 reaction 0 assignees View on GitHub
enhancement
Dominant language
JavaScript
Stars
158
Forks
80
Avg merge
7d 6h
Merged PRs (30d)
5

Description

The SYCL specification, in table 138 in [§4.11.13.2](https://registry.khronos.org/SYCL/specs/sycl-2020/html/sycl-2020.html#_kernel_information_descriptors), defines a device-specific kernel information descriptor `info::kernel_device_specific::private_mem_size` to query for the private memory used by each work-item. This matches OpenCL's [`CL_KERNEL_PRIVATE_MEM_SIZE`](https://registry.khronos.org/OpenCL/specs/3.0-unified/html/OpenCL_API.html#CL_KERNEL_PRIVATE_MEM_SIZE).

OpenCL also defines [`CL_KERNEL_LOCAL_MEM_SIZE`](https://registry.khronos.org/OpenCL/specs/3.0-unified/html/OpenCL_API.html#CL_KERNEL_LOCAL_MEM_SIZE) to query for the local memory used by a kernel, but SYCL does not define an equivalent device-specific kernel information descriptor (e.g., `info::kernel_device_specific::local_mem_size`). This could be useful to users, especially if local memory was used by builtins, e.g., for reduction.

Was this left out on purpose or was this an oversight and should be added?

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with table 138 in §4.11.13.2 of the SYCL specification and compare it with OpenCL's CL_KERNEL_LOCAL_MEM_SIZE descriptor. Determine whether a device-specific local-memory descriptor should be added and document the decision and resulting specification change.

Written by the indexing model from the issue text.

Assessment

Domain
documentation
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.