[package]
edition = "2021"
name = "optirs-gpu"
version = "0.2.0"
authors = ["COOLJAPAN OU (Team KitaSan)"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "OptiRS GPU acceleration and multi-GPU optimization"
readme = "README.md"
keywords = [
"gpu",
"cuda",
"metal",
"opencl",
"optimization",
]
categories = [
"science",
"algorithms",
"hardware-support",
]
license = "Apache-2.0"
repository = "https://github.com/cool-japan/optirs"
[package.metadata.docs.rs]
features = ["wgpu"]
rustdoc-args = [
"--cfg",
"docsrs",
]
[features]
cuda = ["cudarc"]
default = ["wgpu"]
opencl = ["opencl3"]
wgpu = [
"dep:wgpu",
"pollster",
]
[lib]
name = "optirs_gpu"
path = "src/lib.rs"
[dependencies.cudarc]
version = "0.19"
features = ["cuda-12000"]
optional = true
[dependencies.futures]
version = "0.3.32"
[dependencies.log]
version = "0.4"
[dependencies.opencl3]
version = "0.12"
optional = true
[dependencies.optirs-core]
version = "0.2.0"
[dependencies.pollster]
version = "0.4"
optional = true
[dependencies.scirs2-core]
version = "0.2.0"
[dependencies.serde]
version = "1.0"
features = [
"derive",
"derive",
]
[dependencies.thiserror]
version = "2.0.18"
[dependencies.tokio]
version = "1.49.0"
features = [
"full",
"rt",
]
[dependencies.wgpu]
version = "28.0"
optional = true
[dev-dependencies.approx]
version = "0.5.1"
[dev-dependencies.tokio-test]
version = "0.4.5"
[target.'cfg(target_os = "macos")'.dependencies.metal]
version = "0.33.0"
optional = true
[target.'cfg(target_os = "macos")'.dependencies.objc2]
version = "0.6.3"
optional = true
[target.'cfg(target_os = "macos")'.dependencies.objc2-foundation]
version = "0.3.1"
optional = true
[target.'cfg(target_os = "macos")'.dependencies.objc2-metal-performance-shaders]
version = "0.3.1"
optional = true
[lints.rust]
dead_code = "allow"
mismatched_lifetime_syntaxes = "allow"
unknown_lints = "allow"
unpredictable_function_pointer_comparisons = "allow"
unused_imports = "allow"
unused_variables = "allow"