[package]
edition = "2024"
rust-version = "1.85"
name = "oxicuda-sparse"
version = "0.4.0"
authors = ["COOLJAPAN OU <contact@cooljapan.tech>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "OxiCUDA Sparse - GPU-accelerated sparse matrix operations (cuSPARSE equivalent)"
readme = "README.md"
keywords = [
"cuda",
"sparse",
"gpu",
"matrix",
"linear-algebra",
]
categories = [
"mathematics",
"science",
"hardware-support",
]
license = "Apache-2.0"
repository = "https://github.com/cool-japan/oxicuda"
resolver = "2"
[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
"--cfg",
"docsrs",
]
[features]
default = []
f16 = [
"dep:half",
"oxicuda-blas/f16",
]
gpu-tests = []
[lib]
name = "oxicuda_sparse"
path = "src/lib.rs"
[[bench]]
name = "spmv_csr"
path = "benches/spmv_csr.rs"
harness = false
[dependencies.half]
version = "2.7"
features = [
"num-traits",
"bytemuck",
]
optional = true
[dependencies.oxicuda-blas]
version = "0.4.0"
[dependencies.oxicuda-driver]
version = "0.4.0"
[dependencies.oxicuda-launch]
version = "0.4.0"
[dependencies.oxicuda-memory]
version = "0.4.0"
[dependencies.oxicuda-ptx]
version = "0.4.0"
[dependencies.thiserror]
version = "2"
[dev-dependencies.criterion]
version = "0.8"
[lints.clippy]
excessive_precision = "allow"
float_cmp = "allow"
missing_errors_doc = "allow"
missing_panics_doc = "allow"
missing_transmute_annotations = "allow"
module_inception = "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"