-
Notifications
You must be signed in to change notification settings - Fork 43
/
Copy pathBUILD
151 lines (140 loc) · 3.24 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
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
load("//itex:itex.bzl", "cc_library", "tf_copts")
filegroup(
name = "core_ops_hdrs",
srcs = [
"op_init.h",
],
visibility = ["//visibility:public"],
)
cc_library(
name = "array_ops",
srcs = ["array_ops.cc"],
copts = tf_copts(),
linkstatic = 1,
visibility = ["//visibility:public"],
deps = [
":shape_inference_fns",
"//itex/core/ops/utils:logging",
"//itex/core/ops/utils:status",
],
alwayslink = True,
)
cc_library(
name = "rnn_ops",
srcs = ["rnn_ops.cc"],
copts = tf_copts(),
linkstatic = 1,
visibility = ["//visibility:public"],
deps = [
":shape_inference_fns",
"//itex/core/ops/utils:logging",
"//itex/core/ops/utils:status",
],
alwayslink = True,
)
cc_library(
name = "math_ops",
srcs = ["math_ops.cc"],
copts = tf_copts(),
linkstatic = 1,
visibility = ["//visibility:public"],
deps = [
":shape_inference_fns",
"//itex/core/ops/utils:logging",
"//itex/core/ops/utils:status",
],
alwayslink = True,
)
cc_library(
name = "nn_ops",
srcs = ["nn_ops.cc"],
copts = tf_copts(),
linkstatic = 1,
visibility = ["//visibility:public"],
deps = [
":shape_inference_fns",
"//itex/core/ops/utils:logging",
"//itex/core/ops/utils:padding",
"//itex/core/ops/utils:status",
"//itex/core/utils:tf_version",
"@local_config_tf//:protos_all",
],
alwayslink = True,
)
cc_library(
name = "onednn_graph_op",
srcs = ["onednn_graph_op.cc"],
copts = tf_copts(),
linkstatic = 1,
visibility = ["//visibility:public"],
deps = [
":shape_inference_fns",
"//itex/core/ops/utils:logging",
"//itex/core/ops/utils:status",
],
alwayslink = True,
)
cc_library(
name = "training_ops",
srcs = ["training_ops.cc"],
copts = tf_copts(),
linkstatic = 1,
visibility = ["//visibility:public"],
deps = [
":shape_inference_fns",
"//itex/core/ops/utils:logging",
"//itex/core/ops/utils:status",
],
alwayslink = True,
)
cc_library(
name = "fp8_ops",
srcs = ["fp8_ops.cc"],
copts = tf_copts(),
linkstatic = 1,
visibility = ["//visibility:public"],
deps = [
":shape_inference_fns",
"//itex/core/ops/utils:logging",
"//itex/core/ops/utils:status",
],
alwayslink = True,
)
OPS = [
":array_ops",
":math_ops",
":rnn_ops",
":nn_ops",
":onednn_graph_op",
":training_ops",
":fp8_ops",
]
cc_library(
name = "shape_inference_fns",
srcs = ["shape_inference_fns.cc"],
hdrs = [
"shape_inference_fns.h",
],
copts = tf_copts(),
visibility = ["//visibility:public"],
deps = [
"//itex/core/ops/utils:logging",
"//itex/core/ops/utils:status",
"//third_party/eigen3",
"@com_google_absl//absl/strings:cord",
"@local_config_tf//:tf_header_lib",
],
)
cc_library(
name = "op_impl",
srcs = ["op_init.cc"],
hdrs = [
"op_init.h",
],
copts = ["-fvisibility=hidden"],
visibility = ["//visibility:public"],
deps = [
"//itex/core/ops/onednn:onednn_ops",
] + OPS,
alwayslink = True,
)