Adding cord target to tensorflow/core/platform/BUILD.
PiperOrigin-RevId: 267077308
This commit is contained in:
parent
495ee6678c
commit
7020d98a16
@ -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"],
|
||||
|
@ -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"
|
||||
|
@ -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 = []):
|
||||
|
Loading…
Reference in New Issue
Block a user