mirror of https://github.com/tracel-ai/burn.git
895 B
895 B
Burn CUDA Backend
Burn CUDA backend
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
.