Expand description
Advanced GPU Optimization Engine
This module provides GPU-aware optimization heuristics and genuinely measured execution paths for dataset operations: adaptive kernel selection, auto-tuning, and benchmarking that report only what was actually dispatched and timed on this process — never a fabricated speedup.
§Backend model
AdvancedGpuOptimizer keeps this crate’s own crate::gpu::GpuBackend
/ crate::gpu::GpuContext as its public backend-selection type: it is
also the type used throughout the rest of this crate’s GPU-flavored
dataset generators and is re-exported at the crate root, so replacing it
with scirs2_core::gpu’s (differently shaped, unit-variant-only) backend
type would ripple far beyond this module.
Requesting GpuBackend::Cuda or GpuBackend::OpenCl here does not
dispatch vendor-specific kernels — both route through the same real,
backend-agnostic wgpu/GpuNdarray compute path used by this crate’s
(crate-private) generators::gpu_dispatch module — see that module for
the canonical pattern this file follows — with an honest, silent
fallback to the CPU path whenever no adapter is present, the workload is
too small to be worth transferring, or the wgpu feature is disabled at
compile time. GpuBackend::Cpu never attempts a GPU dispatch, by design.
For genuine vendor-specific NVIDIA CUDA execution via the pure-Rust
oxicuda-* stack, see crate::gpu_cuda (feature = "cuda") — a
separate, additive path not currently wired into this optimizer.
Structs§
- AIPerformance
Predictor - Advanced MODE ENHANCEMENTS Advanced AI-driven optimization and real-time monitoring capabilities AI-driven performance predictor using machine learning
- Adaptive
Optimization State - Adaptive optimization state
- Advanced
GpuOptimizer - Advanced-advanced GPU performance optimizer
- Advanced
Kernel Config - Advanced-advanced GPU kernel configuration
- Benchmark
Result - Individual benchmark result
- GpuPerformance
Profile - GPU performance profiling data
- Monitoring
Config - Monitoring configuration
- Optimization
Adjustment - Optimization adjustment made by the adaptive system
- Performance
Benchmark Results - Performance benchmark results
- Performance
Data Point - Performance data point for ML training
- Performance
Snapshot - Performance snapshot at a specific point in time
- Performance
Stats - Performance statistics summary
- Prediction
Accuracy - Prediction accuracy metrics
- Real
Time Performance Monitor - Real-time performance monitor with adaptive optimization
Enums§
- Adjustment
Type - Types of optimization adjustments
- Data
Layout - Data layout optimization strategies
- Load
Balancing Method - Load balancing methods
- Memory
Access Pattern - Memory access pattern optimization
- Performance
Trend - Performance trend analysis
- Specialization
Level - Kernel specialization levels
- Vectorization
Strategy - Vectorization strategies
Functions§
- benchmark_
advanced_ performance - Convenience function for performance benchmarking
- generate_
advanced_ matrix - Convenience function for advanced-optimized matrix generation