Skip to content

Commit 56d6914

Browse files
committed
ggml : set_rows use std::min instead of MIN
1 parent 929e118 commit 56d6914

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ggml/src/ggml-cpu/ops.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4483,11 +4483,11 @@ static void ggml_compute_forward_set_rows_f32(
44834483
const int nth = params->nth;
44844484

44854485
// rows per thread
4486-
const int dr = (nr + nth - 1)/nth;
4486+
const int64_t dr = (nr + nth - 1)/nth;
44874487

44884488
// row range for this thread
4489-
const int ir0 = dr*ith;
4490-
const int ir1 = MIN(ir0 + dr, nr);
4489+
const int64_t ir0 = dr*ith;
4490+
const int64_t ir1 = std::min(ir0 + dr, nr);
44914491

44924492
ggml_from_float_t const from_float = ggml_get_type_traits_cpu(dst->type)->from_float;
44934493

0 commit comments

Comments
 (0)