Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/google/ruy.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/BUILD
diff options
context:
space:
mode:
authorAlex Stark <starka@google.com>2019-08-21 23:48:41 +0300
committerBenoit Jacob <benoitjacob@google.com>2020-03-10 23:36:58 +0300
commit5811fa7f5e3b9342a9c460a90cc8c20702e74af5 (patch)
treef262b7a603895046e4816ff11f7e983270ecf76b /BUILD
parent3e2acb1d09f8fd0f877e6de23b2698939ddef6ea (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--BUILD24
1 files changed, 20 insertions, 4 deletions
diff --git a/BUILD b/BUILD
index eefa271..27bb2ca 100644
--- a/BUILD
+++ b/BUILD
@@ -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",