Skip to main content

CarrierExport

Struct CarrierExport 

Source
pub struct CarrierExport {
    pub slice: Arc<TrackedCudaSlice<u8>>,
    pub stream: Arc<CudaStream>,
    pub elem_bytes: usize,
    pub rows: usize,
    pub cols: usize,
}
Expand description

One buffer exported outward while xlog retains ownership. The binding layer wraps slice in a real DLPack capsule via CudaColumn::dlpack_xlog_owned; the shared Arc keeps the runtime identity alive, so strict launch recorders keep recording the exported view instead of rejecting it.

Fields§

§slice: Arc<TrackedCudaSlice<u8>>

The runtime-backed allocation, shared with the carrier.

§stream: Arc<CudaStream>

The stream the export synchronizes against.

§elem_bytes: usize

Element width in bytes (8 for u64 buffers, 4 for u32/f32).

§rows: usize

Logical row count of the 2-D view.

§cols: usize

Logical column count of the 2-D view.

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.