diff options
author | Alex Stark <starka@google.com> | 2019-08-21 23:48:41 +0300 |
---|---|---|
committer | Benoit Jacob <benoitjacob@google.com> | 2020-03-10 23:36:58 +0300 |
commit | 5811fa7f5e3b9342a9c460a90cc8c20702e74af5 (patch) | |
tree | f262b7a603895046e4816ff11f7e983270ecf76b /BUILD | |
parent | 3e2acb1d09f8fd0f877e6de23b2698939ddef6ea (diff) |
Ruy: Introduce CPU ID detection on x86.
This amounts to disabling Ruy paths for this cpuid instruction results lack selected features.
PiperOrigin-RevId: 264683681
Diffstat (limited to 'BUILD')
-rw-r--r-- | BUILD | 24 |
1 files changed, 20 insertions, 4 deletions
@@ -204,18 +204,33 @@ cc_library( ) cc_library( - name = "detect_dotprod", + name = "detect_arm", srcs = [ - "detect_dotprod.cc", + "detect_arm.cc", ], hdrs = [ - "detect_dotprod.h", + "detect_arm.h", ], copts = RUY_COPTS, visibility = ruy_visibility(), ) cc_library( + name = "detect_x86", + srcs = [ + "detect_x86.cc", + ], + hdrs = [ + "detect_x86.h", + ], + copts = RUY_COPTS, + visibility = ruy_visibility(), + deps = [ + ":platform", + ], +) + +cc_library( name = "path", hdrs = ["path.h"], copts = RUY_COPTS, @@ -256,7 +271,8 @@ cc_library( deps = [ ":allocator", ":check_macros", - ":detect_dotprod", + ":detect_arm", + ":detect_x86", ":path", ":thread_pool", ":trace", |