Skip to content

Commit 27552ed

Browse files
committed
CP023 Accessor aliases, revision 0.2
In order to reduce the verbosity of programming with SYCL accessors, this proposal aims to reduce the number of template parameters to just 2 from the current 5. It achieves this by slightly revising how to treat read-only data and adding alias templates based on the access target. 1. Main changes * Default accessor template parameters * Simplify access modes * Alias templates based on access target * Extend the handler class 2. Accessor alias templates * `constant_buffer_accessor * `host_accessor` 3. Treat `const T` the same as `access::mode::read` * Simplifies a lot of code 4. Define implicit conversions for equivalent types 5. Implicit conversions that add `const` 6. Overload for `handler::require` that also takes an access mode * To weaken the access mode 8. Default all accessor template parameters * Expect the data type * Default to an accessor to global buffer with read-write access * Assumes accessors can be a placeholder without template parameter 9. Discussed some considerations and alternatives 10. Examples of reduced verbosity
1 parent 52680fe commit 27552ed

File tree

3 files changed

+411
-294
lines changed

3 files changed

+411
-294
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,4 +63,4 @@ from this registry in the future.
6363
| CP020 | [Interop Task](interop_task/interop_task.md) | SYCL 1.2.1 | 16 January 2019 | 16 January 2019 | _Available since CE 1.0.5_ |
6464
| CP021 | [Default-Constructed Buffers](default-constructed-buffers/default-constructed-buffers.md) | SYCL 1.2.1 | 27 August 2019 | 5 September 2019 | _Draft_ |
6565
| CP022 | [Host Task with Interop capabilities](host_task/host_task.md) | SYCL 1.2.1 | 16 January 2019 | 20 January 2020 | _Final Draft_ |
66-
| CP023 | [Accessor aliases](accessor-alias/index.md) | SYCL 1.2.1 vendor extension | 22 September 2019 | 5 March 2020 | _Work in Progress_ |
66+
| CP023 | [Accessor aliases](accessor-alias/index.md) | SYCL Next (after 1.2.1) | 22 September 2019 | 9 March 2020 | _Work in Progress_ |

accessor-alias/index.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@
44
|-------------|--------|
55
| Name | Accessor aliases |
66
| Date of Creation | 22 September 2019 |
7-
| Target | SYCL 1.2.1 vendor extension |
7+
| Revision | 0.2 |
8+
| Latest Update | 9 March 2020 |
9+
| Target | SYCL Next (after 1.2.1) |
810
| Current Status | _Work in Progress_ |
911
| Reply-to | Peter Žužek <[email protected]> |
1012
| Original author | Peter Žužek <[email protected]> |
@@ -17,4 +19,4 @@ in order to reduce accessor verbosity.
1719

1820
## Versions
1921

20-
[Version 1](sycl-2.2/index.md)
22+
[Revision 0.2](sycl-2.2/index.md)

0 commit comments

Comments
 (0)