Skip to content
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

Merged
merged 4 commits into from
May 24, 2024
Merged

Conversation

Vika-F
Copy link
Contributor

@Vika-F Vika-F commented May 21, 2024

SYCL reduction kernels were improved in csr_table class implementation:

  • nd_range<1> was changed to range<1>. The incorrectly used work group size was removed.
  • nd_item<1> was changed to id

@Vika-F
Copy link
Contributor Author

Vika-F commented May 21, 2024

/intelci: run

@Vika-F
Copy link
Contributor Author

Vika-F commented May 22, 2024

/intelci: run

@Vika-F Vika-F marked this pull request as ready for review May 22, 2024 15:37
@Vika-F Vika-F requested review from avolkov-intel and removed request for samir-nasibli and Alexsandruss May 22, 2024 15:37
@Vika-F Vika-F added the dpc++ Issue/PR related to DPC++ functionality label May 22, 2024
@Vika-F
Copy link
Contributor Author

Vika-F commented May 22, 2024

/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
Copy link
Contributor

@avolkov-intel avolkov-intel May 24, 2024

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) },
Copy link
Contributor

@avolkov-intel avolkov-intel May 24, 2024

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

Copy link
Contributor

@avolkov-intel avolkov-intel left a 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

@Vika-F Vika-F merged commit f06b35a into uxlfoundation:main May 24, 2024
17 of 18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dpc++ Issue/PR related to DPC++ functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants