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
This commit is contained in:
Gunhan Gulsoy 2020-07-31 16:41:56 -07:00 committed by TensorFlower Gardener
parent 29b576a718
commit 40626d2c54
3 changed files with 24 additions and 2 deletions

View File

@ -1899,6 +1899,7 @@ cc_library(
"//tensorflow/core/platform:platform_port", "//tensorflow/core/platform:platform_port",
"//tensorflow/core/platform:platform_strings", "//tensorflow/core/platform:platform_strings",
"//tensorflow/core/platform:prefetch", "//tensorflow/core/platform:prefetch",
"//tensorflow/core/platform:profile_utils_cpu_utils",
"//tensorflow/core/platform:protobuf_internal", "//tensorflow/core/platform:protobuf_internal",
"//tensorflow/core/platform:regexp", "//tensorflow/core/platform:regexp",
"//tensorflow/core/platform:resource", "//tensorflow/core/platform:resource",

View File

@ -85,6 +85,8 @@ exports_files(
"mutex.h", "mutex.h",
"net.h", "net.h",
"numa.h", "numa.h",
"profile_utils/android_armv7a_cpu_utils_helper.h",
"profile_utils/cpu_utils.cc",
"profile_utils/cpu_utils.h", "profile_utils/cpu_utils.h",
"profile_utils/i_cpu_utils_helper.h", "profile_utils/i_cpu_utils_helper.h",
"ram_file_system.h", "ram_file_system.h",
@ -960,6 +962,26 @@ cc_library(
alwayslink = 1, 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( filegroup(
name = "tf32_hdr", name = "tf32_hdr",
srcs = ["tf32_utils.h"], srcs = ["tf32_utils.h"],
@ -1642,7 +1664,6 @@ filegroup(
srcs = [ srcs = [
"profile_utils/android_armv7a_cpu_utils_helper.cc", "profile_utils/android_armv7a_cpu_utils_helper.cc",
"profile_utils/clock_cycle_profiler.cc", "profile_utils/clock_cycle_profiler.cc",
"profile_utils/cpu_utils.cc",
], ],
visibility = ["//tensorflow/core:__pkg__"], visibility = ["//tensorflow/core:__pkg__"],
) )

View File

@ -269,7 +269,6 @@ cc_library(
"//tensorflow/core/platform:mem.h", "//tensorflow/core/platform:mem.h",
"//tensorflow/core/platform:numa.h", "//tensorflow/core/platform:numa.h",
"//tensorflow/core/platform:profile_utils/cpu_utils.h", "//tensorflow/core/platform:profile_utils/cpu_utils.h",
"//tensorflow/core/platform:profile_utils/i_cpu_utils_helper.h",
"//tensorflow/core/platform:snappy.h", "//tensorflow/core/platform:snappy.h",
], ],
copts = tf_copts(), copts = tf_copts(),
@ -289,6 +288,7 @@ cc_library(
"//tensorflow/core/platform:dynamic_annotations", "//tensorflow/core/platform:dynamic_annotations",
"//tensorflow/core/platform:logging", "//tensorflow/core/platform:logging",
"//tensorflow/core/platform:macros", "//tensorflow/core/platform:macros",
"//tensorflow/core/platform:profile_utils_cpu_utils",
"//tensorflow/core/platform:types", "//tensorflow/core/platform:types",
"//tensorflow/core/platform", "//tensorflow/core/platform",
"@snappy", "@snappy",