Skip to content

Commit 3aa84d5

Browse files
committed
Refactor and use ceil_div
1 parent f2d2818 commit 3aa84d5

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
@@ -64,7 +64,7 @@ static void set_rows_sycl(
6464
const int64_t total_elements = ne00 * ne01 * ne02 * ne03;
6565

6666
constexpr int block_size = 64;
67-
const int64_t grid_size = (total_elements + block_size - 1) / block_size;
67+
const int64_t grid_size = ceil_div(total_elements, block_size);
6868

6969
sycl_parallel_for(
7070
stream,

0 commit comments

Comments
 (0)