rtx-cfd three_d piso_device: pass the pointer table by reference (clippy)
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 / 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 / Python Bindings (maturin) (macos-latest) (push) Blocked by required conditions
CI / Python Bindings (maturin) (ubuntu-latest) (push) Blocked by required conditions
CI / Format Check (push) Failing after 4s
CI / Clippy Check (push) Failing after 3s
CI / Build (ubuntu-latest) (push) Failing after 3s
Documentation / Build API Documentation (push) Failing after 3s
Documentation / Build User Guide (push) Successful in 5s
Performance Benchmarks / Run Benchmarks (push) Successful in 4m14s
CI / Build CPU-Only (Explicit) (push) Failing after 3m9s
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 / 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 / Python Bindings (maturin) (macos-latest) (push) Blocked by required conditions
CI / Python Bindings (maturin) (ubuntu-latest) (push) Blocked by required conditions
CI / Format Check (push) Failing after 4s
CI / Clippy Check (push) Failing after 3s
CI / Build (ubuntu-latest) (push) Failing after 3s
Documentation / Build API Documentation (push) Failing after 3s
Documentation / Build User Guide (push) Successful in 5s
Performance Benchmarks / Run Benchmarks (push) Successful in 4m14s
CI / Build CPU-Only (Explicit) (push) Failing after 3m9s
Co-Authored-By: Claude Fable 5.1 <[email protected]>
This commit is contained in:
co-authored by
Claude Fable 5.1
parent
d9fd849239
commit
bd43b34850
@@ -361,7 +361,7 @@ impl Piso3Device {
|
||||
one[0]
|
||||
}
|
||||
|
||||
fn launch_sides(&self, prm: P3Params, ptrs: P3Ptrs, stamp: i32) {
|
||||
fn launch_sides(&self, prm: P3Params, ptrs: &P3Ptrs, stamp: i32) {
|
||||
let rt = runtime3();
|
||||
let k = kernels();
|
||||
let g = self.grid;
|
||||
@@ -396,7 +396,7 @@ impl Piso3Device {
|
||||
self.upload_tables(t);
|
||||
let prm = self.params(1.0);
|
||||
let ptrs = self.ptrs();
|
||||
self.launch_sides(prm, ptrs, 1);
|
||||
self.launch_sides(prm, &ptrs, 1);
|
||||
self.initialized = true;
|
||||
}
|
||||
|
||||
@@ -450,10 +450,10 @@ impl Piso3Device {
|
||||
.expect("predict_w");
|
||||
}
|
||||
// Outlet zero-gradient + periodic copy (no stamping), then u* = u.
|
||||
self.launch_sides(prm, ptrs, 0);
|
||||
self.launch_sides(prm, &ptrs, 0);
|
||||
// The new interval's boundary data.
|
||||
self.upload_tables(t_new);
|
||||
self.launch_sides(prm, ptrs, 1);
|
||||
self.launch_sides(prm, &ptrs, 1);
|
||||
rt.stream
|
||||
.memcpy_dtod(&self.u, &mut self.u_star)
|
||||
.expect("u*");
|
||||
@@ -527,7 +527,7 @@ impl Piso3Device {
|
||||
.expect("correct_w");
|
||||
}
|
||||
if prm.periodic_z != 0 {
|
||||
self.launch_sides(prm, ptrs, 0);
|
||||
self.launch_sides(prm, &ptrs, 0);
|
||||
}
|
||||
unsafe {
|
||||
rt.stream
|
||||
|
||||
Reference in New Issue
Block a user