-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBUILD
69 lines (67 loc) · 1.9 KB
/
BUILD
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
cc_library(
name = "hnn",
srcs = [
"src/common/helper.h",
"src/common/runcontext.cpp",
"src/kernels/cpu/fully_connected.cpp",
"src/kernels/cpu/op_utils.h",
"src/kernels/cpu/rms_normalization.cpp",
"src/kernels/cpu/soft_max.cpp",
"src/kernels/cpu/dequant_token.cpp",
"src/memory_manager/buffer_allocator.cpp",
"src/memory_manager/buffer_manager.cpp",
"src/memory_manager/tensor.h",
"src/model_structure/configs/configs.h",
"src/model_structure/configs/transformers_config.h",
"src/model_structure/models/model.h",
"src/model_structure/models/transformers/llama_2.cpp",
"src/parser/model_parser.cpp",
"src/types.h",
"src/utils.cpp",
"src/kernels/cpu/argmax.cpp",
],
hdrs = [
"src/common/runcontext.h",
"src/kernels/cpu/fully_connected.h",
"src/kernels/cpu/operators.h",
"src/kernels/cpu/rms_normalization.h",
"src/kernels/cpu/soft_max.h",
"src/kernels/cpu/dequant_token.h",
"src/memory_manager/buffer_allocator.h",
"src/memory_manager/buffer_manager.h",
"src/model_structure/models/model.h",
"src/model_structure/models/transformers/llama_2.h",
"src/parser/model_parser.h",
"src/utils.h",
"src/kernels/cpu/argmax.h",
],
copts = [
"-Isrc/",
"-Ofast",
"-fopenmp",
"-static-openmp",
],
linkopts = [
"-Wl,-soname,libhnn.so",
"-Wl,-Bstatic -lomp -Wl,-Bdynamic",
],
)
cc_binary(
name = "Hnn_Test",
srcs = [
"hnn_test/hnn_test.cpp",
],
copts = [
"-Isrc/",
"-Ofast",
"-fopenmp",
"-static-openmp",
],
linkopts = ["-Wl,-Bstatic -lomp -Wl,-Bdynamic"],
linkstatic = 1,
deps = [":hnn"],
)
cc_binary(
name = "quantizer",
srcs = ["quantizer.c"],
)