-
Notifications
You must be signed in to change notification settings - Fork 221
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve SYCL kernels in CSR table #2794
Conversation
/intelci: run |
/intelci: run |
/intelci: run |
|
||
sycl::event::wait_and_throw({ event_count_lt_min, event_count_gt_max }); | ||
// count the number of elements which are less than min_vaule and | ||
// the the number of elements which are greater than max_value using sycl::reduction |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
typo
@@ -418,10 +419,9 @@ bool is_sorted(sycl::queue& queue, | |||
auto count_descending_reduction = | |||
sycl::reduction(count_buf, cgh, sycl::ext::oneapi::plus<std::int64_t>()); | |||
|
|||
cgh.parallel_for(sycl::nd_range<1>{ count - 1, 1 }, | |||
cgh.parallel_for(sycl::range<1>{ dal::detail::integral_cast<std::size_t>(count - 1) }, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure, that this was necessary
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM with minor comments
SYCL reduction kernels were improved in
csr_table
class implementation:nd_range<1>
was changed torange<1>
. The incorrectly used work group size was removed.nd_item<1>
was changed toid