Skip to content

Commit 0afd073

Browse files
committed
Use get_global_linear_id() instead
ggml-ci
1 parent 23b9e05 commit 0afd073

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ggml/src/ggml-sycl/set_rows.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ static void set_rows_sycl_q(
4343
stream,
4444
sycl::nd_range<1>(grid_size * block_size, block_size),
4545
[=](sycl::nd_item<1> item_ct1) {
46-
const int64_t i = item_ct1.get_global_id(0);
46+
const int64_t i = item_ct1.get_global_linear_id();
4747
if (i >= total_blocks) return;
4848
const int64_t i_base = i * qk;
4949
const int64_t i03 = i_base / (ne00 * ne01 * ne02);

0 commit comments

Comments
 (0)