Skip to content

Commit 139fe05

Browse files
committed
Add compile time assert for invalid GRF sizes
Signed-off-by: Sarnie, Nick <[email protected]>
1 parent 55e3001 commit 139fe05

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

sycl/include/sycl/ext/intel/experimental/grf_size_properties.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ struct IsCompileTimeProperty<
6363
template <unsigned int Size>
6464
struct PropertyMetaInfo<
6565
sycl::ext::intel::experimental::grf_size_key::value_t<Size>> {
66+
static_assert(Size == 128 || Size == 256, "Unsupported GRF size");
6667
static constexpr const char *name = "sycl-grf-size";
6768
static constexpr unsigned int value = Size;
6869
};

0 commit comments

Comments
 (0)