[package]
edition = "2024"
rust-version = "1.85"
name = "cartan-gpu"
version = "0.5.1"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Portable GPU compute primitives for the cartan ecosystem: wgpu device/buffer/kernel abstractions plus VkFFT-backed FFT."
homepage = "https://cartan.sotofranco.dev"
documentation = "https://docs.rs/cartan-gpu"
readme = "README.md"
keywords = [
"gpu",
"wgpu",
"vulkan",
"fft",
"compute",
]
categories = [
"science",
"graphics",
]
license = "MIT"
repository = "https://github.com/alejandro-soto-franco/cartan"
[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
"--cfg",
"docsrs",
]
[features]
cuda = ["dep:cudarc"]
cufft = [
"cuda",
"cudarc/cufft",
"cudarc/cublas",
]
default = ["vkfft"]
vkfft = [
"dep:cartan-gpu-sys",
"dep:ash",
]
[lib]
name = "cartan_gpu"
path = "src/lib.rs"
[[test]]
name = "buffer_roundtrip"
path = "tests/buffer_roundtrip.rs"
[[test]]
name = "cuda_device"
path = "tests/cuda_device.rs"
[[test]]
name = "cufft_roundtrip"
path = "tests/cufft_roundtrip.rs"
[[test]]
name = "device_smoke"
path = "tests/device_smoke.rs"
[[test]]
name = "fft_init"
path = "tests/fft_init.rs"
[[test]]
name = "fft_roundtrip"
path = "tests/fft_roundtrip.rs"
[[test]]
name = "hello_shader"
path = "tests/hello_shader.rs"
[[test]]
name = "shared_fft"
path = "tests/shared_fft.rs"
[[test]]
name = "shared_memory"
path = "tests/shared_memory.rs"
[[test]]
name = "uni_roundtrip"
path = "tests/uni_roundtrip.rs"
[[test]]
name = "uuid_match"
path = "tests/uuid_match.rs"
[[test]]
name = "vulkan_handles"
path = "tests/vulkan_handles.rs"
[[bench]]
name = "fft_compare"
path = "benches/fft_compare.rs"
harness = false
required-features = [
"vkfft",
"cufft",
]
[dependencies.ash]
version = "0.38"
features = ["loaded"]
optional = true
default-features = false
[dependencies.bytemuck]
version = "1"
features = ["derive"]
[dependencies.cartan-gpu-sys]
version = "0.5"
optional = true
[dependencies.cudarc]
version = "0.19"
features = [
"std",
"driver",
"cuda-13010",
"fallback-dynamic-loading",
]
optional = true
default-features = false
[dependencies.log]
version = "0.4"
[dependencies.num-complex]
version = "0.4"
features = [
"std",
"bytemuck",
]
default-features = false
[dependencies.pollster]
version = "0.4"
[dependencies.thiserror]
version = "2"
features = ["std"]
default-features = false
[dependencies.wgpu]
version = "29"
features = [
"vulkan",
"wgsl",
]
default-features = false
[dev-dependencies.approx]
version = "0.5"
features = ["std"]
default-features = false
[dev-dependencies.criterion]
version = "0.5"
features = ["html_reports"]
default-features = false
[dev-dependencies.env_logger]
version = "0.11"
[dev-dependencies.rustfft]
version = "6"
[profile.release]
opt-level = 3
lto = "thin"
codegen-units = 4