unmtx-gpu 0.2.0

Micro matrix library for neural networks that uses GPU.
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 = "2018"
name = "unmtx-gpu"
version = "0.2.0"
authors = ["Ɓukasz Szpakowski <luckboy@vp.pl>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Micro matrix library for neural networks that uses GPU."
documentation = "https://docs.rs/unmtx-gpu"
readme = "README.md"
keywords = [
    "matrix",
    "opencl",
    "cuda",
    "gpu",
    "neural-network",
]
categories = [
    "mathematics",
    "science",
]
license = "MPL-2.0"
repository = "https://github.com/luckboy/unmtx-gpu"

[package.metadata.docs.rs]
features = [
    "opencl",
    "cuda",
    "cuda-13010",
]

[features]
cuda = ["dep:cudarc"]
cuda-11040 = [
    "cuda",
    "cudarc/cuda-11040",
]
cuda-11050 = [
    "cuda",
    "cudarc/cuda-11050",
]
cuda-11060 = [
    "cuda",
    "cudarc/cuda-11060",
]
cuda-11070 = [
    "cuda",
    "cudarc/cuda-11070",
]
cuda-11080 = [
    "cuda",
    "cudarc/cuda-11080",
]
cuda-12000 = [
    "cuda",
    "cudarc/cuda-12000",
]
cuda-12010 = [
    "cuda",
    "cudarc/cuda-12010",
]
cuda-12020 = [
    "cuda",
    "cudarc/cuda-12020",
]
cuda-12030 = [
    "cuda",
    "cudarc/cuda-12030",
]
cuda-12040 = [
    "cuda",
    "cudarc/cuda-12040",
]
cuda-12050 = [
    "cuda",
    "cudarc/cuda-12050",
]
cuda-12060 = [
    "cuda",
    "cudarc/cuda-12060",
]
cuda-12080 = [
    "cuda",
    "cudarc/cuda-12080",
]
cuda-12090 = [
    "cuda",
    "cudarc/cuda-12090",
]
cuda-13000 = [
    "cuda",
    "cudarc/cuda-13000",
]
cuda-13010 = [
    "cuda",
    "cudarc/cuda-13010",
]
cuda-version-from-build-system = [
    "cuda",
    "cudarc/cuda-version-from-build-system",
]
default = ["opencl"]
default_cublas = []
default_ptx = []
opencl = [
    "dep:opencl3",
    "dep:cl3",
]
test_only_backend = []

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

[[example]]
name = "mad"
path = "examples/mad.rs"

[[example]]
name = "mul"
path = "examples/mul.rs"

[[example]]
name = "mul_bt"
path = "examples/mul_bt.rs"

[[example]]
name = "simple"
path = "examples/simple.rs"

[[bench]]
name = "mfuns_cuda"
path = "benches/mfuns_cuda.rs"
harness = false
required-features = ["cuda"]

[[bench]]
name = "mfuns_opencl"
path = "benches/mfuns_opencl.rs"
harness = false
required-features = ["opencl"]

[[bench]]
name = "mul_cublas"
path = "benches/mul_cublas.rs"
harness = false
required-features = ["cuda"]

[[bench]]
name = "mul_cuda"
path = "benches/mul_cuda.rs"
harness = false
required-features = ["cuda"]

[[bench]]
name = "mul_opencl"
path = "benches/mul_opencl.rs"
harness = false
required-features = ["opencl"]

[[bench]]
name = "mul_ptx"
path = "benches/mul_ptx.rs"
harness = false
required-features = ["cuda"]

[[bench]]
name = "nfuns_cuda"
path = "benches/nfuns_cuda.rs"
harness = false
required-features = ["cuda"]

[[bench]]
name = "nfuns_opencl"
path = "benches/nfuns_opencl.rs"
harness = false
required-features = ["opencl"]

[[bench]]
name = "ops_cuda"
path = "benches/ops_cuda.rs"
harness = false
required-features = ["cuda"]

[[bench]]
name = "ops_opencl"
path = "benches/ops_opencl.rs"
harness = false
required-features = ["opencl"]

[dependencies.cl3]
version = "0.13.0"
optional = true

[dependencies.cudarc]
version = "0.19.2"
optional = true

[dependencies.opencl3]
version = "0.12.0"
optional = true

[dev-dependencies.divan]
version = "0.1.21"

[dev-dependencies.rand]
version = "0.10.0"