rtx-cfd legacy GPU: kernel outputs were device-buffer CLONES (every write lost) — the buffers are borrowed mutably now; the Poisson kernels keep boundary Dirichlet values; tests: the advection pulse marched 50 steps, the Jacobi budget 20k, the reduction reference in f64
CI / Python Bindings (maturin) (ubuntu-latest) (push) Blocked by required conditions
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 / 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 CPU-Only (Explicit) (push) Failing after 5s
Documentation / Build User Guide (push) Successful in 5s
Documentation / Build API Documentation (push) Failing after 5s
CI / Format Check (push) Failing after 10s
CI / Build (ubuntu-latest) (push) Failing after 1m22s
CI / Clippy Check (push) Failing after 1m38s
Performance Benchmarks / Run Benchmarks (push) Successful in 2m50s
CI / Python Bindings (maturin) (ubuntu-latest) (push) Blocked by required conditions
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 / 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 CPU-Only (Explicit) (push) Failing after 5s
Documentation / Build User Guide (push) Successful in 5s
Documentation / Build API Documentation (push) Failing after 5s
CI / Format Check (push) Failing after 10s
CI / Build (ubuntu-latest) (push) Failing after 1m22s
CI / Clippy Check (push) Failing after 1m38s
Performance Benchmarks / Run Benchmarks (push) Successful in 2m50s
This commit is contained in:
@@ -37,7 +37,7 @@ mod gpu_reduction_tests {
|
||||
|
||||
// Create test data
|
||||
let test_data: Vec<f32> = (1..=100).map(|i| i as f32).collect();
|
||||
let expected_sum = test_data.iter().sum::<f32>();
|
||||
let expected_sum = test_data.iter().map(|&v| v as f64).sum::<f64>() as f32; // f64 reference: a sequential f32 sum of a million terms carries ~1e-3 of rounding
|
||||
|
||||
// Copy to GPU
|
||||
let gpu_data = manager.copy_to_device(&test_data)?;
|
||||
@@ -100,7 +100,7 @@ mod gpu_reduction_tests {
|
||||
// Create large test array
|
||||
let n = 1_000_000;
|
||||
let test_data: Vec<f32> = (0..n).map(|i| (i % 100) as f32).collect();
|
||||
let expected_sum = test_data.iter().sum::<f32>();
|
||||
let expected_sum = test_data.iter().map(|&v| v as f64).sum::<f64>() as f32; // f64 reference: a sequential f32 sum of a million terms carries ~1e-3 of rounding
|
||||
|
||||
// Copy to GPU
|
||||
let gpu_data = manager.copy_to_device(&test_data)?;
|
||||
|
||||
Reference in New Issue
Block a user