Fix the BUILD rule for platform_port, after changing the NominalCPUFrequency
implementation.
We were missing the implementation of one dependency.
PiperOrigin-RevId: 324309158
Change-Id: Ic7ad8ede507f0dc8896544bcdb52ba2a40b50d5b
diff --git a/tensorflow/core/BUILD b/tensorflow/core/BUILD
index 71d08d8..bf38210 100644
--- a/tensorflow/core/BUILD
+++ b/tensorflow/core/BUILD
@@ -1899,6 +1899,7 @@
"//tensorflow/core/platform:platform_port",
"//tensorflow/core/platform:platform_strings",
"//tensorflow/core/platform:prefetch",
+ "//tensorflow/core/platform:profile_utils_cpu_utils",
"//tensorflow/core/platform:protobuf_internal",
"//tensorflow/core/platform:regexp",
"//tensorflow/core/platform:resource",
diff --git a/tensorflow/core/platform/BUILD b/tensorflow/core/platform/BUILD
index 198a431..4fe0949 100644
--- a/tensorflow/core/platform/BUILD
+++ b/tensorflow/core/platform/BUILD
@@ -85,6 +85,8 @@
"mutex.h",
"net.h",
"numa.h",
+ "profile_utils/android_armv7a_cpu_utils_helper.h",
+ "profile_utils/cpu_utils.cc",
"profile_utils/cpu_utils.h",
"profile_utils/i_cpu_utils_helper.h",
"ram_file_system.h",
@@ -960,6 +962,26 @@
alwayslink = 1,
)
+cc_library(
+ name = "profile_utils_cpu_utils",
+ srcs = [
+ "profile_utils/android_armv7a_cpu_utils_helper.h",
+ "profile_utils/cpu_utils.cc",
+ "profile_utils/i_cpu_utils_helper.h",
+ ],
+ hdrs = [
+ "profile_utils/cpu_utils.h",
+ ],
+ copts = tf_copts(),
+ deps = [
+ ":logging",
+ ":macros",
+ ":types",
+ "@com_google_absl//absl/base",
+ ],
+ alwayslink = 1,
+)
+
filegroup(
name = "tf32_hdr",
srcs = ["tf32_utils.h"],
@@ -1642,7 +1664,6 @@
srcs = [
"profile_utils/android_armv7a_cpu_utils_helper.cc",
"profile_utils/clock_cycle_profiler.cc",
- "profile_utils/cpu_utils.cc",
],
visibility = ["//tensorflow/core:__pkg__"],
)
diff --git a/tensorflow/core/platform/default/BUILD b/tensorflow/core/platform/default/BUILD
index a6a3338..40883cb 100644
--- a/tensorflow/core/platform/default/BUILD
+++ b/tensorflow/core/platform/default/BUILD
@@ -269,7 +269,6 @@
"//tensorflow/core/platform:mem.h",
"//tensorflow/core/platform:numa.h",
"//tensorflow/core/platform:profile_utils/cpu_utils.h",
- "//tensorflow/core/platform:profile_utils/i_cpu_utils_helper.h",
"//tensorflow/core/platform:snappy.h",
],
copts = tf_copts(),
@@ -289,6 +288,7 @@
"//tensorflow/core/platform:dynamic_annotations",
"//tensorflow/core/platform:logging",
"//tensorflow/core/platform:macros",
+ "//tensorflow/core/platform:profile_utils_cpu_utils",
"//tensorflow/core/platform:types",
"//tensorflow/core/platform",
"@snappy",