[package]
edition = "2021"
rust-version = "1.96"
name = "tenferro-gpu"
version = "0.3.0"
authors = [
"Hiroshi Shinaoka <h.shinaoka@gmail.com>",
"GiggleLiu <cacate0129@gmail.com>",
"Satoshi Terasaki <https://github.com/terasakisatoshi>",
]
build = false
publish = true
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "CubeCL-backed CUDA and WebGPU provider backends for tenferro tensors."
homepage = "https://tensor4all.org/tenferro-rs/"
documentation = "https://docs.rs/tenferro-gpu"
readme = "README.md"
keywords = [
"tensor",
"gpu",
"cuda",
"webgpu",
]
categories = [
"science",
"hardware-support",
"mathematics",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/tensor4all/tenferro-rs"
[package.metadata.docs.rs]
rustdoc-args = [
"--cfg",
"docsrs",
]
features = [
"cpu-faer",
"cuda",
"webgpu",
]
[features]
blas-accelerate = ["tenferro-cpu/blas-accelerate"]
blas-mkl = ["tenferro-cpu/blas-mkl"]
blas-openblas = ["tenferro-cpu/blas-openblas"]
cpu-blas = ["tenferro-cpu/cpu-blas"]
cpu-faer = ["tenferro-cpu/cpu-faer"]
cpu-reference = []
cuda = [
"dep:cubecl",
"cubecl/std",
"cubecl/stdlib",
"cubecl/cuda",
"dep:cubecl-cuda",
"dep:cubecl-runtime",
"dep:cudarc",
]
default = ["cpu-faer"]
rocm = []
webgpu = [
"dep:cubecl",
"cubecl/std",
"cubecl/stdlib",
"cubecl/wgpu",
"dep:cubecl-common",
"dep:cubecl-runtime",
"dep:cubecl-wgpu",
"dep:cubek-matmul",
"dep:cubek-std",
"dep:cubek-fft",
]
[lib]
name = "tenferro_gpu"
path = "src/lib.rs"
[[example]]
name = "cuda_quickstart"
path = "examples/cuda_quickstart.rs"
required-features = ["cuda"]
[[test]]
name = "integration"
path = "tests/integration.rs"
[[test]]
name = "storage_provider_cuda_progress"
path = "tests/storage_provider_cuda_progress.rs"
[[test]]
name = "storage_provider_cuda"
path = "tests/storage_provider_cuda.rs"
[[test]]
name = "storage_provider_webgpu"
path = "tests/storage_provider_webgpu.rs"
[[test]]
name = "storage_provider_webgpu_progress"
path = "tests/storage_provider_webgpu_progress.rs"
[[bench]]
name = "cutensor_plan_cache"
path = "benches/cutensor_plan_cache.rs"
harness = false
required-features = ["cuda"]
[dependencies.cubecl]
version = "=0.10.0"
optional = true
default-features = false
package = "t4a-cubecl"
[dependencies.cubecl-common]
version = "=0.10.0"
optional = true
package = "t4a-cubecl-common"
[dependencies.cubecl-cuda]
version = "=0.10.0"
optional = true
package = "t4a-cubecl-cuda"
[dependencies.cubecl-runtime]
version = "=0.10.0"
optional = true
package = "t4a-cubecl-runtime"
[dependencies.cubecl-wgpu]
version = "=0.10.0"
optional = true
package = "t4a-cubecl-wgpu"
[dependencies.cubek-fft]
version = "=0.2.0"
optional = true
default-features = false
package = "cubek-fft"
[dependencies.cubek-matmul]
version = "=0.2.0"
optional = true
default-features = false
package = "t4a-cubek-matmul"
[dependencies.cubek-std]
version = "=0.2.0"
optional = true
default-features = false
package = "t4a-cubek-std"
[dependencies.cudarc]
version = "0.19"
features = [
"driver",
"runtime",
"nvrtc",
"dynamic-loading",
"cuda-12080",
]
optional = true
default-features = false
[dependencies.libloading]
version = "0.8"
[dependencies.num-complex]
version = "0.4"
[dependencies.num-traits]
version = "0.2"
[dependencies.smallvec]
version = "1"
[dependencies.strided-perm]
version = "0.4.0"
features = ["parallel"]
[dependencies.tenferro-core-ops]
version = "0.3.0"
[dependencies.tenferro-cpu]
version = "0.3.0"
default-features = false
[dependencies.tenferro-runtime]
version = "0.3.0"
default-features = false
[dependencies.tenferro-tensor]
version = "0.3.0"
default-features = false
[dependencies.thiserror]
version = "2"
[dev-dependencies.criterion]
version = "0.5"
[dev-dependencies.trybuild]
version = "1"