Skip to content

Commit 71a5940

Browse files
committed
add comment
1 parent 351c5b9 commit 71a5940

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

sycl/include/sycl/ext/oneapi/kernel_properties/properties.hpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -396,6 +396,8 @@ struct ConflictingProperties<max_work_group_size_key, Properties>
396396
using WGSizeVal = GetWGPropertyFromPropList<work_group_size_key, Properties>;
397397
using MaxWGSizeVal =
398398
GetWGPropertyFromPropList<max_work_group_size_key, Properties>;
399+
// If work_group_size_key doesn't exist in the list of properties, WGSize is
400+
// an empty array and so Dims == 0.
399401
static constexpr size_t Dims = WGSizeVal::WGSize.size();
400402
static_assert(
401403
Dims == 0 || Dims == MaxWGSizeVal::WGSize.size(),

0 commit comments

Comments
 (0)