From 956e9d38e21073e9ab03807e8f6dc62342a101c2 Mon Sep 17 00:00:00 2001 From: Omar Sobh Date: Wed, 16 Sep 2026 01:03:33 -0500 Subject: [PATCH] =?UTF-8?q?rtx-cfd:=20the=20cuda=20feature=20builds=20agai?= =?UTF-8?q?n=20=E2=80=94=20the=20duplicate=20CudaKernelManager::stream=20r?= =?UTF-8?q?emoved,=20the=20legacy=20k-epsilon=20GPU=20model=20(broken=20si?= =?UTF-8?q?nce=20the=20initial=20commit)=20kept=20out=20of=20the=20build?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- crates/specialized/rtx-cfd/src/kernels/cuda_simple.rs | 5 ----- crates/specialized/rtx-cfd/src/turbulence/mod.rs | 7 +++++-- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/crates/specialized/rtx-cfd/src/kernels/cuda_simple.rs b/crates/specialized/rtx-cfd/src/kernels/cuda_simple.rs index e89b84a..d6869ae 100644 --- a/crates/specialized/rtx-cfd/src/kernels/cuda_simple.rs +++ b/crates/specialized/rtx-cfd/src/kernels/cuda_simple.rs @@ -124,11 +124,6 @@ impl CudaKernelManager { .ok_or_else(|| CfdError::gpu_error(&format!("Module {} not found", name))) } - /// Get the CUDA stream - pub fn stream(&self) -> &Arc { - &self.stream - } - /// Perform GPU reduction to compute sum pub fn reduce_sum(&self, input: &CudaSlice) -> CfdResult { let n = input.len(); diff --git a/crates/specialized/rtx-cfd/src/turbulence/mod.rs b/crates/specialized/rtx-cfd/src/turbulence/mod.rs index 924f47e..abdd8fb 100644 --- a/crates/specialized/rtx-cfd/src/turbulence/mod.rs +++ b/crates/specialized/rtx-cfd/src/turbulence/mod.rs @@ -10,7 +10,10 @@ pub mod k_epsilon; /// GPU-accelerated turbulence models #[cfg(feature = "cuda")] -pub mod k_epsilon_gpu; +// PERF-2 (2026-09-16): the legacy k-epsilon GPU model no longer matches +// `KEpsilonConstants` and has not compiled since the initial commit; kept out +// of the `cuda` build until someone needs it. +// pub mod k_epsilon_gpu; pub mod smagorinsky; #[cfg(feature = "cuda")] pub mod smagorinsky_gpu; @@ -19,7 +22,7 @@ pub mod wall_functions; pub use k_epsilon::{KEpsilonConstants, KEpsilonModel, KEpsilonVariant}; #[cfg(feature = "cuda")] -pub use k_epsilon_gpu::KEpsilonGpuModel; +// pub use k_epsilon_gpu::KEpsilonGpuModel; pub use smagorinsky::{SmagorinskyConstants, SmagorinskyModel}; pub use wall_functions::{EnhancedWallTreatment, LogLawWallFunction, WallFunction};