Skip to content

group_ballot predicate argument should be defaulted #8201

Closed
@Pennycook

Description

@Pennycook

Describe the bug
sycl_ext_sub_group_mask defines ballot with predicate=true, but the implementation does not default the argument:

group_ballot

group_ballot(Group g, bool predicate) {

To Reproduce

#include <sycl/sycl.hpp>

int main() {
  sycl::queue Q;
  Q.parallel_for(sycl::nd_range<1>{32, 32}, [=](sycl::nd_item<1> item) {
    auto Mask = sycl::ext::oneapi::group_ballot(item.get_sub_group());
  });
}

Environment (please complete the following information):

  • OS: Linux, Windows
  • Target device and vendor: Any
  • DPC++ version: b13561c
  • Dependencies version: N/A

Additional context
None.

Metadata

Metadata

Assignees

Labels

bugSomething isn't workinggood first issueGood for newcomers

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions