pub struct GpuPirInterner { /* private fields */ }Expand description
GPU PIR interner (device-side).
Implementations§
Source§impl GpuPirInterner
impl GpuPirInterner
Sourcepub fn new(
provider: &Arc<CudaKernelProvider>,
node_cap: u32,
child_cap: u32,
) -> Result<Self>
pub fn new( provider: &Arc<CudaKernelProvider>, node_cap: u32, child_cap: u32, ) -> Result<Self>
Allocates an interner with fixed node and child capacities.
Sourcepub fn graph(&self) -> &GpuPirGraph
pub fn graph(&self) -> &GpuPirGraph
Returns the device-resident interned graph.
Sourcepub fn intern_batch(
&mut self,
batch: &PirBatch,
) -> Result<TrackedCudaSlice<u32>>
pub fn intern_batch( &mut self, batch: &PirBatch, ) -> Result<TrackedCudaSlice<u32>>
Uploads and interns a host batch, returning canonical node identifiers.
Sourcepub fn intern_device_batch(
&mut self,
batch: &mut GpuPirBatch,
) -> Result<TrackedCudaSlice<u32>>
pub fn intern_device_batch( &mut self, batch: &mut GpuPirBatch, ) -> Result<TrackedCudaSlice<u32>>
Interns a device-resident batch and returns canonical node identifiers.
Auto Trait Implementations§
impl !RefUnwindSafe for GpuPirInterner
impl !UnwindSafe for GpuPirInterner
impl Freeze for GpuPirInterner
impl Send for GpuPirInterner
impl Sync for GpuPirInterner
impl Unpin for GpuPirInterner
impl UnsafeUnpin for GpuPirInterner
Blanket Implementations§
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