Open ProGTX opened 4 years ago
That looks like a good simplification. You could also add some CTAD if compiled with C++17 or higher.
@keryell I've greatly simplified the proposal, and I've added a section on CTAD. I think I would need to add deduction guides to the accessor class, I might still add that. There's also the problem that CTAD doesn't work on alias templates in C++17, so maybe I should add something for C++20 as well?
That looks good. Probably you need to coordinate with Intel to unify the simplifications they are pushing for too.
I've pushed revision 0.3, which focuses a lot more on CTAD and makes host_accessor
a separate type
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.
host_accessor
const T
the same asaccess::mode::read
const
handler::require
that also takes an access mode