ruda-test-runtime 0.1.109

Kernel test utilities for Ruda.
docs.rs failed to build ruda-test-runtime-0.1.109
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Visit the last successful build: ruda-test-runtime-0.1.103

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-runtime together with exactly one of cpu, cuda, hip, or wgpu to select that runtime.
  • With test-runtime and no single backend selection, the build script selects WGPU.
  • Without test-runtime, this crate does not export the TestRuntime alias.

Usage

Cargo package: ruda-test-runtime. Rust import: ruda_test_runtime.

[dev-dependencies]
ruda-test-runtime = { version = "0.1", features = ["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.

Links