Skip to content

Commit c2972dd

Browse files
committed
Merge branch 'main' into khr_addrspace_cast
2 parents 61d8237 + 35b4ece commit c2972dd

194 files changed

Lines changed: 5733 additions & 3047 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.clang-format

Lines changed: 19 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,19 @@
1-
Language: Cpp
2-
BasedOnStyle: LLVM
3-
AccessModifierOffset: -1
4-
BreakInheritanceList: BeforeComma
5-
BreakConstructorInitializers: BeforeComma
6-
Cpp11BracedListStyle: false
7-
PointerAlignment: Left
8-
SpaceBeforeCpp11BracedList: true
1+
---
2+
Language: Cpp
3+
BasedOnStyle: Google
4+
AlignTrailingComments: true
5+
AllowShortBlocksOnASingleLine: false
6+
AllowShortIfStatementsOnASingleLine: true
7+
AlwaysBreakAfterDefinitionReturnType: false
8+
AlwaysBreakTemplateDeclarations: true
9+
BreakConstructorInitializersBeforeComma: false
10+
ConstructorInitializerAllOnOneLineOrOnePerLine: true
11+
# Do not adapt pointer and reference alignment to the current style.
12+
# Just use PointerAlignment parameter unconditionally for consistency.
13+
DerivePointerAlignment: false
14+
Standard: c++17
15+
SpacesInParentheses: false
16+
SpacesInAngles: false
17+
SpaceInEmptyParentheses: false
18+
SpacesInCStyleCastParentheses: false
19+
SortIncludes: true
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: 🐛 Bug report
2+
description: Report something broken in the specification.
3+
labels: ["bug"]
4+
body:
5+
- type: markdown
6+
attributes:
7+
value: |
8+
Thank you for taking the time to report a bug!
9+
10+
Please remember that this GitHub repository is for the SYCL *specification*; if you have found a bug in a SYCL *implementation*, you should contact the developers of that implementation instead.
11+
12+
- type: dropdown
13+
id: specification-version
14+
attributes:
15+
label: Specification Version
16+
description: |
17+
What version of the specification contains the bug?
18+
options:
19+
- SYCL 2020 (Revision 10)
20+
- SYCL 2020 (Revision 9)
21+
- SYCL 2020 (Source)
22+
- SYCL Next (Source)
23+
default: 0
24+
validations:
25+
required: true
26+
27+
- type: textarea
28+
id: section-numbers
29+
attributes:
30+
label: Section Number(s)
31+
description: List out the section(s) containing the bug, including a link if you are viewing the HTML source (e.g., Section 5.6. Preprocessor directives and macros, https://registry.khronos.org/SYCL/specs/sycl-2020/html/sycl-2020.html#_preprocessor_directives_and_macros).
32+
validations:
33+
required: true
34+
35+
- type: textarea
36+
id: bug-description
37+
attributes:
38+
label: Bug Description
39+
description: |
40+
Explain why the specification is wrong.
41+
Please be as detailed as possible, and quote the specification text.
42+
validations:
43+
required: true
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
name: ❓ Clarification request
2+
description: Highlight an inconsistency or unclear description.
3+
labels: ["clarification"]
4+
body:
5+
- type: markdown
6+
attributes:
7+
value: |
8+
Thank you for taking the time to improve the SYCL specification.
9+
10+
- type: dropdown
11+
id: specification-version
12+
attributes:
13+
label: Specification Version
14+
description: |
15+
What version of the specification is unclear?
16+
options:
17+
- SYCL 2020 (Revision 10)
18+
- SYCL 2020 (Revision 9)
19+
- SYCL 2020 (Source)
20+
- SYCL Next (Source)
21+
default: 0
22+
validations:
23+
required: true
24+
25+
- type: textarea
26+
id: section-numbers
27+
attributes:
28+
label: Section Number(s)
29+
description: List out the section(s) that are unclear, including a link if you are viewing the HTML source (e.g., Section 5.6. Preprocessor directives and macros, https://registry.khronos.org/SYCL/specs/sycl-2020/html/sycl-2020.html#_preprocessor_directives_and_macros).
30+
validations:
31+
required: true
32+
33+
- type: textarea
34+
id: issue-description
35+
attributes:
36+
label: Issue Description
37+
description: |
38+
Explain why you think the specification is unclear.
39+
Please be as detailed as possible, and quote the specification text.
40+
validations:
41+
required: true
42+
43+
- type: textarea
44+
id: code-example
45+
attributes:
46+
label: Code Example (Optional)
47+
description: |
48+
Provide one or more SYCL examples to demonstrate the issue.
49+
This is not required, but may help others to understand the issue.
50+
validations:
51+
required: false

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
blank_issues_enabled: true
2+
contact_links: []
Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
name: 🚀 Feature request
2+
description: Request a new SYCL feature or extension.
3+
labels: ["enhancement"]
4+
body:
5+
- type: markdown
6+
attributes:
7+
value: |
8+
Thank you for taking the time to improve the SYCL specification.
9+
10+
- type: dropdown
11+
id: extension-type
12+
attributes:
13+
label: Extension Type
14+
description: |
15+
Is this an improvement to an existing SYCL feature, or a brand new feature?
16+
options:
17+
- "Improvement"
18+
- "New Feature"
19+
default: 1
20+
validations:
21+
required: true
22+
23+
- type: textarea
24+
id: feature-description
25+
attributes:
26+
label: Feature Description
27+
description: |
28+
Describe the desired feature in as much detail as possible.
29+
Be sure to explain why existing features are insufficient.
30+
validations:
31+
required: true
32+
33+
- type: textarea
34+
id: cpp-features
35+
attributes:
36+
label: Related Functionality in C++
37+
description: |
38+
If related functionality already exists in C++, please provide
39+
details.
40+
validations:
41+
required: false
42+
43+
- type: textarea
44+
id: similar-features
45+
attributes:
46+
label: Related Functionality in Other Languages
47+
description: |
48+
If related functionality already exists in other languages (e.g.,
49+
OpenCL, CUDA, OpenMP), please provide details.
50+
validations:
51+
required: false
52+
53+
- type: textarea
54+
id: existing-extensions
55+
attributes:
56+
label: Related SYCL Extensions
57+
description: |
58+
If related functionality already exists in the form of a SYCL
59+
extension, please provide a link to that extension.
60+
validations:
61+
required: false
62+

.github/workflows/CI.yml

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2021-2024 The Khronos Group, Inc.
1+
# Copyright 2021-2025 The Khronos Group, Inc.
22
# SPDX-License-Identifier: Apache-2.0
33

44
# CI to build asciidoctor spec targets, on push or manually
@@ -28,8 +28,8 @@ jobs:
2828
# Use the Khronos container with the asciidoctor toolchain preinstalled. We
2929
# reference the image by its SHA rather than its tag because they sometimes
3030
# overwrite a tag with a different image (which has a different SHA). This
31-
# SHA corresponds to tag "asciidoctor-spec.20240727".
32-
container: khronosgroup/docker-images@sha256:089687083ceb36483a3917389e4278718ab19c594099634f5dd80e22540c960f
31+
# SHA corresponds to tag "asciidoctor-spec.20250629".
32+
container: khronosgroup/docker-images@sha256:0f91e60e1af2bdd889783af3907f63279c08f573f2eccbc31094e348d1a32a4f
3333

3434
steps:
3535
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
@@ -52,3 +52,18 @@ jobs:
5252
name: spec-outputs
5353
path: |
5454
/tmp/out
55+
56+
check-clang-format:
57+
if: github.event_name == 'pull_request'
58+
runs-on: ubuntu-latest
59+
steps:
60+
- name: Checkout
61+
uses: actions/checkout@v4
62+
with:
63+
fetch-depth: 0 # Need to check out base branch as well
64+
- name: Install clang-format
65+
run: sudo apt update; sudo apt install -y clang-format-18
66+
# Inspired by SYCL-CTS
67+
- name: Run clang-format on changed files from adoc/code/
68+
run: |
69+
git diff -U0 --no-color ${{ github.event.pull_request.base.sha }} ./adoc/code/ | ./adoc/scripts/clang-format-diff.py -p1

.github/workflows/open_cts_issue.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ on:
1010
types: opened
1111
paths:
1212
- 'adoc/**'
13+
# We don't want to create issues for cherry-picks into older spec revisions
14+
branches:
15+
- main
1316
jobs:
1417
create-issue:
1518
runs-on: ubuntu-latest

COPYRIGHT.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright (c) 2011-2024 The Khronos Group, Inc.
1+
Copyright (c) 2011-2025 The Khronos Group, Inc.
22

33
This specification is protected by copyright laws and contains material proprietary
44
to Khronos. Except as described by these terms, it or any components

LICENSE.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright (c) 2011-2024 The Khronos Group, Inc.
1+
Copyright (c) 2011-2025 The Khronos Group, Inc.
22

33
The files in, and generated output documents from this SYCL-Docs project are
44
under a mix of copyright and license statements. Refer to the individual files

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
<!-- to update to newer CI when going public ![Build Status](https://api.travis-ci.com/KhronosGroup/SYCL-Docs.svg?branch=master) -->
44
<!-- to update to newer CI when going public [![SPEC master](https://img.shields.io/badge/SPEC-master-red.svg?logo=adobe-acrobat-reader)](https://khronosgroup.github.io/SYCL-Docs/sycl/sycl.pdf) -->
5-
[![SPEC 2020-9](https://img.shields.io/badge/SPEC-2020--9-orange.svg?logo=adobe-acrobat-reader)](https://www.khronos.org/registry/SYCL/specs/sycl-2020/pdf/sycl-2020.pdf)
6-
[![SPEC 2020-9](https://img.shields.io/badge/SPEC-2020--9-orange.svg?logo=HTML5)](https://www.khronos.org/registry/SYCL/specs/sycl-2020/html/sycl-2020.html)
5+
[![SPEC 2020-10](https://img.shields.io/badge/SPEC-2020--10-orange.svg?logo=adobe-acrobat-reader)](https://www.khronos.org/registry/SYCL/specs/sycl-2020/pdf/sycl-2020.pdf)
6+
[![SPEC 2020-10](https://img.shields.io/badge/SPEC-2020--10-orange.svg?logo=HTML5)](https://www.khronos.org/registry/SYCL/specs/sycl-2020/html/sycl-2020.html)
77
[![SPEC latest](https://img.shields.io/badge/SPEC-latest-red.svg?logo=adobe-acrobat-reader)](https://github.com/KhronosGroup/SYCL-Docs/actions?query=branch%3ASYCL-2020%2Fmaster+is%3Asuccess)
88
[![Join the Slack group](https://img.shields.io/badge/chat-on%20slack-blue.svg?logo=slack)](https://khr.io/slack)
99

0 commit comments

Comments
 (0)