Skip to content

Commit 917d9c9

Browse files
committed
[SYCL][COMPAT] Add one helper function get_local_mem_size() to get local memory size
Signed-off-by: chenwei.sun <[email protected]>
1 parent e2075c7 commit 917d9c9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

sycl/include/syclcompat/device.hpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -395,6 +395,10 @@ class device_ext : public sycl::device {
395395
return get_device_info().get_global_mem_size();
396396
}
397397

398+
size_t get_local_mem_size() const {
399+
return get_device_info().get_local_mem_size();
400+
}
401+
398402
/// Get the number of bytes of free and total memory on the SYCL device.
399403
/// \param [out] free_memory The number of bytes of free memory on the SYCL
400404
/// device.

0 commit comments

Comments
 (0)