[package]
name = "nuvec-gpu"
description = "Metal runtime for nuvec: device, pipelines, buffers, command encoding, allocator and profiler"
exclude.workspace = true
version.workspace = true
edition.workspace = true
rust-version.workspace = true
license.workspace = true
repository.workspace = true
authors.workspace = true
homepage.workspace = true
readme.workspace = true
keywords.workspace = true
categories.workspace = true
[dependencies]
nuvec-kernels.workspace = true
[features]
cuda = ["nuvec-kernels/cuda", "dep:cuda-core", "dep:cuda-async", "dep:cutile", "dep:half"]
[target.'cfg(target_os = "linux")'.dependencies]
cuda-core = { version = "=0.4.0", optional = true }
cuda-async = { version = "=0.4.0", optional = true }
cutile = { version = "=0.4.0", optional = true }
half = { workspace = true, optional = true }
[target.'cfg(target_os = "macos")'.dependencies]
block2.workspace = true
libc.workspace = true
dispatch2.workspace = true
objc2.workspace = true
objc2-foundation.workspace = true
objc2-metal.workspace = true
[package.metadata.docs.rs]
targets = ["aarch64-apple-darwin"]
[[example]]
name = "cuda_bench"
required-features = ["cuda"]
[lints]
workspace = true