Adding cord target to tensorflow/core/platform/BUILD.

PiperOrigin-RevId: 267077308
This commit is contained in:
Brian Zhao 2019-09-03 21:15:17 -07:00 committed by TensorFlower Gardener
parent 495ee6678c
commit 7020d98a16
3 changed files with 20 additions and 1 deletions

View File

@ -47,7 +47,10 @@ package(
# exist to allow us incrementally add granular targets
# to tf/core/platform/BUILD. We will remove these helpers,
# after we finish refactoring tf/core/platform/BUILD.
tf_instantiate_platform_libraries(names = ["context"])
tf_instantiate_platform_libraries(names = [
"context",
"cord",
])
cc_library(
name = "abi",
@ -84,6 +87,15 @@ cc_library(
],
)
cc_library(
name = "cord",
hdrs = ["cord.h"],
deps = [
":cord_impl",
":platform",
],
)
cc_library(
name = "cpu_feature_guard",
srcs = ["cpu_feature_guard.cc"],

View File

@ -16,6 +16,8 @@ limitations under the License.
#ifndef TENSORFLOW_CORE_PLATFORM_CORD_H_
#define TENSORFLOW_CORE_PLATFORM_CORD_H_
#include "tensorflow/core/platform/platform.h"
// Include appropriate platform-dependent implementations
#if defined(PLATFORM_GOOGLE)
#include "tensorflow/core/platform/google/cord.h"

View File

@ -17,6 +17,11 @@ TF_PLATFORM_LIBRARIES = {
],
"visibility": ["//visibility:private"],
},
"cord": {
"name": "cord_impl",
"hdrs": ["//tensorflow/core/platform:default/cord.h"],
"visibility": ["//visibility:private"],
},
}
def tf_instantiate_platform_libraries(names = []):