mirror of
https://github.com/ggml-org/llama.cpp.git
synced 2026-10-28 09:45:55 +08:00
CUDA: fix round issue, under MSVC the CPU and GPU agree (#30229)
This commit is contained in:
1 parent
8e2d31e0eb
commit
79e2e74eb1
1 file changed
+1
-1
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user