Replies: 1 comment 3 replies
-
For uint32_t ballot(sycl::sub_group sg, int predicate) {
size_t id = sg.get_local_linear_id();
uint32_t local_val = (predicate ? 1u : 0u) << id;
return sycl::reduce_over_group(sg, local_val, sycl::plus<>());
} |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The graph coloring example in CUDA shows the functions __ballot and __ffs.
https://userweb.cs.txstate.edu/~burtscher/research/ECL-GC/ECL-GC_12.cu
Do they have SYCL equivalents ?
Thanks
Beta Was this translation helpful? Give feedback.
All reactions