Struct WebGpuIntegrator
pub struct WebGpuIntegrator { /* private fields */ }Implementations§
§impl WebGpuIntegrator
impl WebGpuIntegrator
pub async fn new() -> Result<WebGpuIntegrator, GpuError>
pub async fn new() -> Result<WebGpuIntegrator, GpuError>
Creates a new WebGPU integrator.
Initializes wgpu device, queue, and compiles the calculus compute shader.
§impl WebGpuIntegrator
impl WebGpuIntegrator
pub fn max_buffer_size(&self) -> u64
Trait Implementations§
Source§impl GpuIntegrator for WebGpuIntegrator
WebGPU-based GPU integrator (cross-platform fallback).
impl GpuIntegrator for WebGpuIntegrator
WebGPU-based GPU integrator (cross-platform fallback).
Uses wgpu to execute compute shaders when DirectStorage or GPUDirect are unavailable. Data flows: NVMe → CPU RAM → GPU VRAM.
Source§fn integrate_simpsons_gpu(
&mut self,
file_path: &Path,
offset: u64,
size: u64,
step_size: f32,
) -> Result<f64, GpuError>
fn integrate_simpsons_gpu( &mut self, file_path: &Path, offset: u64, size: u64, step_size: f32, ) -> Result<f64, GpuError>
Executes Simpson’s rule integration on the GPU. Read more
Source§fn integrate_simpson_38_gpu(
&mut self,
file_path: &Path,
offset: u64,
size: u64,
step_size: f32,
) -> Result<f64, GpuError>
fn integrate_simpson_38_gpu( &mut self, file_path: &Path, offset: u64, size: u64, step_size: f32, ) -> Result<f64, GpuError>
Executes composite Simpson 3/8 quadrature on the GPU.
Source§fn available_vram(&self) -> u64
fn available_vram(&self) -> u64
Returns available VRAM in bytes.
Auto Trait Implementations§
impl !RefUnwindSafe for WebGpuIntegrator
impl !UnwindSafe for WebGpuIntegrator
impl Freeze for WebGpuIntegrator
impl Send for WebGpuIntegrator
impl Sync for WebGpuIntegrator
impl Unpin for WebGpuIntegrator
impl UnsafeUnpin for WebGpuIntegrator
Blanket Implementations§
§impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
Aggregate shares in an MPC protocol.
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more