mirror of https://github.com/tracel-ai/burn.git
099b6dcae0 | ||
---|---|---|
.. | ||
src | ||
Cargo.toml | ||
README.md |
README.md
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
.