forked from tracel-ai/cubecl
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
160 lines (130 loc) · 4.29 KB
/
Cargo.toml
File metadata and controls
160 lines (130 loc) · 4.29 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
[workspace]
# Try
# require version 2 to avoid "feature" additiveness for dev-dependencies
# https://doc.rust-lang.org/cargo/reference/resolver.html#feature-resolver-version-2
resolver = "2"
members = ["crates/*", "examples/*", "xtask"]
[workspace.package]
edition = "2024"
license = "MIT OR Apache-2.0"
readme = "README.md"
rust-version = "1.88"
version = "0.9.0"
[workspace.lints.rust]
warnings = "warn"
[workspace.lints.clippy]
doc_markdown = "warn"
[workspace.lints.rustdoc]
broken_intra_doc_links = "warn"
invalid_html_tags = "warn"
[workspace.dependencies]
bitflags = { version = "2.9.1", features = ["serde"] }
derive-new = { version = "0.7.0", default-features = false }
derive_more = { version = "2", default-features = false }
clap = { version = "4.5.53" }
log = { default-features = false, version = "^0.4.22" }
tokio = { version = "^1.47.1" }
test-log = { version = "^0.2", default-features = false }
tracing = { version = "^0.1.43", default-features = false }
tracing-opentelemetry = "^0.32.0"
tracing-subscriber = "^0.3.20"
opentelemetry = "^0.31.0"
opentelemetry-aws = "^0.19.0"
opentelemetry-otlp = "^0.31.0"
opentelemetry_sdk = "^0.31.0"
bincode = { version = "2.0.1", features = [
"alloc",
"serde",
], default-features = false }
fnv = "1"
serde = { version = "1.0.204", default-features = false, features = [
"derive",
"alloc",
] } # alloc is for no_std, derive is needed
serde_bytes = { version = "0.11.17", default-features = false, features = [
"alloc",
] } # alloc for no_std
serde_json = { version = "1.0.119", default-features = false }
toml = "0.9.1"
variadics_please = "1"
# no_std compatibility
dashmap = "6.1.0"
foldhash = { version = "0.1.2", default-features = false }
hashbrown = "0.15.5"
smallvec = { version = "1", features = ["union", "const_generics"] }
spin = { version = "0.10.0", features = ["mutex", "spin_mutex"] }
rand = { version = "0.9.2", default-features = false, features = [
"std_rng",
] } # std_rng is for no_std
async-channel = "2.3"
dirs = "6.0.0"
embassy-time = { version = "0.4.0", default-features = false }
md5 = "0.8.0"
sanitize-filename = "0.6"
wasm-bindgen-futures = "0.4.45"
weak-table = "0.3"
web-time = "1.1.0"
# Testing
rstest = "0.25.0"
serial_test = "3.1.1"
bytemuck = "1.16.1"
bytes = { version = "1.10", default-features = false }
float-ord = "0.3"
float4 = "0.1"
float8 = { version = "0.4", default-features = false }
half = { version = "2.5", features = [
"alloc",
"num-traits",
"serde",
], default-features = false }
num-traits = { version = "0.2.19", default-features = false, features = [
"libm",
] } # libm is for no_std
cfg-if = "1.0.0"
darling = "0.21.0"
enumset = { version = "1.1.10", default-features = false }
ident_case = "1"
paste = "1"
proc-macro2 = "1"
quote = "1"
syn = { version = "2", features = ["full", "extra-traits", "visit-mut"] }
thiserror = { version = "2", default-features = false }
tracy-client = { version = "0.18.0" }
### For xtask crate ###
strum = { version = "0.27.1", features = ["derive"] }
tracel-xtask = "=4.9.0"
# ### For local development. ###
# tracel-xtask = { path = "../xtask/crates/tracel-xtask", default-features = false }
portable-atomic = { version = "1.11", default-features = false, features = [
"serde",
] }
portable-atomic-util = { version = "0.2.4", features = ["alloc"] }
pretty_assertions = "1.4"
# Async
embassy-futures = { version = "0.1.1" } # for no-std
futures-lite = { version = "2.3.0", default-features = false }
# CubeCL-CPU
sysinfo = "0.36.1"
tracel-llvm = { version = "20.1.4-6", features = ["mlir-helpers"] }
### For development, if you uncomment, don't forget do to it in `crates/cubecl-cpu/Cargo.toml` [build-dependencies] too to avoid race conditions during build
# tracel-llvm = { path = "../tracel-llvm/crates/tracel-llvm", features = ["mlir-helpers"] }
cudarc = { version = "0.19.0", features = [
"std",
"driver",
"nvrtc",
"fallback-dynamic-loading",
"cuda-version-from-build-system",
"fallback-latest",
], default-features = false } # CubeCL-CUDA
# CubeCL-SPIR-V
rspirv = { package = "tracel-rspirv", version = "0.12.0" }
# CubeCL-WGPU
ash = "0.38"
tracel-ash = "0.38.0"
# Build deps
cfg_aliases = "0.2.1"
[profile.dev]
debug = 0 # Speed up compilation time and not necessary.
opt-level = 0
[profile.dev.build-override]
opt-level = 3