Skip to content

Commit 7905e94

Browse files
committed
CP023 Accessor aliases, revision 0.3
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` as a new type 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. Added `property::discard` 7. Overload for `handler::require` that also takes `property::discard` * To ignore previous data 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. Good support for CTAD * Deduction tags as compile-time properties * Made all accessor constructors variadic templates 10. Discussed some considerations and alternatives 11. Examples of reduced verbosity
1 parent 736ef71 commit 7905e94

File tree

3 files changed

+198
-71
lines changed

3 files changed

+198
-71
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,5 +63,5 @@ 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 Next (after 1.2.1) | 22 September 2019 | 31 March 2020 | _Work in Progress_ |
66+
| CP023 | [Accessor aliases](accessor-alias/index.md) | SYCL Next (after 1.2.1) | 22 September 2019 | 6 April 2020 | _Work in Progress_ |
6767
| CP026 | [Generalized Error Handling For SYCL](error-handling/sycl-error-handling.md) | SYCL Next | 10 March 2020 | 10 March 2020 | _Under Review_ |

accessor-alias/index.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
|-------------|--------|
55
| Name | Accessor aliases |
66
| Date of Creation | 22 September 2019 |
7-
| Revision | 0.2 |
8-
| Latest Update | 31 March 2020 |
7+
| Revision | 0.3 |
8+
| Latest Update | 6 April 2020 |
99
| Target | SYCL Next (after 1.2.1) |
1010
| Current Status | _Work in Progress_ |
1111
| Reply-to | Peter Žužek <[email protected]> |
1212
| Original author | Peter Žužek <[email protected]> |
13-
| Contributors | |
13+
| Contributors | Gordon Brown [email protected] |
1414

1515
## Overview
1616

@@ -19,4 +19,4 @@ in order to reduce accessor verbosity.
1919

2020
## Versions
2121

22-
[Revision 0.2](sycl-2.2/index.md)
22+
[Revision 0.3](sycl-2.2/index.md)

0 commit comments

Comments
 (0)