-
Notifications
You must be signed in to change notification settings - Fork 3
/
Cargo.toml
162 lines (141 loc) · 3.55 KB
/
Cargo.toml
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
161
162
[workspace]
members = [
"validate",
"validate/remote",
"sass",
"ptx",
"ptx/bison",
"cuda/cudart",
"profile",
"playground",
"playground/sys",
"exec",
"exec/derive",
"stats",
"benchmarks",
"accelsim",
"accelsim/trace",
"accelsim/sim",
"utils",
"trace",
"trace/invoke",
"trace/model",
"xtask", "diff",
]
[profile.dev]
opt-level = 0 # no optimizations
debug = 2 # full debug info
[profile.dev.package.backtrace]
opt-level = 3
[profile.release]
# link time optimization takes too long
lto = false
opt-level = 3
debug = true
# warning: debug assertions negatively impact the performance of accelsim and play
debug-assertions = false
[profile.bench]
lto = false
# warning: debug assertions negatively impact the performance of accelsim and play
debug-assertions = false
# codegen-units = 10
opt-level = 3
debug = true
[profile.fast]
inherits = "release"
debug = true
lto = true
codegen-units = 1
[package]
name = "gpucachesim"
version = "0.1.0"
edition = "2021"
publish = false
[features]
# default = ["detailed-stats", "parking_lot", "parallel", "deadlock_detection"]
# default = ["detailed-stats", "parking_lot", "parallel", "jemalloc"]
# default = ["parking_lot", "parallel", "jemalloc", "timings"]
default = ["parking_lot", "parallel", "jemalloc"]
# default = ["parallel"]
# default = ["parallel", "timings"]
# default = ["parking_lot", "parallel", "deadlock_detection"]
deadlock_detection = ["parking_lot/deadlock_detection"]
jemalloc = ["dep:tikv-jemallocator"]
timings = []
detailed-stats = ["stats/detailed-stats"]
parallel = ["dep:rayon"]
parking_lot = []
python = ["dep:pyo3"]
local-data = []
[package.metadata.cargo-feature-combinations]
denylist = ["default", "local-data"]
[[bench]]
name = "vectoradd"
harness = false
required-features = ["parallel"]
[dependencies]
color-eyre = "0"
human_bytes = "0"
console = "0"
thiserror = "1"
nvbit-model = "0"
nvbit-io = "0"
regex = "1"
itertools = "0"
indexmap = { version = "2", features = ["serde"] }
serde_yaml = "0"
csv = "1"
clap = { version = "4", features = ["derive"] }
serde = { version = "1", features = ["derive"] }
serde_json = "1"
rmp-serde = "1"
log = "0"
env_logger = "0"
once_cell = "1"
bitvec = "1"
strum = { version = "0", features = ["derive"] }
phf = { version = "0.11.1", features = ["macros"] }
rangemap = "1"
ndarray = "0"
smallvec = { version = "1", features = ["const_generics"] }
vec-collections = "0"
lockfree = "0" # no used right now, used crossbeam for now
# serde_json_merge = "0"
# synchronization
flume = "0"
crossbeam = "0"
num_cpus = "1"
parking_lot = { version = "0", features = ["deadlock_detection"] }
# tracing
tracing = "0"
tracing-subscriber = "0"
tracing-chrome = "0"
# parallel simulation
rayon = { version = "1", optional = true }
trace-model = { path = "./trace/model" }
stats = { path = "./stats" }
utils = { path = "./utils" }
# exec driven (todo: make this a feature)
exec = { path = "./exec" }
[target.'cfg(not(target_env = "msvc"))'.dependencies]
tikv-jemallocator = { version = "0", optional = true }
[dependencies.pyo3]
version = "0"
features = ["extension-module"]
optional = true
[dev-dependencies]
pretty_assertions_sorted = "1"
cxx = "1"
paste = "1"
num-traits = "0"
diff = { path = "./diff" }
criterion = { version = "0.5", features = ["async_tokio"] }
# sanity check stats against playground
playground = { path = "./playground" }
accelsim = { path = "./accelsim" }
accelsim-sim = { path = "./accelsim/sim" }
validate = { path = "./validate" }
# testing if ffi works in async contexts
tokio = { version = "1", features = ["full"] }
async-process = "1"
futures = "0.3"