Skip to content

Commit

Permalink
Merge pull request #634 from gmlueck/gmlueck/sycl-lang-version
Browse files Browse the repository at this point in the history
Redefine SYCL_LANGUAGE_VERSION
  • Loading branch information
gmlueck authored Jan 23, 2025
2 parents 401590e + fbee2a4 commit 7dea419
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 8 deletions.
20 changes: 13 additions & 7 deletions adoc/chapters/device_compiler.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -349,13 +349,19 @@ The standard {cpp} preprocessing directives and macros are supported.
The following preprocessor macros must be defined by all conformant
implementations:

* [code]#SYCL_LANGUAGE_VERSION# substitutes an integer reflecting the version
number and revision of the SYCL language being supported by the
implementation.
The version of SYCL defined in this document will have
[code]#SYCL_LANGUAGE_VERSION# substitute the integer
[code]#{SYCL_LANGUAGE_VERSION}#, composed with the general SYCL version
followed by 2 digits representing the revision number;
* [code]#SYCL_LANGUAGE_VERSION# is defined to an integer literal that
indicates the version of the SYCL specification to which the implementation
conforms.
+
[width="100%",options="header",separator="@",cols="50%,50%"]
|====
@ SYCL version @ Macro defined as
a@ SYCL 2020 a@ [code]#202012L#
a@ SYCL {SYCL_VERSION} a@ [code]#{SYCL_LANGUAGE_VERSION}L#
|====
+
Future versions of the SYCL specification will define this macro to an integer
literal with greater value.
* [code]#SYCL_DEVICE_COPYABLE# is defined to 1 if the implementation supports
explicitly specified <<device-copyable>> types as described in
<<sec::device.copyable>>.
Expand Down
2 changes: 1 addition & 1 deletion sycl_version.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
SYCLLANGVERSION=NEXT
SYCLLANGVERSION=000000
SYCLNAME=SYCL
SYCLVERSION=NEXT
SYCLREVISION=1

0 comments on commit 7dea419

Please sign in to comment.