Expand description
Neural Network Integration for CUDA-WASM with ruv-FANN
This module provides seamless integration between CUDA-WASM transpiler and ruv-FANN neural networks for GPU-accelerated neural computation.
Features:
- Automatic CUDA-to-WGSL transpilation for neural operations
- GPU-accelerated forward/backward propagation
- Memory-efficient data transfer between CPU and GPU
- Automatic fallback to CPU when GPU unavailable
- Performance monitoring and profiling
- TypeScript bindings for web usage
- 5x+ speedup for neural network operations
Re-exports§
pub use bridge::WebGpuBackend;
pub use bridge::extract_wgsl_from_rust;
pub use bridge::execute_cpu_fallback;
pub use gpu_neural_ops::execute_operation;
pub use gpu_neural_ops::process_batch;
pub use memory_manager::HybridMemoryManager;
pub use performance_monitor::RealTimeMonitor;
pub use performance_monitor::NoOpMonitor;
pub use cuda_kernels::*;
pub use wasm_bindings::*;
Modules§
- benchmarks
- Comprehensive Benchmarks for Neural Integration
- bridge
- Bridge implementation connecting CUDA-WASM with ruv-FANN
- cuda_
kernels - Pre-optimized CUDA Kernels for Neural Operations
- examples
- Examples and Demos for Neural Integration
- gpu_
neural_ ops - GPU Neural Operations for CUDA-WASM Integration
- memory_
manager - Memory Management for Neural Integration
- performance_
monitor - Performance Monitoring for Neural Integration
- wasm_
bindings - WebAssembly Bindings for Neural Integration
- wasm_
types - WASM types for neural integration
Structs§
- Batch
Processor - Batch processor for efficient bulk operations
- Bridge
Config - Configuration for the neural bridge
- Buffer
Handle - Handle types
- Compiled
Kernel - Compiled kernel representation
- Device
Info - Device information
- Memory
Handle - Memory
Stats - Memory statistics
- Neural
Bridge - Main integration interface between CUDA-WASM and ruv-FANN
- Operation
Handle - Operation
Stats - Operation statistics
- Performance
Degradation - Performance degradation information
- Performance
Stats - Performance statistics
- System
Capabilities - System capabilities
Enums§
- Activation
Function - Activation function types
- Binding
Type - Binding types for shaders
- GpuDevice
- GPU device preference
- Neural
Integration Error - Errors specific to neural integration
- Neural
Operation - Neural operation types
- Precision
- Precision level for computations
Traits§
- GpuBackend
Trait - Trait for GPU backend implementations
- Memory
Manager Trait - Trait for memory management
- Performance
Monitor Trait - Trait for performance monitoring
Functions§
- get_
capabilities - Get system capabilities
- initialize
- Initialize the neural integration system