diff options
author | Alex Stark <starka@google.com> | 2019-08-13 16:20:07 -0400 |
---|---|---|
committer | Benoit Jacob <benoitjacob@google.com> | 2020-03-10 16:36:10 -0400 |
commit | 4c5c04d321452621fedbb59165ae442024feaf91 (patch) | |
tree | aca416c04c344816d34a03f929fd2e5a89005f5b /BUILD | |
parent | f5c43c6cb30dd69028c85feee3ac0db6c4064a9e (diff) | |
download | ruy-4c5c04d321452621fedbb59165ae442024feaf91.tar.gz |
Ruy: Split-off build targets specific to platform / ISA.
PiperOrigin-RevId: 263201086
Diffstat (limited to 'BUILD')
-rw-r--r-- | BUILD | 116 |
1 files changed, 110 insertions, 6 deletions
@@ -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", |