rtx-cfd: rustfmt over the repaired GPU modules and tests
CI / Build (macos-latest) (push) Waiting to run
CI / Test (macos-latest) (push) Blocked by required conditions
CI / Test (ubuntu-latest) (push) Blocked by required conditions
CI / Python Bindings (maturin) (macos-latest) (push) Blocked by required conditions
CI / Python Bindings (maturin) (ubuntu-latest) (push) Blocked by required conditions
CI / WASM Build + Size Check (push) Blocked by required conditions
CI / Distributed Training Tests (push) Blocked by required conditions
CI / CI Success (push) Blocked by required conditions
CI / Build (ubuntu-latest) (push) Failing after 7s
CI / Clippy Check (push) Failing after 7s
Documentation / Build API Documentation (push) Failing after 5s
Documentation / Build User Guide (push) Successful in 5s
CI / Build CPU-Only (Explicit) (push) Failing after 7s
CI / Format Check (push) Failing after 14s
Performance Benchmarks / Run Benchmarks (push) Successful in 2m30s

This commit is contained in:
Omar Sobh
2026-09-16 07:19:50 -05:00
parent 3dadf1ab5c
commit 7f4d437199
8 changed files with 46 additions and 13 deletions
@@ -20,7 +20,7 @@ mod cuda_kernel_manager_tests {
viscosity: 0.01,
density: 1.0,
device_id: 0,
..CfdConfig::default()
..CfdConfig::default()
}
}
@@ -25,7 +25,7 @@ mod cuda_tests {
viscosity: 0.01,
density: 1.0,
device_id: 0,
..CfdConfig::default()
..CfdConfig::default()
}
}
@@ -21,7 +21,7 @@ mod gpu_reduction_tests {
viscosity: 0.01,
density: 1.0,
device_id: 0,
..CfdConfig::default()
..CfdConfig::default()
}
}
@@ -46,7 +46,13 @@ mod cuda_tests {
d_phi = kernel_manager.copy_to_device(&phi)?;
// Run advection kernel
advection_kernel.apply(&d_phi, &mut d_phi_new, velocity as f32, dt as f32, dx as f32)?;
advection_kernel.apply(
&d_phi,
&mut d_phi_new,
velocity as f32,
dt as f32,
dx as f32,
)?;
// Copy result back
let mut result = vec![0.0f32; nx];
@@ -101,7 +107,13 @@ mod cuda_tests {
let mut d_phi_new = kernel_manager.allocate_f32(nx)?;
d_phi = kernel_manager.copy_to_device(&phi)?;
advection_kernel.apply(&d_phi, &mut d_phi_new, velocity as f32, dt as f32, dx as f32)?;
advection_kernel.apply(
&d_phi,
&mut d_phi_new,
velocity as f32,
dt as f32,
dx as f32,
)?;
let mut result = vec![0.0f32; nx];
result = kernel_manager.copy_from_device(&d_phi_new)?;