From f3f6ac21fb95bf57621cb9ea8764dfd2c608036f Mon Sep 17 00:00:00 2001 From: Omar Sobh Date: Wed, 16 Sep 2026 07:24:54 -0500 Subject: [PATCH] rtx-cfd CUDA kernels: no host includes at all in the NVRTC sources; the float limits defined inline --- crates/specialized/rtx-cfd/src/kernels/cuda/reduction.cu | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/crates/specialized/rtx-cfd/src/kernels/cuda/reduction.cu b/crates/specialized/rtx-cfd/src/kernels/cuda/reduction.cu index a3c20cf..fbd151a 100644 --- a/crates/specialized/rtx-cfd/src/kernels/cuda/reduction.cu +++ b/crates/specialized/rtx-cfd/src/kernels/cuda/reduction.cu @@ -1,3 +1,6 @@ +#ifndef FLT_MAX +#define FLT_MAX 3.402823466e+38f +#endif /** * CUDA kernels for reduction operations * @@ -10,7 +13,6 @@ */ // (no host headers: NVRTC compiles these as device code with the built-ins only) -#include // Warp size constant #define WARP_SIZE 32