From 79e2e74eb11022c1ba2e438df7f0ca2d4c10f8b6 Mon Sep 17 00:00:00 2001 From: Dante <144588016+KafKafrnZ@users.noreply.github.com> Date: Fri, 9 Oct 2026 23:29:50 +0530 Subject: [PATCH] CUDA: fix round issue, under MSVC the CPU and GPU agree (#30229) --- ggml/src/ggml-cuda/unary.cu | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ggml/src/ggml-cuda/unary.cu b/ggml/src/ggml-cuda/unary.cu index 436fdfffb9..af839acd74 100644 --- a/ggml/src/ggml-cuda/unary.cu +++ b/ggml/src/ggml-cuda/unary.cu @@ -107,7 +107,7 @@ static __device__ __forceinline__ float op_ceil(float x) { } static __device__ __forceinline__ float op_round(float x) { - return round(x); + return roundf(x); } static __device__ __forceinline__ float op_trunc(float x) {