Struct GpuQuinSieve
pub struct GpuQuinSieve {
pub pipeline: ComputePipeline,
pub bind_group_layout: BindGroupLayout,
}Expand description
GPU warp-transposed uvec4 equality sieve over 48-byte NQuinWire buffers.
Fields§
§pipeline: ComputePipeline§bind_group_layout: BindGroupLayoutImplementations§
§impl GpuQuinSieve
impl GpuQuinSieve
pub fn new(device: &Device) -> GpuQuinSieve
pub fn record_dispatch<'a>(
&'a self,
cpass: &mut ComputePass<'a>,
bind_group: &'a BindGroup,
quin_count: u32,
)
pub fn record_dispatch<'a>( &'a self, cpass: &mut ComputePass<'a>, bind_group: &'a BindGroup, quin_count: u32, )
Record a warp-transposed uvec4 equality scan dispatch into cpass.
pub fn sieve_eq_indices(
&self,
device: &Device,
queue: &Queue,
quins: &[NQuinWire],
field: QuinField,
needle: u64,
) -> Option<Vec<u32>>
pub fn sieve_eq_indices( &self, device: &Device, queue: &Queue, quins: &[NQuinWire], field: QuinField, needle: u64, ) -> Option<Vec<u32>>
Native blocking convenience wrapper with a five-second readback timeout.
pub async fn sieve_eq_indices_async(
&self,
device: &Device,
queue: &Queue,
quins: &[NQuinWire],
field: QuinField,
needle: u64,
out: &mut [u32],
) -> Result<usize, GpuQueryError>
pub async fn sieve_eq_indices_async( &self, device: &Device, queue: &Queue, quins: &[NQuinWire], field: QuinField, needle: u64, out: &mut [u32], ) -> Result<usize, GpuQueryError>
GPU equality scan into caller-owned output, sorted by row index.
This cold operation allocates bounded GPU scratch. If the result exceeds out, returns
OutputTooSmall without copying rows. Browser WebGPU progresses on its event loop.
Native callers must keep polling the device elsewhere in their runtime until completion.
Dropping the future cancels mapping and releases its private readback buffer.
Auto Trait Implementations§
impl !RefUnwindSafe for GpuQuinSieve
impl !UnwindSafe for GpuQuinSieve
impl Freeze for GpuQuinSieve
impl Send for GpuQuinSieve
impl Sync for GpuQuinSieve
impl Unpin for GpuQuinSieve
impl UnsafeUnpin for GpuQuinSieve
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