Spaces:
Running
Running
metal : avoid uint (llama/11019)
Browse files
ggml/src/ggml-metal/ggml-metal.m
CHANGED
|
@@ -2067,8 +2067,8 @@ static void ggml_metal_encode_node(
|
|
| 2067 |
GGML_ASSERT(ne12 % ne02 == 0);
|
| 2068 |
GGML_ASSERT(ne13 % ne03 == 0);
|
| 2069 |
|
| 2070 |
-
const
|
| 2071 |
-
const
|
| 2072 |
|
| 2073 |
// find the break-even point where the matrix-matrix kernel becomes more efficient compared
|
| 2074 |
// to the matrix-vector kernel
|
|
|
|
| 2067 |
GGML_ASSERT(ne12 % ne02 == 0);
|
| 2068 |
GGML_ASSERT(ne13 % ne03 == 0);
|
| 2069 |
|
| 2070 |
+
const uint32_t r2 = ne12/ne02;
|
| 2071 |
+
const uint32_t r3 = ne13/ne03;
|
| 2072 |
|
| 2073 |
// find the break-even point where the matrix-matrix kernel becomes more efficient compared
|
| 2074 |
// to the matrix-vector kernel
|