pub struct GpuCsrBuffers {
pub num_nodes: usize,
pub num_edges: usize,
pub row_offsets: Buffer,
pub col_indices: Buffer,
pub edge_weights: Option<Buffer>,
}Expand description
GPU buffers for CSR graph representation
Manages GPU-side storage of:
- Row offsets (CSR row pointers)
- Column indices (CSR column indices)
- Edge weights (optional)
- Auxiliary arrays (visited, distances, etc.)
Fields§
§num_nodes: usizeNumber of nodes in the graph
num_edges: usizeNumber of edges in the graph
row_offsets: BufferGPU buffer for row_offsets (size: num_nodes + 1)
col_indices: BufferGPU buffer for col_indices (size: num_edges)
edge_weights: Option<Buffer>GPU buffer for edge_weights (size: num_edges, optional)
Implementations§
Source§impl GpuCsrBuffers
impl GpuCsrBuffers
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for GpuCsrBuffers
impl !RefUnwindSafe for GpuCsrBuffers
impl !UnwindSafe for GpuCsrBuffers
impl Send for GpuCsrBuffers
impl Sync for GpuCsrBuffers
impl Unpin for GpuCsrBuffers
impl UnsafeUnpin for GpuCsrBuffers
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more