-
Notifications
You must be signed in to change notification settings - Fork 17
Placeholder accessors can be default constructed #18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -9,7 +9,7 @@ | |
| | Reply-to | Ruyman Reyes <[email protected]> | | ||
| | Original author | Ruyman Reyes <[email protected]> | | ||
| | Requirements | CP001 | | ||
| | Contributors | Gordon Brown <[email protected]>, Victor Lomuller <[email protected]>, Mehdi Goli <[email protected]>, Peter Zuzek <[email protected]>, Luke Iwanski <[email protected]> | | ||
| | Contributors | Gordon Brown <[email protected]>, Victor Lomuller <[email protected]>, Mehdi Goli <[email protected]>, Peter Zuzek <[email protected]>, Luke Iwanski <[email protected]>, Michael Haidl <[email protected]> | | ||
|
|
||
| ## Overview | ||
|
|
||
|
|
@@ -172,7 +172,10 @@ except for the aforementioned modifications. | |
|
|
||
| ### When `is_placeholder` returns true | ||
|
|
||
| The accessor API features constructors that don't take the handler parameter. | ||
| The accessor API features constructors that don't take the handler parameter | ||
| and/or memory object as a constructor. Accessors can then be default | ||
| constructed, and the memory object can be assigned later when registering | ||
| the accessor in the command group. | ||
|
|
||
| In addition, a new method to obtain a normal accessor from the placeholder | ||
| accessor is provided. | ||
|
|
@@ -192,6 +195,12 @@ The handler gains a new method, | |
| that registers the requirements of the placeholder accessor on the given | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If we wish to support the option for constructing a regular accessor from a placeholder accessor (i.e. On a side note, perhaps we should consider changing the naming of this member function, |
||
| command group. | ||
|
|
||
| Another method, that allows specifying the memory object the placeholder | ||
| accessor will be associated is also provided: | ||
|
|
||
| `handler::require(buffer<T, dim> b, | ||
Ruyk marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| accessor<T, dim, mode, target, acess::placeholder::true_t>)` | ||
|
|
||
|
|
||
| [1]: https://github.com/codeplaysoftware/sycl-blas "SYCL-BLAS" | ||
| [2]: https://github.com/lukeiwanski/tensorflow "TensorFlow/Eigen" | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should describe the additional constructors which need to be added to allow deferred initialization of the memory object and handler.