[package]
edition = "2024"
name = "ruda"
version = "0.1.13"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Ruda GPU kernel API and portable runtime with CUDA, HIP and WGPU backends."
readme = "README.md"
license-file = "LICENSE"
repository = "https://github.com/shuqi2077/RUDA"
[features]
cuda = [
"kernel",
"dep:ruda-driver-cuda",
]
default = ["runtime-default"]
direct-ptx = [
"cuda",
"ruda-driver-cuda/direct-ptx",
]
dirs = ["ruda-runtime/dirs"]
hip = [
"kernel",
"dep:ruda-driver-hip",
]
kernel = [
"runtime-default",
"dep:ruda-kernel",
]
runtime = ["ruda-runtime/runtime"]
runtime-autotune-checks = [
"runtime",
"ruda-runtime/runtime-autotune-checks",
]
runtime-channel-cell = [
"runtime",
"ruda-runtime/runtime-channel-cell",
]
runtime-channel-mpsc = [
"runtime",
"ruda-runtime/runtime-channel-mpsc",
]
runtime-channel-mutex = [
"runtime",
"ruda-runtime/runtime-channel-mutex",
]
runtime-default = [
"runtime",
"runtime-std",
"runtime-channel-mutex",
"runtime-channel-mpsc",
"runtime-channel-cell",
"runtime-storage-bytes",
"ruda-runtime/runtime-default",
]
runtime-exclusive-memory-only = [
"runtime",
"ruda-runtime/runtime-exclusive-memory-only",
]
runtime-profile-tracy = [
"runtime",
"ruda-runtime/runtime-profile-tracy",
]
runtime-std = [
"runtime",
"toml",
"dirs",
"ruda-runtime/runtime-std",
]
runtime-storage-bytes = [
"runtime",
"ruda-runtime/runtime-storage-bytes",
]
runtime-tracing = [
"runtime",
"ruda-runtime/runtime-tracing",
]
toml = ["ruda-runtime/toml"]
wgpu = [
"kernel",
"dep:ruda-driver-wgpu",
]
[lib]
name = "ruda"
path = "src/lib.rs"
[[example]]
name = "vector-add"
path = "examples/vector_add.rs"
required-features = ["kernel"]
[[test]]
name = "facade"
path = "tests/facade.rs"
[[test]]
name = "runtime"
path = "tests/runtime/integration_test.rs"
required-features = ["runtime"]
[[test]]
name = "stack_autotune"
path = "tests/runtime/stack_autotune.rs"
required-features = [
"runtime",
"runtime-std",
"runtime-storage-bytes",
]
[[bench]]
name = "runtime_memory"
path = "benches/runtime/dynamic.rs"
harness = false
required-features = [
"runtime",
"runtime-storage-bytes",
]
[dependencies.ruda-driver-cuda]
version = "0.1.35"
optional = true
[dependencies.ruda-driver-hip]
version = "0.1.35"
optional = true
[dependencies.ruda-driver-wgpu]
version = "0.1.35"
optional = true
[dependencies.ruda-kernel]
version = "0.1.12"
optional = true
[dependencies.ruda-runtime]
version = "0.1.3"
default-features = false
[dev-dependencies.bytemuck]
version = "1.16.1"
[dev-dependencies.derive-new]
version = "0.7.0"
default-features = false
[dev-dependencies.rand]
version = "0.10.0"
features = [
"std_rng",
"thread_rng",
]
default-features = false
[dev-dependencies.ruda-core]
version = "0.1.5"
features = [
"ir",
"ir-serde",
"tensor",
"compiler",
"communication",
]
default-features = false
[dev-dependencies.serial_test]
version = "3.1.1"
[dev-dependencies.test-log]
version = "^0.2"
features = ["trace"]
default-features = false
[lints.rust]
unsafe_code = "deny"