Expand description
CUDA-Rust-WASM: A CUDA to Rust transpiler with WebGPU/WASM support
This crate provides a complete toolchain for translating CUDA code to Rust, with support for WebGPU backends and WASM compilation.
Re-exports§
pub use error::CudaRustError;
pub use error::Result;
pub use parser::CudaParser;
pub use transpiler::Transpiler;
pub use transpiler::CudaTranspiler;
pub use runtime::Runtime;
pub use neural_integration::NeuralBridge;
pub use neural_integration::BridgeConfig;
pub use neural_integration::NeuralOperation;
pub use neural_integration::ActivationFunction as NeuralActivationFunction;
pub use neural_integration::SystemCapabilities as NeuralCapabilities;
pub use neural_integration::initialize as init_neural_integration;
pub use neural_integration::get_capabilities as get_neural_capabilities;
Modules§
- backend
- Backend abstraction layer
- error
- Error types for CUDA-Rust transpiler
- kernel
- Kernel execution module
- memory
- Memory management module
- neural_
integration - Neural Network Integration for CUDA-WASM with ruv-FANN
- parser
- CUDA code parsing module
- prelude
- Prelude module for convenient imports
- profiling
- Performance profiling tools for cuda-rust-wasm
- runtime
- CUDA-compatible runtime for Rust
- transpiler
- CUDA to Rust transpilation module
- utils
- Utility functions and helpers
Macros§
- kernel_
function - Helper macro to define kernel functions
- memory_
error - Macro for creating memory errors
- parse_
error - Helper macro for creating parse errors
- profile_
scope - Macro for easy profiling
- runtime_
error - Helper macro for creating runtime errors
- time_
block - Macro for easy timing of code blocks
- translation_
error - Helper macro for creating translation errors
Structs§
- Cuda
Rust - Main entry point for transpiling CUDA code to Rust
Functions§
- init
- Initialize the CUDA-Rust runtime