Cargo Features
[dependencies]
rust-gpu-tools = { version = "0.7.2", default-features = false, features = ["opencl", "cuda"] }
- default = cuda, opencl
-
These default features are set whenever
rust-gpu-tools
is added without
somewhere in the dependency tree.default-features = false - opencl default = opencl3
-
Affects
rust-gpu-tools::opencl
… - cuda default = rustacuda
-
Affects
rust-gpu-tools::cuda
…
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.
- opencl3 opencl
- rustacuda cuda
-
Enables fil-rustacuda