Skip to content

Commit c48b892

Browse files
authored
fix a few minor cosmetic subgroup rotate issues (#782)
changes the spec copyright date to 2022 uses opencl_c source highlighting keeps the extension quick reference in alphabetical order
1 parent f4a7228 commit c48b892

2 files changed

Lines changed: 9 additions & 9 deletions

File tree

ext/cl_khr_subgroup_rotate.asciidoc

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2021 The Khronos Group. This work is licensed under a
1+
// Copyright 2022 The Khronos Group. This work is licensed under a
22
// Creative Commons Attribution 4.0 International License; see
33
// http://creativecommons.org/licenses/by/4.0/
44

@@ -43,7 +43,7 @@ Stuart Brady, Arm Ltd. +
4343

4444
This extension adds the following built-in function:
4545

46-
[source,c]
46+
[source,opencl_c]
4747
----
4848
gentype sub_group_rotate(gentype value, int delta)
4949
gentype sub_group_clustered_rotate(gentype value, int delta, uint clustersize)
@@ -57,7 +57,7 @@ gentype sub_group_clustered_rotate(gentype value, int delta, uint clustersize)
5757

5858
The following preprocessor definitions are added:
5959

60-
[source,c]
60+
[source,opencl_c]
6161
----
6262
#define cl_khr_subgroup_rotate 1
6363
----
@@ -75,7 +75,7 @@ or `half` (if half precision is supported).
7575
|*Function*
7676
|*Description*
7777

78-
|[source,c]
78+
|[source,opencl_c]
7979
----
8080
gentype sub_group_rotate(
8181
gentype value, int delta)
@@ -89,7 +89,7 @@ the subgroup, otherwise the behavior is undefined.
8989
The return value is undefined if the work item with subgroup local ID equal to the
9090
calculated index is inactive.
9191

92-
|[source,c]
92+
|[source,opencl_c]
9393
----
9494
gentype sub_group_clustered_rotate(
9595
gentype value, int delta, uint clustersize)

ext/quick_reference.asciidoc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,10 @@
249249
| Hold Votes Among Sub-Groupings of Work Items
250250
| Extension
251251

252+
| <<cl_khr_subgroup_rotate,cl_khr_subgroup_rotate>>
253+
| Rotation Among Sub-Groupings of Work Items
254+
| Extension
255+
252256
| <<cl_khr_subgroup_shuffle,cl_khr_subgroup_shuffle>>
253257
| General-Purpose Shuffles Among Sub-Groupings of Work Items
254258
| Extension
@@ -257,10 +261,6 @@
257261
| Relative Shuffles Among Sub-Groupings of Work Items
258262
| Extension
259263

260-
| <<cl_khr_subgroup_rotate,cl_khr_subgroup_rotate>>
261-
| Rotation Among Sub-Groupings of Work Items
262-
| Extension
263-
264264
| <<cl_khr_suggested_local_work_size,cl_khr_suggested_local_work_size>>
265265
| Query a Suggested Local Work Size
266266
| Extension

0 commit comments

Comments
 (0)