crates/kleene-cubecl/Cargo.toml
[package]
name = "kleene-cubecl"
description = "The kleene-sparse backend on GPUs through CubeCL (wgpu: Vulkan, Metal, DX12)."
version.workspace = true
edition.workspace = true
rust-version.workspace = true
license.workspace = true
authors.workspace = true
repository.workspace = true
publish.workspace = true
readme = "README.md"
keywords = ["gpu", "sparse", "graph", "cubecl", "wgpu"]
categories = ["algorithms", "mathematics", "concurrency"]
# Sources, tests and the licences; bench data and results stay in the repository.
include = ["src/**/*", "tests/**/*", "README.md", "LICENSE-MIT", "LICENSE-APACHE"]
[dependencies]
kleene-graph.workspace = true
kleene-sparse.workspace = true
arrow-buffer.workspace = true
# The GPU API follows the target. Everywhere but macOS: the wgpu runtime with its Vulkan
# (SPIR-V) compiler (64-bit words and atomics). On macOS: wgpu's Metal backend with
# CubeCL's MSL compiler (`metal`); the SPIR-V path would need the Vulkan SDK there. The
# macOS side is compile-checked only (no Mac to run on).
[target.'cfg(not(target_os = "macos"))'.dependencies]
cubecl = { version = "0.11", default-features = false, features = ["std", "vulkan"] }
[target.'cfg(target_os = "macos")'.dependencies]
cubecl = { version = "0.11", default-features = false, features = ["std", "metal"] }
[package.metadata.docs.rs]
# Documents without a GPU: no kernel runs at build time. Linux takes the Vulkan path.
targets = ["x86_64-unknown-linux-gnu"]
[lints]
workspace = true