Cargo Features

[dependencies]
cubecl = { version = "0.4.0", default-features = false, features = ["std", "exclusive-memory-only", "linalg", "reduce", "template", "cuda", "hip", "hip-intrinsic", "wgpu", "wgpu-spirv"] }
default = linalg, std

These default features are set whenever cubecl is added without default-features = false somewhere in the dependency tree.

Enables cubecl-core, optional cubecl-cuda, optional cubecl-hip, and optional cubecl-wgpu

std default

Enables std of cubecl-core, optional cubecl-cuda, and optional cubecl-wgpu

exclusive-memory-only

Enables exclusive-memory-only of optional cubecl-wgpu

linalg default

Enables cubecl-linalg

reduce

Enables cubecl-reduce

template

Enables template of cubecl-core

cuda = cubecl-cuda

Runtimes

hip hip-intrinsic? = cubecl-hip
hip-intrinsic = hip

Enables wmma-intrinsics of cubecl-hip

wgpu wgpu-spirv? = cubecl-wgpu
wgpu-spirv = wgpu

Enables spirv of cubecl-wgpu

Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.

cubecl-cuda cuda?
cubecl-hip hip? hip-intrinsic?
cubecl-wgpu wgpu? wgpu-spirv?