Skip to main content

Crate burn_cuda

Crate burn_cuda 

Source
Expand description

The CUDA runtime for Burn’s CubeCL backend, for NVIDIA GPUs.

Applications enable Burn’s cuda feature and create a device with Device::cuda(index); they do not need this crate directly. Cuda is the backend type under the name of this runtime: every CubeCL runtime shares the same backend, and a tensor’s device says which one it runs on.

The CUDA driver is loaded at runtime, so building does not require the CUDA toolkit.

§Feature flags

  • std (default): standard library support.
  • fusion (default): kernel fusion.
  • autotune (default): benchmark kernel variants at runtime and keep the fastest.
  • tracing: instrument operations with the tracing crate.

Structs§

CudaDevice
A device of the CUDA runtime, named by its index.

Type Aliases§

Cuda
The cubecl backend, under the name of the runtime this crate compiles in. Every cubecl backend is the same type — a tensor’s device is what says which runtime it runs on.