tenferro-gpu 0.1.0

CubeCL-backed CUDA and WebGPU provider backends for tenferro tensors.
Documentation
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2021"
name = "tenferro-gpu"
version = "0.1.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/"
readme = "README.md"
license = "MIT OR Apache-2.0"
repository = "https://github.com/tensor4all/tenferro-rs"

[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",
]

[lib]
name = "tenferro_gpu"
path = "src/lib.rs"

[[example]]
name = "cuda_quickstart"
path = "examples/cuda_quickstart.rs"
required-features = ["cuda"]

[[test]]
name = "cubecl_launch_contract"
path = "tests/cubecl_launch_contract.rs"

[[test]]
name = "kernel_metadata_contract"
path = "tests/kernel_metadata_contract.rs"

[[test]]
name = "public_surface_contract"
path = "tests/public_surface_contract.rs"

[[test]]
name = "webgpu_backend_contract"
path = "tests/webgpu_backend_contract.rs"

[[test]]
name = "webgpu_matmul_runtime"
path = "tests/webgpu_matmul_runtime.rs"

[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-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.tenferro-core-ops]
version = "0.1.0"

[dependencies.tenferro-tensor]
version = "0.1.0"
default-features = false

[dependencies.thiserror]
version = "2"

[dev-dependencies.criterion]
version = "0.5"

[dev-dependencies.tenferro-cpu]
version = "0.1.0"
default-features = false