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

This commit is contained in:
Dante
2026-10-09 23:29:50 +05:30
committed by GitHub
parent 8e2d31e0eb
commit 79e2e74eb1
+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) {