CUDA: fix round issue, under MSVC the CPU and GPU agree (#30229)

This commit is contained in:
Dante authored and GitHub committed 2026-10-09 19:59:50 +02:00
1 parent 8e2d31e0eb
commit 79e2e74eb1
1 file changed
+1 -1
+1 -1
View File
@@ -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) {