Skip to content

Commit 1a64014

Browse files
Use get_global_linear_id instead of get_global_id and rely on implicit conversion
1 parent 399cdd1 commit 1a64014

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dpctl/tensor/libtensor/include/kernels/sorting/sort_utils.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ sycl::event iota_impl(sycl::queue &exec_q,
5858
sycl::event e = exec_q.submit([&](sycl::handler &cgh) {
5959
cgh.depends_on(dependent_events);
6060
cgh.parallel_for<KernelName>(ndRange, [=](sycl::nd_item<1> it) {
61-
const std::size_t gid = it.get_global_id();
61+
const std::size_t gid = it.get_global_linear_id();
6262
const auto &sg = it.get_sub_group();
6363
const std::uint32_t lane_id = sg.get_local_id()[0];
6464

0 commit comments

Comments
 (0)