Skip to content

[SYCL] Cannot use placeholder accessors with property lists. #3536

@j-stephan

Description

@j-stephan

The accessor properties extensions introduces an additional template parameter for accessors:

namespace sycl {
template <typename dataT,
          int dimensions,
          access::mode accessmode,
          access::target accessTarget,
          access::placeholder isPlaceholder,
          typename property_listT = accessor_property_list<>> // here
class accessor {

However, this cannot be used together with placeholder accessors because handler::require is missing this parameter:

require(accessor<DataT, Dims, AccMode, AccTarget, access::placeholder::true_t>

Example error from my test cases:

/home/jan/sycl-workspace/sycl/build/bin/../include/sycl/CL/sycl/handler.hpp:896:3: note: candidate template ignored: could not match 'accessor_property_list<(no argument)>' against 'accessor_property_list<sycl::INTEL::property::buffer_location::instance<0>>'
  require(accessor<DataT, Dims, AccMode, AccTarget, access::placeholder::true_t>
  ^

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions