forked from intel/llvm
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SYCL] Fix method definition of sub_group_mask::group_ballot (intel#8212
) Closes intel#8201 provided default value for `predicate` argument in `sub_group_mask::group_ballot` definition --------- Co-authored-by: Alexey Sachkov <alexey.sachkov@intel.com>
- Loading branch information
1 parent
4bf87d2
commit e4024d7
Showing
2 changed files
with
19 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
// RUN: %clangxx -fsycl -fsycl-device-only -fsyntax-only -Xclang -verify %s | ||
// expected-no-diagnostics | ||
|
||
#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()); | ||
}); | ||
} |