Skip to content

Commit 3cb9fbd

Browse files
committed
metal : disable fast-math for some cpy kernels
ggml-ci
1 parent caf5681 commit 3cb9fbd

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ggml/src/ggml-metal/ggml-metal.metal

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,7 @@ void quantize_q5_0(device const float * src, device block_q5_0 & dst) {
203203
}
204204

205205
void quantize_q5_1(device const float * src, device block_q5_1 & dst) {
206+
#pragma METAL fp math_mode(safe)
206207
float max = src[0];
207208
float min = src[0];
208209

0 commit comments

Comments
 (0)