burn/crates/burn-cuda
Nathaniel Simard 099b6dcae0
Remote Backend (#2463)
2024-11-07 15:49:21 -05:00
..
src Add more type support for burn-jit (#2454) 2024-11-04 13:01:01 -05:00
Cargo.toml Remote Backend (#2463) 2024-11-07 15:49:21 -05:00
README.md Add documentation for custom `cubecl` kernels, update some outdated docs (#2404) 2024-10-25 13:22:23 -04:00

README.md

Burn CUDA Backend

Burn CUDA backend

Current Crates.io Version license

This crate provides a CUDA backend for Burn using the cubecl and cudarc crates.

Usage Example

#[cfg(feature = "cuda")]
mod cuda {
    use burn_autodiff::Autodiff;
    use burn_cuda::{Cuda, CudaDevice};
    use mnist::training;

    pub fn run() {
        let device = CudaDevice::default();
        training::run::<Autodiff<Cuda<f32, i32>>>(device);
    }
}

Dependencies

Requires CUDA 12.x to be installed and on the PATH.