Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions sycl/doc/syclcompat/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
4 changes: 4 additions & 0 deletions sycl/include/syclcompat/device.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
Loading