Skip to main content

GpuCircuitCacheHandle

Struct GpuCircuitCacheHandle 

Source
pub struct GpuCircuitCacheHandle { /* private fields */ }
Expand description

Host-resolved handle to one claimed GPU circuit-cache slot.

Implementations§

Source§

impl GpuCircuitCacheHandle

Source

pub fn slot_device(&self) -> &TrackedCudaSlice<u32>

Returns the selected cache slot as a device scalar.

Source

pub fn compile_needed_device(&self) -> &TrackedCudaSlice<u32>

Returns the device flag indicating whether the slot requires compilation.

Source

pub fn provider(&self) -> &Arc<CudaKernelProvider> ⓘ

Returns the CUDA provider that owns the handle buffers.

Source

pub fn num_nodes(&self) -> u32

Returns the materialized circuit node count.

Source

pub fn num_levels(&self) -> u32

Returns the materialized circuit level count.

Source

pub fn root(&self) -> u32

Returns the materialized circuit root node.

Source

pub fn max_var(&self) -> u32

Returns the largest DIMACS variable in the materialized circuit.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.