Skip to content

Commit 7ed3995

Browse files
[SYCL][Doc] Add missing property definitions to kernel properties (#7052)
This commit makes the following changes to sycl_ext_oneapi_kernel_properties: * Adds key_t alias member to property_value specializations. * Adds specializations of `is_property_value` for all new properties. Signed-off-by: Larsen, Steffen <[email protected]>
1 parent d4478a4 commit 7ed3995

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

sycl/doc/extensions/proposed/sycl_ext_oneapi_kernel_properties.asciidoc

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,16 +145,19 @@ struct device_has_key {
145145

146146
template <size_t... Dims>
147147
struct property_value<work_group_size_key, std::integral_constant<size_t, Dims>...> {
148+
using key_t = work_group_size_key;
148149
constexpr size_t operator[](int dim);
149150
};
150151

151152
template <size_t... Dims>
152153
struct property_value<work_group_size_hint_key, std::integral_constant<size_t, Dims>...> {
154+
using key_t = work_group_size_hint_key;
153155
constexpr size_t operator[](int dim);
154156
};
155157

156158
template <sycl::aspect... Aspects>
157159
struct property_value<device_has_key, std::integral_constant<sycl::aspect, Aspects>...> {
160+
using key_t = device_has_key;
158161
static constexpr std::array<sycl::aspect, sizeof...(Aspects)> value;
159162
};
160163

@@ -170,6 +173,11 @@ inline constexpr sub_group_size_key::value_t<Size> sub_group_size;
170173
template <sycl::aspect... Aspects>
171174
inline constexpr device_has_key::value_t<Aspects...> device_has;
172175

176+
template <> struct is_property_key<work_group_size_key> : std::true_type {};
177+
template <> struct is_property_key<work_group_size_hint_key> : std::true_type {};
178+
template <> struct is_property_key<sub_group_size_key> : std::true_type {};
179+
template <> struct is_property_key<device_has_key> : std::true_type {};
180+
173181
} // namespace experimental
174182
} // namespace oneapi
175183
} // namespace ext

0 commit comments

Comments
 (0)