Cargo Features
[dependencies]
cubecl = { version = "0.3.0", default-features = false, features = ["std", "exclusive-memory-only", "linalg", "template", "cuda", "hip", "wgpu", "wgpu-spirv"] }
- default = linalg, std
-
These default features are set whenever
cubecl
is added without
somewhere in the dependency tree.default-features = false 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 cubecl-runtime and optional cubecl-wgpu
- linalg default
-
Enables cubecl-linalg
- template
-
Enables template of cubecl-core
- cuda = cubecl-cuda
-
Runtimes
- hip = 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.