diff --git a/sycl/doc/syclcompat/README.md b/sycl/doc/syclcompat/README.md index df8d453a41d57..be0cc7eb92b67 100644 --- a/sycl/doc/syclcompat/README.md +++ b/sycl/doc/syclcompat/README.md @@ -1108,6 +1108,7 @@ class device_ext : public sycl::device { int get_max_work_group_size() const; int get_mem_base_addr_align() const; size_t get_global_mem_size() const; + size_t get_local_mem_size() const; void get_memory_info(size_t &free_memory, size_t &total_memory) const; void get_device_info(device_info &out) const; diff --git a/sycl/include/syclcompat/device.hpp b/sycl/include/syclcompat/device.hpp index 4e227a635c44e..95b378fa54f9f 100644 --- a/sycl/include/syclcompat/device.hpp +++ b/sycl/include/syclcompat/device.hpp @@ -395,6 +395,10 @@ class device_ext : public sycl::device { return get_device_info().get_global_mem_size(); } + size_t get_local_mem_size() const { + return get_device_info().get_local_mem_size(); + } + /// Get the number of bytes of free and total memory on the SYCL device. /// \param [out] free_memory The number of bytes of free memory on the SYCL /// device.