ruda-test-runtime
Compile-time runtime selection for Ruda kernel tests. It exports a TestRuntime alias when test-runtime is enabled, so the same tests can target different drivers.
Interfaces
- Enable
test-runtimetogether with exactly one ofcpu,cuda,hip, orwgputo select that runtime. - With
test-runtimeand no single backend selection, the build script selects WGPU. - Without
test-runtime, this crate does not export theTestRuntimealias.
Usage
Cargo package: ruda-test-runtime. Rust import: ruda_test_runtime.
[]
= { = "0.1", = ["test-runtime", "cuda"] }
Features
Default features: std, ruda-kernel/frontend-default, ruda-kernel/library, ruda-driver-cpu?/default, ruda-driver-cuda?/default, ruda-driver-hip?/default, ruda-driver-wgpu?/default.
| Feature | Purpose |
|---|---|
test-runtime |
Enable the TestRuntime alias and WGPU fallback dependency. |
cuda |
Select the CUDA test runtime. |
cpu |
Select the CPU test runtime. |
hip |
Select the HIP test runtime. |
wgpu |
Select the WGPU test runtime. |