pub struct CudaEGraphDeviceKernelView { /* private fields */ }Expand description
Checked kernel-facing pointer view of a CUDA-resident e-graph image.
Implementations§
Source§impl CudaEGraphDeviceKernelView
impl CudaEGraphDeviceKernelView
Sourcepub fn from_checked_parts(
base_ptr: u64,
byte_len: usize,
layout: CudaEGraphDeviceByteLayout,
) -> Result<Self, BackendError>
pub fn from_checked_parts( base_ptr: u64, byte_len: usize, layout: CudaEGraphDeviceByteLayout, ) -> Result<Self, BackendError>
Build a kernel view from a base pointer, byte length, and byte layout.
§Errors
Returns BackendError if any layout span points outside the image or
if pointer arithmetic overflows.
Sourcepub const fn child_count(&self) -> usize
pub const fn child_count(&self) -> usize
Number of child e-class references.
Sourcepub const fn eclass_group_count(&self) -> usize
pub const fn eclass_group_count(&self) -> usize
Number of grouped e-class row spans.
Sourcepub const fn row_eclass_ids_ptr(&self) -> u64
pub const fn row_eclass_ids_ptr(&self) -> u64
Device pointer to the row e-class id column.
Sourcepub const fn row_language_op_ids_ptr(&self) -> u64
pub const fn row_language_op_ids_ptr(&self) -> u64
Device pointer to the row language-op id column.
Sourcepub const fn row_children_offsets_ptr(&self) -> u64
pub const fn row_children_offsets_ptr(&self) -> u64
Device pointer to the row child-offset column.
Sourcepub const fn row_children_lens_ptr(&self) -> u64
pub const fn row_children_lens_ptr(&self) -> u64
Device pointer to the row child-length column.
Sourcepub const fn row_signatures_ptr(&self) -> u64
pub const fn row_signatures_ptr(&self) -> u64
Device pointer to the row structural-signature column.
Sourcepub const fn children_ptr(&self) -> u64
pub const fn children_ptr(&self) -> u64
Device pointer to the flat child e-class column.
Sourcepub const fn group_eclass_ids_ptr(&self) -> u64
pub const fn group_eclass_ids_ptr(&self) -> u64
Device pointer to sorted grouped e-class ids.
Sourcepub const fn group_offsets_ptr(&self) -> u64
pub const fn group_offsets_ptr(&self) -> u64
Device pointer to group prefix offsets.
Sourcepub const fn group_rows_ptr(&self) -> u64
pub const fn group_rows_ptr(&self) -> u64
Device pointer to row indices grouped by e-class.
Trait Implementations§
Source§impl Clone for CudaEGraphDeviceKernelView
impl Clone for CudaEGraphDeviceKernelView
Source§fn clone(&self) -> CudaEGraphDeviceKernelView
fn clone(&self) -> CudaEGraphDeviceKernelView
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CudaEGraphDeviceKernelView
impl Debug for CudaEGraphDeviceKernelView
Source§impl PartialEq for CudaEGraphDeviceKernelView
impl PartialEq for CudaEGraphDeviceKernelView
Source§fn eq(&self, other: &CudaEGraphDeviceKernelView) -> bool
fn eq(&self, other: &CudaEGraphDeviceKernelView) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for CudaEGraphDeviceKernelView
impl Eq for CudaEGraphDeviceKernelView
impl StructuralPartialEq for CudaEGraphDeviceKernelView
Auto Trait Implementations§
impl Freeze for CudaEGraphDeviceKernelView
impl RefUnwindSafe for CudaEGraphDeviceKernelView
impl Send for CudaEGraphDeviceKernelView
impl Sync for CudaEGraphDeviceKernelView
impl Unpin for CudaEGraphDeviceKernelView
impl UnsafeUnpin for CudaEGraphDeviceKernelView
impl UnwindSafe for CudaEGraphDeviceKernelView
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.