rtx-cfd legacy GPU: the kernel-writing methods take &mut self; read-only ones keep a shared borrow
CI / Format Check (push) Failing after 6s
Performance Benchmarks / Run Benchmarks (push) Failing after 7s
CI / Clippy Check (push) Failing after 11s
CI / Build (ubuntu-latest) (push) Failing after 13s
Documentation / Build User Guide (push) Successful in 6s
Documentation / Build API Documentation (push) Failing after 23s
CI / Build CPU-Only (Explicit) (push) Failing after 2m0s
CI / Build (macos-latest) (push) Canceled after 0s
CI / Python Bindings (maturin) (macos-latest) (push) Canceled after 0s
CI / Python Bindings (maturin) (ubuntu-latest) (push) Canceled after 0s
CI / Test (macos-latest) (push) Canceled after 0s
CI / Test (ubuntu-latest) (push) Canceled after 0s
CI / WASM Build + Size Check (push) Canceled after 0s
CI / Distributed Training Tests (push) Canceled after 0s
CI / CI Success (push) Canceled after 0s

This commit is contained in:
Omar Sobh
2026-09-16 07:29:05 -05:00
parent 0de750bad1
commit fd5972c949
5 changed files with 32 additions and 32 deletions
@@ -253,7 +253,7 @@ impl D2Q9GpuSolver {
}
/// GPU-accelerated collision step
fn gpu_collision_step(&self) -> CfdResult<()> {
fn gpu_collision_step(&mut self) -> CfdResult<()> {
let buffers = self
.gpu_buffers
.as_mut()
@@ -300,7 +300,7 @@ impl D2Q9GpuSolver {
}
/// GPU-accelerated streaming step
pub fn gpu_streaming_step(&self) -> CfdResult<()> {
pub fn gpu_streaming_step(&mut self) -> CfdResult<()> {
let buffers = self
.gpu_buffers
.as_mut()
@@ -344,7 +344,7 @@ impl D2Q9GpuSolver {
}
/// GPU-accelerated macroscopic variable computation
fn gpu_compute_macroscopic(&self) -> CfdResult<()> {
fn gpu_compute_macroscopic(&mut self) -> CfdResult<()> {
let buffers = self
.gpu_buffers
.as_mut()
@@ -391,7 +391,7 @@ impl D2Q9GpuSolver {
}
/// Compute equilibrium distributions on GPU
fn gpu_compute_equilibrium(&self) -> CfdResult<()> {
fn gpu_compute_equilibrium(&mut self) -> CfdResult<()> {
let buffers = self
.gpu_buffers
.as_mut()
@@ -435,7 +435,7 @@ impl D2Q9GpuSolver {
}
/// GPU-accelerated bounce-back boundary conditions
pub fn gpu_apply_bounce_back_boundaries(&self) -> CfdResult<()> {
pub fn gpu_apply_bounce_back_boundaries(&mut self) -> CfdResult<()> {
let buffers = self
.gpu_buffers
.as_mut()
@@ -539,7 +539,7 @@ impl D2Q9GpuSolver {
pub fn get_macroscopic_at(&self, i: usize, j: usize) -> CfdResult<(f64, Vector2<f64>)> {
let buffers = self
.gpu_buffers
.as_mut()
.as_ref()
.ok_or_else(|| CfdError::gpu_error("GPU buffers not initialized"))?;
let idx = j * buffers.nx + i;
@@ -585,7 +585,7 @@ impl D2Q9GpuSolver {
pub fn update_flow_field(&self, flow_field: &mut FlowField) -> CfdResult<()> {
let buffers = self
.gpu_buffers
.as_mut()
.as_ref()
.ok_or_else(|| CfdError::gpu_error("GPU buffers not initialized"))?;
let (nx, ny, _, _) = flow_field.grid_info();