Module neural_integration

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

BatchProcessor
Batch processor for efficient bulk operations
BridgeConfig
Configuration for the neural bridge
BufferHandle
Handle types
CompiledKernel
Compiled kernel representation
DeviceInfo
Device information
MemoryHandle
MemoryStats
Memory statistics
NeuralBridge
Main integration interface between CUDA-WASM and ruv-FANN
OperationHandle
OperationStats
Operation statistics
PerformanceDegradation
Performance degradation information
PerformanceStats
Performance statistics
SystemCapabilities
System capabilities

Enums§

ActivationFunction
Activation function types
BindingType
Binding types for shaders
GpuDevice
GPU device preference
NeuralIntegrationError
Errors specific to neural integration
NeuralOperation
Neural operation types
Precision
Precision level for computations

Traits§

GpuBackendTrait
Trait for GPU backend implementations
MemoryManagerTrait
Trait for memory management
PerformanceMonitorTrait
Trait for performance monitoring

Functions§

get_capabilities
Get system capabilities
initialize
Initialize the neural integration system

Type Aliases§

NeuralResult