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-03-28 05:40:12 +08:00
|
|
|
# we depend on wgpu and autotune by default because we use the burn-wgpu crate to get system information
|
|
|
|
default = ["burn/std", "burn/autodiff", "burn/wgpu", "burn/autotune"]
|
2023-10-23 23:00:54 +08:00
|
|
|
candle-cpu = ["burn/candle"]
|
2024-04-30 21:46:29 +08:00
|
|
|
candle-cuda = ["burn/candle-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-09 00:28:02 +08:00
|
|
|
wgpu = ["burn/wgpu", "burn/autotune"]
|
|
|
|
wgpu-fusion = ["wgpu", "burn/fusion"]
|
2024-05-24 23:31:47 +08:00
|
|
|
cuda-jit = ["burn-cuda"]
|
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 }
|
2024-05-29 06:12:44 +08:00
|
|
|
burn-common = { path = "../crates/burn-common", version = "0.14.0" }
|
|
|
|
burn-wgpu = { path = "../crates/burn-wgpu", default-features = false, version = "0.14.0" }
|
|
|
|
burn-cuda = { path = "../crates/burn-cuda", version = "0.14.0", optional = true }
|
2024-02-07 22:28:02 +08:00
|
|
|
clap = { workspace = true }
|
2024-04-04 03:41:35 +08:00
|
|
|
colored = { workspace = 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-03-27 03:58:38 +08:00
|
|
|
github-device-flow = { workspace = true }
|
|
|
|
os_info = { workspace = true }
|
2024-04-04 03:41:35 +08:00
|
|
|
indicatif = { workspace = true }
|
2024-04-04 22:06:30 +08:00
|
|
|
percent-encoding = { workspace = true }
|
2023-09-28 21:38:21 +08:00
|
|
|
rand = { workspace = true }
|
2024-05-23 02:08:21 +08:00
|
|
|
reqwest = { workspace = true, features = ["blocking", "json"] }
|
2024-03-21 03:39:32 +08:00
|
|
|
serde = { workspace = true }
|
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 }
|
2024-03-23 11:24:49 +08:00
|
|
|
sysinfo = { workspace = true, features = ["serde"] }
|
|
|
|
wgpu = { workspace = true }
|
2024-03-27 03:58:38 +08:00
|
|
|
wsl = { 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
|
|
|
|
|
2024-03-05 02:23:11 +08:00
|
|
|
[[bench]]
|
2024-03-21 03:39:32 +08:00
|
|
|
name = "max-pool2d"
|
|
|
|
path = "benches/max_pool2d.rs"
|
2024-03-05 02:23:11 +08:00
|
|
|
harness = false
|
|
|
|
|
2024-03-29 00:13:06 +08:00
|
|
|
[[bench]]
|
|
|
|
name = "conv-transpose2d"
|
|
|
|
path = "benches/conv_transpose2d.rs"
|
|
|
|
harness = false
|
|
|
|
|
2024-07-03 06:54:35 +08:00
|
|
|
[[bench]]
|
|
|
|
name = "conv-transpose3d"
|
|
|
|
path = "benches/conv_transpose3d.rs"
|
|
|
|
harness = false
|
|
|
|
|
2024-05-23 02:08:21 +08:00
|
|
|
[[bench]]
|
|
|
|
name = "conv2d"
|
|
|
|
harness = false
|
|
|
|
|
2024-07-03 06:54:35 +08:00
|
|
|
[[bench]]
|
|
|
|
name = "conv3d"
|
|
|
|
harness = false
|
|
|
|
|
2023-09-28 21:38:21 +08:00
|
|
|
[[bench]]
|
|
|
|
name = "matmul"
|
|
|
|
harness = false
|
|
|
|
|
|
|
|
[[bench]]
|
|
|
|
name = "data"
|
|
|
|
harness = false
|
2023-11-16 21:15:21 +08:00
|
|
|
|
2024-04-02 22:13:35 +08:00
|
|
|
[[bench]]
|
|
|
|
name = "load-record"
|
|
|
|
harness = false
|
|
|
|
path = "benches/load_record.rs"
|
|
|
|
|
2023-11-16 21:15:21 +08:00
|
|
|
[[bench]]
|
2024-03-21 03:39:32 +08:00
|
|
|
name = "custom-gelu"
|
|
|
|
path = "benches/custom_gelu.rs"
|
2023-11-16 21:15:21 +08:00
|
|
|
harness = false
|
2024-02-07 22:28:02 +08:00
|
|
|
|
2024-04-27 00:25:53 +08:00
|
|
|
[[bench]]
|
|
|
|
name = "autodiff"
|
|
|
|
harness = false
|
|
|
|
|
2024-02-07 22:28:02 +08:00
|
|
|
[[bin]]
|
|
|
|
name = "burnbench"
|
|
|
|
path = "src/bin/burnbench.rs"
|