-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCargo.toml
86 lines (76 loc) · 1.86 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
[package]
name = "cacti"
version = "0.1.0-devel"
edition = "2018"
authors = ["Peter Jin"]
license = "ISC OR Apache-2.0"
[workspace]
members = [
"cacti_cfg_env",
"cacti_gpu_cu_ffi",
"cacti_smp_c_ffi",
]
[profile.dev]
#opt-level = 0
opt-level = 1
debug = true
overflow-checks = true
panic = "abort"
#codegen-units = 1
#incremental = false
codegen-units = 256
incremental = true
lto = false
[profile.release]
opt-level = 3
debug = true
overflow-checks = true
panic = "abort"
codegen-units = 1
incremental = false
#codegen-units = 256
#incremental = true
lto = false
#lto = "thin"
[features]
default = [
"gpu",
"librarium",
"sentencepiece",
]
gpu = ["nvgpu"]
nvgpu = ["cacti_gpu_cu_ffi"]
librarium = []
sentencepiece = ["librarium", "sentencepiece_ffi"]
nightly = ["cell_split/nightly"]
[dependencies]
aho_corasick = { path = "../aho_corasick", default-features = false, features = ["std"] }
byteorder = { path = "../byteorder" }
cacti_cfg_env = { path = "cacti_cfg_env" }
cacti_gpu_cu_ffi = { path = "cacti_gpu_cu_ffi", optional = true }
cacti_smp_c_ffi = { path = "cacti_smp_c_ffi" }
cell_split = { path = "../cell_split" }
fxhash = { path = "../fxhash" }
futhark_ffi = { path = "../futhark_ffi" }
glob = { path = "../glob" }
half = { path = "../half" }
home = { path = "../home" }
libc = { path = "../libc" }
once_cell = { path = "../once_cell" }
repugnant_pickle = { path = "../repugnant_pickle" }
rustc_serialize = { path = "../rustc_serialize" }
sentencepiece_ffi = { path = "../sentencepiece_ffi", optional = true }
smol_str = { path = "../smol_str", default-features = false }
[[bin]]
name = "inspect_pickle_bin"
path = "tools/inspect_pickle_bin.rs"
[[bin]]
name = "inspect_pickle_dir"
path = "tools/inspect_pickle_dir.rs"
[[bin]]
name = "inspect_tensors_dir"
path = "tools/inspect_tensors_dir.rs"
# For internal development:
#[[bin]]
#name = "gen_macros"
#path = "tools/gen_macros.rs"