diff options
| author | Ross Brunton <ross@codeplay.com> | 2025-08-04 15:21:24 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-08-04 15:21:24 +0100 |
| commit | d03692a00ee2404aa5c98a5f6c447f66d77a4663 (patch) | |
| tree | b6ccdb52e04af604c74f6d80ecf65a3c8df77f09 /offload/liboffload/API/Device.td | |
| parent | c6fd3d32c37f599c69da16f5ff026b925b510f94 (diff) | |
[Offload] Rework `MAX_WORK_GROUP_SIZE` (#151926)
`MAX_WORK_GROUP_SIZE` now represents the maximum total number of work
groups the device can allocate, rather than the maximum per dimension.
`MAX_WORK_GROUP_SIZE_PER_DIMENSION` has been added, which has the old
behaviour.
Diffstat (limited to 'offload/liboffload/API/Device.td')
| -rw-r--r-- | offload/liboffload/API/Device.td | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/offload/liboffload/API/Device.td b/offload/liboffload/API/Device.td index 37f4e815d90c..857c596124b2 100644 --- a/offload/liboffload/API/Device.td +++ b/offload/liboffload/API/Device.td @@ -32,7 +32,8 @@ def DeviceInfo : Enum { TaggedEtor<"NAME", "char[]", "Device name">, TaggedEtor<"VENDOR", "char[]", "Device vendor">, TaggedEtor<"DRIVER_VERSION", "char[]", "Driver version">, - TaggedEtor<"MAX_WORK_GROUP_SIZE", "ol_dimensions_t", "Maximum work group size in each dimension">, + TaggedEtor<"MAX_WORK_GROUP_SIZE", "uint32_t", "Maximum total work group size in work items">, + TaggedEtor<"MAX_WORK_GROUP_SIZE_PER_DIMENSION", "ol_dimensions_t", "Maximum work group size in each dimension">, ]; } |
