Skip to main content

TensorCoreOptimizer

Struct TensorCoreOptimizer 

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

Tensor core enhanced optimizer

Implementations§

Source§

impl TensorCoreOptimizer

Source

pub fn new(config: TensorCoreConfig) -> Result<Self, GpuOptimError>

Create new tensor core optimizer

Source

pub fn optimize_layout(&mut self, m: usize, n: usize, k: usize) -> OptimalLayout

Optimize matrix layout for tensor core operations

Source

pub fn tensor_core_gemm<T: Float + Debug + Send + Sync + 'static>( &self, a: &Array2<T>, b: &Array2<T>, c: &mut Array2<T>, alpha: T, beta: T, precision: TensorCorePrecision, ) -> Result<(), GpuOptimError>

Perform tensor core optimized matrix multiplication

Source

pub fn fused_adam_tensor_core<T: Float + Debug + Send + Sync + 'static>( &self, params: &mut Array2<T>, grads: &Array2<T>, exp_avg: &mut Array2<T>, exp_avg_sq: &mut Array2<T>, adam_params: &AdamParams<T>, ) -> Result<(), GpuOptimError>

Fused Adam update with tensor core optimization

Source

pub fn get_tensor_core_info(&self) -> TensorCoreInfo

Get tensor core capability information

Source

pub fn create_mixed_precision_trainer( &self, ) -> Result<MixedPrecisionTrainer, GpuOptimError>

Automatic mixed precision trainer for optimizers

Source

pub fn sparse_tensor_core_gemm<T: Float + Debug + Send + Sync + 'static>( &self, a: &Array2<T>, b_sparse: &SparseTensorCoreMatrix<T>, c: &mut Array2<T>, alpha: T, beta: T, ) -> Result<(), GpuOptimError>

Sparse tensor core optimization for 2:4 structured sparsity

Source

pub fn multi_batch_tensor_core_ops<T: Float + Debug + Send + Sync + 'static>( &self, batches: &[TensorCoreBatch<T>], precision: TensorCorePrecision, ) -> Result<Vec<Array2<T>>, GpuOptimError>

Multi-batch tensor core operations for large-scale training

Source

pub fn optimized_pipeline_gemm<T: Float + Debug + Send + Sync + 'static>( &self, operations: &[TensorCoreOperation<T>], pipeline_config: PipelineOptimizationConfig, ) -> Result<Vec<Array2<T>>, GpuOptimError>

Advanced pipeline optimization for tensor core operations

Source

pub fn optimize_memory_access_patterns<T: Float + Debug + Send + Sync + 'static>( &mut self, matrices: &[Array2<T>], ) -> Result<Vec<OptimizedMatrix<T>>, GpuOptimError>

Dynamic memory coalescing optimization

Source

pub fn adaptive_tensor_core_scheduling<T: Float + Debug + Send + Sync + 'static>( &mut self, workload: &TensorCoreWorkload<T>, ) -> Result<SchedulingPlan, GpuOptimError>

Adaptive tensor core scheduling based on hardware utilization

Source

pub fn benchmark_tensor_core_performance( &self, ) -> Result<TensorCorePerformanceBenchmark, GpuOptimError>

Benchmark tensor core performance for different configurations

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