Burn CUDA backend
This crate provides a CUDA backend for Burn using the cubecl and cudarc crates.
#[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);
}
}
Requires CUDA 12.x to be installed and on the PATH
.