Skip to main content

ResidentRelation

Struct ResidentRelation 

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

A fixed-capacity relation whose storage remains stable for a graph lifetime.

Implementations§

Source§

impl ResidentRelation

Source

pub fn buffer(&self) -> &CudaBuffer

Source

pub fn into_buffer(self) -> CudaBuffer

Consume the stable owner after terminal receipt validation.

This performs no transfer, synchronization, or host-count observation.

Source

pub fn into_buffer_with_observed_schema( self, schema: Schema, ) -> Result<CudaBuffer>

Consume a synchronized final owner with its receipt-selected schema.

This changes metadata only after all captured work is complete and validates that the selected schema has the same physical layout.

Source

pub fn retag_schema_for_capture(&mut self, schema: Schema) -> Result<()>

Retag a cold scratch allocation without changing any device address.

This is only valid before the graph that will use this relation is launched. Captured kernel nodes own copies of their pointer/width arguments; callers must not retag a relation while a launch is in flight. Final head relations must not use this scratch-pool operation.

Source

pub fn capacity(&self) -> u32

Source

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

Source

pub fn record_uses(&self, recorder: &mut LaunchRecorder)

Add every owned allocation to the transaction’s strict recorder.

Auto Trait Implementations§

Blanket Implementations§

§

impl<T> Allocation for T
where T: RefUnwindSafe + Send + Sync,

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, 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.