[package]
edition = "2024"
rust-version = "1.85"
name = "oxicuda"
version = "0.1.0"
authors = ["COOLJAPAN OU <contact@cooljapan.tech>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "OxiCUDA - Pure Rust CUDA replacement for the COOLJAPAN ecosystem (95% performance target)"
readme = "README.md"
keywords = [
"cuda",
"gpu",
"compute",
"nvidia",
"pure-rust",
]
categories = [
"hardware-support",
"science",
"mathematics",
]
license = "Apache-2.0"
repository = "https://github.com/cool-japan/oxicuda"
resolver = "2"
[features]
autotune = [
"dep:oxicuda-autotune",
"ptx",
]
backend = []
blas = ["dep:oxicuda-blas"]
default = [
"driver",
"memory",
"launch",
]
dnn = [
"dep:oxicuda-dnn",
"blas",
]
driver = []
fft = ["dep:oxicuda-fft"]
full = [
"backend",
"ptx",
"autotune",
"blas",
"dnn",
"fft",
"sparse",
"solver",
"rand",
"primitives",
"pool",
"onnx-backend",
"tensor-backend",
"transformer-backend",
"vulkan",
"metal",
"webgpu",
"rocm",
"level-zero",
"wasm-backend",
]
gpu-tests = ["oxicuda-driver/gpu-tests"]
launch = []
level-zero = ["dep:oxicuda-levelzero"]
memory = []
metal = ["dep:oxicuda-metal"]
onnx-backend = []
pool = ["oxicuda-memory/pool"]
primitives = ["dep:oxicuda-primitives"]
ptx = ["dep:oxicuda-ptx"]
rand = ["dep:oxicuda-rand"]
rocm = ["dep:oxicuda-rocm"]
solver = ["dep:oxicuda-solver"]
sparse = ["dep:oxicuda-sparse"]
tensor-backend = []
transformer-backend = []
vulkan = ["dep:oxicuda-vulkan"]
wasm-backend = [
"dep:oxicuda-webgpu",
"dep:wasm-bindgen",
"dep:js-sys",
]
webgpu = ["dep:oxicuda-webgpu"]
[lib]
name = "oxicuda"
path = "src/lib.rs"
[[example]]
name = "autotune_demo"
path = "examples/autotune_demo.rs"
required-features = ["autotune"]
[[example]]
name = "matrix_multiply"
path = "examples/matrix_multiply.rs"
required-features = ["ptx"]
[[example]]
name = "ptx_generation"
path = "examples/ptx_generation.rs"
required-features = ["ptx"]
[[bench]]
name = "autotune_search"
path = "benches/autotune_search.rs"
harness = false
required-features = ["autotune"]
[[bench]]
name = "backend_operations"
path = "benches/backend_operations.rs"
harness = false
required-features = ["backend"]
[[bench]]
name = "blas_dispatch"
path = "benches/blas_dispatch.rs"
harness = false
required-features = [
"blas",
"ptx",
]
[[bench]]
name = "fft_planning"
path = "benches/fft_planning.rs"
harness = false
required-features = ["fft"]
[[bench]]
name = "ptx_generation"
path = "benches/ptx_generation.rs"
harness = false
required-features = ["ptx"]
[dependencies.js-sys]
version = "0.3.95"
optional = true
[dependencies.oxicuda-autotune]
version = "0.1.0"
optional = true
[dependencies.oxicuda-backend]
version = "0.1.0"
[dependencies.oxicuda-blas]
version = "0.1.0"
optional = true
[dependencies.oxicuda-dnn]
version = "0.1.0"
optional = true
[dependencies.oxicuda-driver]
version = "0.1.0"
[dependencies.oxicuda-fft]
version = "0.1.0"
optional = true
[dependencies.oxicuda-launch]
version = "0.1.0"
[dependencies.oxicuda-levelzero]
version = "0.1.0"
optional = true
[dependencies.oxicuda-memory]
version = "0.1.0"
[dependencies.oxicuda-metal]
version = "0.1.0"
optional = true
[dependencies.oxicuda-primitives]
version = "0.1.0"
optional = true
[dependencies.oxicuda-ptx]
version = "0.1.0"
optional = true
[dependencies.oxicuda-rand]
version = "0.1.0"
optional = true
[dependencies.oxicuda-rocm]
version = "0.1.0"
optional = true
[dependencies.oxicuda-solver]
version = "0.1.0"
optional = true
[dependencies.oxicuda-sparse]
version = "0.1.0"
optional = true
[dependencies.oxicuda-vulkan]
version = "0.1.0"
optional = true
[dependencies.oxicuda-webgpu]
version = "0.1.0"
optional = true
[dependencies.serde_json]
version = "1.0"
[dependencies.wasm-bindgen]
version = "0.2.118"
optional = true
[dev-dependencies.criterion]
version = "0.8"
[lints.clippy]
missing_errors_doc = "allow"
missing_panics_doc = "allow"
missing_transmute_annotations = "allow"
module_name_repetitions = "allow"
similar_names = "allow"
too_many_arguments = "allow"
too_many_lines = "allow"
wildcard_imports = "allow"
[lints.clippy.all]
level = "warn"
priority = -1
[lints.clippy.complexity]
level = "warn"
priority = -1
[lints.clippy.correctness]
level = "deny"
priority = -1
[lints.clippy.perf]
level = "warn"
priority = -1
[lints.clippy.style]
level = "warn"
priority = -1
[lints.clippy.suspicious]
level = "deny"
priority = -1
[lints.rust]
dead_code = "warn"
unsafe_op_in_unsafe_fn = "warn"
unused_imports = "warn"
unused_variables = "warn"