Skip to main content

GpuManager

Struct GpuManager 

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

Manager for GPU-accelerated operations.

Implementations§

Source§

impl GpuManager

Aggregation operations impl block

Source

pub fn sum(&self, table: &str, column: &str) -> DbxResult<i64>

SUM aggregation on GPU with configurable reduction strategy.

Source

pub fn count(&self, table: &str, column: &str) -> DbxResult<u64>

COUNT aggregation on GPU (single-pass for simplicity).

Source

pub fn min_max( &self, table: &str, column: &str, find_max: bool, ) -> DbxResult<i32>

MIN/MAX aggregation on GPU.

Source

pub fn filter_gt( &self, table: &str, column: &str, threshold: i32, ) -> DbxResult<Vec<u8>>

Filter GT on GPU. Returns a bitmask (Vec<u8> where 1 means true).

Source§

impl GpuManager

GROUP BY operations impl block

Source

pub fn group_by_sum( &self, table: &str, group_column: &str, value_column: &str, ) -> DbxResult<Vec<(i32, i64, i32)>>

GROUP BY with SUM aggregation on GPU. Returns Vec<(group_key, sum_value, count)>

Source

pub fn group_by_count( &self, table: &str, group_column: &str, ) -> DbxResult<Vec<(i32, i32)>>

GROUP BY with COUNT aggregation on GPU. Returns Vec<(group_key, count)>

Source

pub fn group_by_min_max( &self, table: &str, group_column: &str, value_column: &str, find_max: bool, ) -> DbxResult<Vec<(i32, i32, i32)>>

GROUP BY with MIN/MAX aggregation on GPU. Returns Vec<(group_key, min_or_max_value, count)>

Source§

impl GpuManager

Hash Join operations impl block

Source

pub fn hash_join( &self, build_table: &str, build_key_column: &str, probe_table: &str, probe_key_column: &str, ) -> DbxResult<Vec<(i32, i32)>>

Hash Join on GPU: Build + Probe phases. Returns Vec<(probe_row_id, build_row_id)> for matched rows.

Source§

impl GpuManager

Source

pub fn try_new() -> Option<Self>

Create a new GpuManager. Returns None if GPU acceleration is disabled or if no compatible device is found.

Source

pub fn set_hash_strategy(&mut self, strategy: GpuHashStrategy)

Set GPU hash strategy for GROUP BY operations

Source

pub fn hash_strategy(&self) -> GpuHashStrategy

Get current GPU hash strategy

Source

pub fn set_reduction_strategy(&mut self, strategy: GpuReductionStrategy)

Set GPU reduction strategy for SUM operations

Source

pub fn reduction_strategy(&self) -> GpuReductionStrategy

Get current GPU reduction strategy

Source

pub fn upload_batch(&self, table: &str, batch: &RecordBatch) -> DbxResult<()>

Upload a RecordBatch to GPU memory and cache it.

Source

pub fn upload_batch_pinned( &self, table: &str, batch: &RecordBatch, ) -> DbxResult<()>

Upload a RecordBatch to GPU memory using Pinned Memory for faster DMA transfer.

Source

pub fn clear_table_cache(&self, table: &str)

Source

pub fn clear_all_cache(&self)

Source§

impl GpuManager

This impl block contains no items.

Radix Sort operations impl block

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> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
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> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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
Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
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.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

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