aboutsummaryrefslogtreecommitdiff
path: root/BUILD
diff options
context:
space:
mode:
authorAlex Stark <starka@google.com>2019-08-13 16:20:07 -0400
committerBenoit Jacob <benoitjacob@google.com>2020-03-10 16:36:10 -0400
commit4c5c04d321452621fedbb59165ae442024feaf91 (patch)
treeaca416c04c344816d34a03f929fd2e5a89005f5b /BUILD
parentf5c43c6cb30dd69028c85feee3ac0db6c4064a9e (diff)
downloadruy-4c5c04d321452621fedbb59165ae442024feaf91.tar.gz
Ruy: Split-off build targets specific to platform / ISA.
PiperOrigin-RevId: 263201086
Diffstat (limited to 'BUILD')
-rw-r--r--BUILD116
1 files changed, 110 insertions, 6 deletions
diff --git a/BUILD b/BUILD
index 96ebda1..638abf6 100644
--- a/BUILD
+++ b/BUILD
@@ -299,23 +299,76 @@ cc_library(
)
cc_library(
- name = "kernel",
+ name = "kernel_common",
+ hdrs = [
+ "kernel.h",
+ "kernel_arm.h",
+ "kernel_common.h",
+ "kernel_x86.h",
+ ],
+ copts = RUY_COPTS,
+ deps = [
+ ":check_macros",
+ ":common",
+ ":internal_matrix",
+ ":matrix",
+ ":opt_set",
+ ":path",
+ ":platform",
+ ":side_pair",
+ ":size_util",
+ ":spec",
+ ":tune",
+ "//third_party/gemmlowp:fixedpoint",
+ "//third_party/gemmlowp:profiler",
+ ],
+)
+
+cc_library(
+ name = "kernel_arm",
srcs = [
"kernel_arm32.cc",
"kernel_arm64.cc",
+ ],
+ copts = RUY_COPTS,
+ deps = [
+ ":common",
+ ":kernel_common",
+ ":opt_set",
+ ":platform",
+ "//third_party/gemmlowp:profiler",
+ ],
+)
+
+cc_library(
+ name = "kernel_avx512",
+ srcs = [
"kernel_avx512.cc",
],
+ copts = RUY_COPTS,
+ deps = [
+ ":check_macros",
+ ":kernel_common",
+ ":opt_set",
+ ":platform",
+ "//third_party/gemmlowp:profiler",
+ ],
+)
+
+cc_library(
+ name = "kernel",
hdrs = [
"kernel.h",
- "kernel_arm.h",
"kernel_common.h",
- "kernel_x86.h",
],
copts = RUY_COPTS,
deps = [
":check_macros",
":common",
":internal_matrix",
+ ":kernel_arm", # fixdeps: keep
+ ":kernel_avx512", # fixdeps: keep
+ ":kernel_common",
":matrix",
":opt_set",
":path",
@@ -330,16 +383,64 @@ cc_library(
)
cc_library(
- name = "pack",
+ name = "pack_common",
+ hdrs = [
+ "pack.h",
+ "pack_arm.h",
+ "pack_common.h",
+ "pack_x86.h",
+ ],
+ copts = RUY_COPTS,
+ deps = [
+ ":check_macros",
+ ":common",
+ ":internal_matrix",
+ ":matrix",
+ ":opt_set",
+ ":path",
+ ":platform",
+ ":tune",
+ "//third_party/gemmlowp:profiler",
+ ],
+)
+
+cc_library(
+ name = "pack_arm",
srcs = [
"pack_arm.cc",
+ ],
+ copts = RUY_COPTS,
+ deps = [
+ ":common",
+ ":opt_set",
+ ":pack_common",
+ ":platform",
+ "//third_party/gemmlowp:profiler",
+ ],
+)
+
+cc_library(
+ name = "pack_avx512",
+ srcs = [
"pack_avx512.cc",
],
+ copts = RUY_COPTS,
+ deps = [
+ ":check_macros",
+ ":matrix",
+ ":opt_set",
+ ":pack_common",
+ ":path",
+ ":platform",
+ "//third_party/gemmlowp:profiler",
+ ],
+)
+
+cc_library(
+ name = "pack",
hdrs = [
"pack.h",
- "pack_arm.h",
"pack_common.h",
- "pack_x86.h",
],
copts = RUY_COPTS,
deps = [
@@ -348,6 +449,9 @@ cc_library(
":internal_matrix",
":matrix",
":opt_set",
+ ":pack_arm", # fixdeps: keep
+ ":pack_avx512", # fixdeps: keep
+ ":pack_common",
":path",
":platform",
":tune",