burn/crates/burn-cuda
Nathaniel Simard 3f27153099
Fix f16 tests (#3232)
2025-05-26 12:59:57 -04:00
..
src Fix f16 tests (#3232) 2025-05-26 12:59:57 -04:00
Cargo.toml Chain lint inheritance [was: Disable new default clippy tests] (#3200) 2025-05-20 08:23:11 -04: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.