2023-09-28 21:38:21 +08:00
|
|
|
[package]
|
|
|
|
authors = ["louisfd <louisfd94@gmail.com>"]
|
|
|
|
categories = ["science"]
|
|
|
|
description = "This crate is used to time the execution of various computations, from operation kernels to complex model scenarios."
|
2023-12-12 22:39:07 +08:00
|
|
|
edition.workspace = true
|
|
|
|
license.workspace = true
|
2023-09-28 21:38:21 +08:00
|
|
|
name = "backend-comparison"
|
2023-12-12 22:39:07 +08:00
|
|
|
readme.workspace = true
|
2023-12-02 03:33:28 +08:00
|
|
|
repository = "https://github.com/tracel-ai/burn/tree/main/backend-comparison"
|
2023-12-12 22:39:07 +08:00
|
|
|
version.workspace = true
|
2023-09-28 21:38:21 +08:00
|
|
|
|
|
|
|
[features]
|
2024-02-27 06:19:09 +08:00
|
|
|
default = ["burn/std", "burn/autodiff"]
|
2023-10-23 23:00:54 +08:00
|
|
|
candle-cpu = ["burn/candle"]
|
2023-12-01 22:48:28 +08:00
|
|
|
candle-cuda = ["burn/candle", "burn/cuda"]
|
2024-01-09 05:41:34 +08:00
|
|
|
candle-metal = ["burn/candle", "burn/metal"]
|
2023-12-01 22:48:28 +08:00
|
|
|
candle-accelerate = ["burn/candle", "burn/accelerate"]
|
2023-09-28 21:38:21 +08:00
|
|
|
ndarray = ["burn/ndarray"]
|
2023-12-01 22:48:28 +08:00
|
|
|
ndarray-blas-accelerate = ["burn/ndarray", "burn/accelerate"]
|
|
|
|
ndarray-blas-netlib = ["burn/ndarray", "burn/blas-netlib"]
|
|
|
|
ndarray-blas-openblas = ["burn/ndarray", "burn/openblas"]
|
2023-09-28 21:38:21 +08:00
|
|
|
tch-cpu = ["burn/tch"]
|
|
|
|
tch-gpu = ["burn/tch"]
|
2024-02-07 22:28:02 +08:00
|
|
|
tui = ["ratatui", "crossterm"]
|
2024-02-09 00:28:02 +08:00
|
|
|
wgpu = ["burn/wgpu", "burn/autotune"]
|
|
|
|
wgpu-fusion = ["wgpu", "burn/fusion"]
|
2023-09-28 21:38:21 +08:00
|
|
|
|
|
|
|
[dependencies]
|
2024-02-14 00:16:53 +08:00
|
|
|
arboard = { workspace = true }
|
2024-02-21 02:57:55 +08:00
|
|
|
burn = { path = "../crates/burn", default-features = false }
|
|
|
|
burn-common = { path = "../crates/burn-common", version = "0.13.0" }
|
2024-02-07 22:28:02 +08:00
|
|
|
clap = { workspace = true }
|
|
|
|
crossterm = { workspace = true, optional = true }
|
2023-09-28 21:38:21 +08:00
|
|
|
derive-new = { workspace = true }
|
2024-02-07 22:28:02 +08:00
|
|
|
dirs = { workspace = true }
|
2024-02-14 00:16:53 +08:00
|
|
|
github-device-flow = { workspace = true }
|
2023-09-28 21:38:21 +08:00
|
|
|
rand = { workspace = true }
|
2024-02-07 22:28:02 +08:00
|
|
|
ratatui = { workspace = true, optional = true }
|
2024-02-14 00:16:53 +08:00
|
|
|
reqwest = {workspace = true, features = ["blocking", "json"]}
|
2023-11-23 00:50:27 +08:00
|
|
|
serde_json = { workspace = true }
|
2024-02-07 22:28:02 +08:00
|
|
|
strum = { workspace = true }
|
|
|
|
strum_macros = { workspace = true }
|
2023-09-28 21:38:21 +08:00
|
|
|
|
|
|
|
[dev-dependencies]
|
2024-03-03 00:38:18 +08:00
|
|
|
rstest = { workspace = true }
|
2024-02-14 00:16:53 +08:00
|
|
|
serial_test = { workspace = true }
|
2023-09-28 21:38:21 +08:00
|
|
|
|
|
|
|
[[bench]]
|
|
|
|
name = "unary"
|
|
|
|
harness = false
|
|
|
|
|
|
|
|
[[bench]]
|
|
|
|
name = "binary"
|
|
|
|
harness = false
|
|
|
|
|
|
|
|
[[bench]]
|
|
|
|
name = "matmul"
|
|
|
|
harness = false
|
|
|
|
|
|
|
|
[[bench]]
|
|
|
|
name = "data"
|
|
|
|
harness = false
|
2023-11-16 21:15:21 +08:00
|
|
|
|
|
|
|
[[bench]]
|
|
|
|
name = "custom_gelu"
|
|
|
|
harness = false
|
2024-02-07 22:28:02 +08:00
|
|
|
|
|
|
|
[[bin]]
|
|
|
|
name = "burnbench"
|
|
|
|
path = "src/bin/burnbench.rs"
|