Remove stream_executor/platform/thread_annotations.h replacing it with core/platform/thread_annotations.h for which it is just a forwarding header.
PiperOrigin-RevId: 295238139 Change-Id: Ief4e36de6f6ee8c08d71617e4b237c8de85a1e3a
This commit is contained in:
parent
c51929f2d8
commit
7fa21d0c5f
@ -249,6 +249,7 @@ cc_library(
|
||||
deps = [
|
||||
":device_memory",
|
||||
":stream_header",
|
||||
"//tensorflow/core:lib",
|
||||
"//tensorflow/stream_executor/lib",
|
||||
"//tensorflow/stream_executor/platform",
|
||||
"@com_google_absl//absl/synchronization",
|
||||
@ -264,6 +265,7 @@ cc_library(
|
||||
":stream_executor_pimpl_header",
|
||||
":stream_header",
|
||||
":temporary_device_memory",
|
||||
"//tensorflow/core:lib",
|
||||
"//tensorflow/stream_executor/lib",
|
||||
"//tensorflow/stream_executor/platform",
|
||||
"@com_google_absl//absl/strings",
|
||||
@ -491,6 +493,7 @@ cc_library(
|
||||
":platform",
|
||||
":stream_executor_headers",
|
||||
":stream_executor_internal",
|
||||
"//tensorflow/core:lib",
|
||||
"//tensorflow/stream_executor/lib",
|
||||
"//tensorflow/stream_executor/platform",
|
||||
"@com_google_absl//absl/base:core_headers",
|
||||
|
@ -69,6 +69,7 @@ cc_library(
|
||||
"@com_google_absl//absl/strings",
|
||||
"@com_google_absl//absl/strings:str_format",
|
||||
"@com_google_absl//absl/synchronization",
|
||||
"//tensorflow/core:lib",
|
||||
],
|
||||
alwayslink = True, # Registers itself with the MultiPlatformManager.
|
||||
)
|
||||
@ -249,6 +250,7 @@ cc_library(
|
||||
"@local_config_cuda//cuda:cublas_headers",
|
||||
# LINT.ThenChange(//tensorflow/copy.bara.sky:cublas_headers)
|
||||
"@local_config_cuda//cuda:cuda_headers",
|
||||
"//tensorflow/core:lib",
|
||||
"//tensorflow/core:lib_internal",
|
||||
"//tensorflow/stream_executor",
|
||||
"//tensorflow/stream_executor:event",
|
||||
|
@ -21,10 +21,10 @@ limitations under the License.
|
||||
#define TENSORFLOW_STREAM_EXECUTOR_CUDA_CUDA_BLAS_H_
|
||||
|
||||
#include "absl/synchronization/mutex.h"
|
||||
#include "tensorflow/core/platform/thread_annotations.h"
|
||||
#include "tensorflow/stream_executor/blas.h"
|
||||
#include "tensorflow/stream_executor/host_or_device_scalar.h"
|
||||
#include "tensorflow/stream_executor/platform/port.h"
|
||||
#include "tensorflow/stream_executor/platform/thread_annotations.h"
|
||||
#include "tensorflow/stream_executor/plugin_registry.h"
|
||||
|
||||
typedef struct cublasContext *cublasHandle_t;
|
||||
|
@ -19,10 +19,10 @@ limitations under the License.
|
||||
#ifndef TENSORFLOW_STREAM_EXECUTOR_CUDA_CUDA_DNN_H_
|
||||
#define TENSORFLOW_STREAM_EXECUTOR_CUDA_CUDA_DNN_H_
|
||||
|
||||
#include "tensorflow/core/platform/thread_annotations.h"
|
||||
#include "tensorflow/stream_executor/cuda/cuda_activation.h"
|
||||
#include "tensorflow/stream_executor/dnn.h"
|
||||
#include "tensorflow/stream_executor/lib/status.h"
|
||||
#include "tensorflow/stream_executor/platform/thread_annotations.h"
|
||||
#include "tensorflow/stream_executor/plugin_registry.h"
|
||||
#include "tensorflow/stream_executor/temporary_device_memory.h"
|
||||
|
||||
|
@ -17,15 +17,14 @@ limitations under the License.
|
||||
#define TENSORFLOW_STREAM_EXECUTOR_CUDA_CUDA_PLATFORM_H_
|
||||
|
||||
#include <memory>
|
||||
#include "tensorflow/stream_executor/platform/port.h"
|
||||
#include <vector>
|
||||
|
||||
#include "tensorflow/core/platform/thread_annotations.h"
|
||||
#include "tensorflow/stream_executor/executor_cache.h"
|
||||
#include "tensorflow/stream_executor/lib/statusor.h"
|
||||
#include "tensorflow/stream_executor/multi_platform_manager.h"
|
||||
#include "tensorflow/stream_executor/platform.h"
|
||||
#include "tensorflow/stream_executor/platform/port.h"
|
||||
#include "tensorflow/stream_executor/platform/thread_annotations.h"
|
||||
#include "tensorflow/stream_executor/stream_executor_internal.h"
|
||||
#include "tensorflow/stream_executor/stream_executor_pimpl.h"
|
||||
#include "tensorflow/stream_executor/trace_listener.h"
|
||||
|
@ -98,6 +98,7 @@ cc_library(
|
||||
hdrs = if_gpu_is_configured(["gpu_executor.h"]),
|
||||
deps = [
|
||||
":gpu_kernel_header",
|
||||
"//tensorflow/core:lib",
|
||||
"//tensorflow/stream_executor:event",
|
||||
"//tensorflow/stream_executor:platform",
|
||||
"//tensorflow/stream_executor:stream_executor_internal",
|
||||
@ -130,6 +131,7 @@ cc_library(
|
||||
hdrs = if_gpu_is_configured(["gpu_rng.h"]),
|
||||
deps = [
|
||||
":gpu_types_header",
|
||||
"//tensorflow/core:lib",
|
||||
"//tensorflow/stream_executor:plugin_registry",
|
||||
"//tensorflow/stream_executor:rng",
|
||||
"//tensorflow/stream_executor/platform",
|
||||
@ -142,8 +144,8 @@ cc_library(
|
||||
hdrs = if_gpu_is_configured(["gpu_stream.h"]),
|
||||
deps = [
|
||||
":gpu_driver_header",
|
||||
"//tensorflow/core:lib",
|
||||
"//tensorflow/stream_executor:stream_executor_internal",
|
||||
"//tensorflow/stream_executor/platform",
|
||||
],
|
||||
)
|
||||
|
||||
@ -154,6 +156,7 @@ cc_library(
|
||||
deps = [
|
||||
":gpu_driver_header",
|
||||
":gpu_executor_header",
|
||||
"//tensorflow/core:lib",
|
||||
"//tensorflow/stream_executor:stream_executor_headers",
|
||||
"//tensorflow/stream_executor:stream_header",
|
||||
"//tensorflow/stream_executor/lib",
|
||||
|
@ -27,13 +27,13 @@ limitations under the License.
|
||||
|
||||
#include "absl/strings/string_view.h"
|
||||
#include "absl/synchronization/mutex.h"
|
||||
#include "tensorflow/core/platform/thread_annotations.h"
|
||||
#include "tensorflow/stream_executor/event.h"
|
||||
#include "tensorflow/stream_executor/gpu/gpu_kernel.h"
|
||||
#include "tensorflow/stream_executor/lib/status.h"
|
||||
#include "tensorflow/stream_executor/lib/statusor.h"
|
||||
#include "tensorflow/stream_executor/platform.h"
|
||||
#include "tensorflow/stream_executor/platform/port.h"
|
||||
#include "tensorflow/stream_executor/platform/thread_annotations.h"
|
||||
#include "tensorflow/stream_executor/stream_executor_internal.h"
|
||||
|
||||
namespace stream_executor {
|
||||
|
@ -17,9 +17,9 @@ limitations under the License.
|
||||
#define TENSORFLOW_STREAM_EXECUTOR_GPU_GPU_RNG_H_
|
||||
|
||||
#include "absl/synchronization/mutex.h"
|
||||
#include "tensorflow/core/platform/thread_annotations.h"
|
||||
#include "tensorflow/stream_executor/gpu/gpu_types.h"
|
||||
#include "tensorflow/stream_executor/platform/port.h"
|
||||
#include "tensorflow/stream_executor/platform/thread_annotations.h"
|
||||
#include "tensorflow/stream_executor/plugin_registry.h"
|
||||
#include "tensorflow/stream_executor/rng.h"
|
||||
|
||||
|
@ -19,8 +19,8 @@ limitations under the License.
|
||||
#ifndef TENSORFLOW_STREAM_EXECUTOR_GPU_GPU_STREAM_H_
|
||||
#define TENSORFLOW_STREAM_EXECUTOR_GPU_GPU_STREAM_H_
|
||||
|
||||
#include "tensorflow/core/platform/thread_annotations.h"
|
||||
#include "tensorflow/stream_executor/gpu/gpu_driver.h"
|
||||
#include "tensorflow/stream_executor/platform/thread_annotations.h"
|
||||
#include "tensorflow/stream_executor/stream_executor_internal.h"
|
||||
|
||||
namespace stream_executor {
|
||||
|
@ -48,6 +48,7 @@ cc_library(
|
||||
deps = [
|
||||
":host_gpu_executor",
|
||||
":host_platform_id",
|
||||
"//tensorflow/core:lib",
|
||||
"//tensorflow/stream_executor:executor_cache",
|
||||
"//tensorflow/stream_executor:multi_platform_manager",
|
||||
"//tensorflow/stream_executor:stream_executor_headers",
|
||||
|
@ -23,12 +23,12 @@ limitations under the License.
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
#include "tensorflow/core/platform/thread_annotations.h"
|
||||
#include "tensorflow/stream_executor/executor_cache.h"
|
||||
#include "tensorflow/stream_executor/lib/statusor.h"
|
||||
#include "tensorflow/stream_executor/multi_platform_manager.h"
|
||||
#include "tensorflow/stream_executor/platform.h"
|
||||
#include "tensorflow/stream_executor/platform/port.h"
|
||||
#include "tensorflow/stream_executor/platform/thread_annotations.h"
|
||||
#include "tensorflow/stream_executor/stream_executor_pimpl.h"
|
||||
#include "tensorflow/stream_executor/trace_listener.h"
|
||||
|
||||
|
@ -18,7 +18,6 @@ cc_library(
|
||||
"logging.h",
|
||||
"platform.h",
|
||||
"port.h",
|
||||
"thread_annotations.h",
|
||||
],
|
||||
deps = [
|
||||
"@com_google_absl//absl/strings",
|
||||
|
@ -1,21 +0,0 @@
|
||||
/* Copyright 2015 The TensorFlow Authors. All Rights Reserved.
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
==============================================================================*/
|
||||
|
||||
#ifndef TENSORFLOW_STREAM_EXECUTOR_PLATFORM_THREAD_ANNOTATIONS_H_
|
||||
#define TENSORFLOW_STREAM_EXECUTOR_PLATFORM_THREAD_ANNOTATIONS_H_
|
||||
|
||||
#include "tensorflow/core/platform/thread_annotations.h"
|
||||
|
||||
#endif // TENSORFLOW_STREAM_EXECUTOR_PLATFORM_THREAD_ANNOTATIONS_H_
|
@ -138,6 +138,7 @@ cc_library(
|
||||
":rocm_platform_id",
|
||||
"@com_google_absl//absl/base",
|
||||
"@com_google_absl//absl/memory",
|
||||
"//tensorflow/core:lib",
|
||||
"//tensorflow/stream_executor", # buildcleaner: keep
|
||||
"//tensorflow/stream_executor:executor_cache",
|
||||
"//tensorflow/stream_executor:multi_platform_manager",
|
||||
@ -164,6 +165,7 @@ cc_library(
|
||||
":rocm_gpu_executor",
|
||||
":rocm_platform_id",
|
||||
"//third_party/eigen3",
|
||||
"//tensorflow/core:lib",
|
||||
"//tensorflow/core:lib_internal",
|
||||
"//tensorflow/stream_executor",
|
||||
"//tensorflow/stream_executor:event",
|
||||
|
@ -21,9 +21,9 @@ limitations under the License.
|
||||
#define TENSORFLOW_STREAM_EXECUTOR_ROCM_ROCM_BLAS_H_
|
||||
|
||||
#include "absl/synchronization/mutex.h"
|
||||
#include "tensorflow/core/platform/thread_annotations.h"
|
||||
#include "tensorflow/stream_executor/blas.h"
|
||||
#include "tensorflow/stream_executor/platform/port.h"
|
||||
#include "tensorflow/stream_executor/platform/thread_annotations.h"
|
||||
#include "tensorflow/stream_executor/plugin_registry.h"
|
||||
#include "tensorflow/stream_executor/temporary_device_memory.h"
|
||||
|
||||
|
@ -20,9 +20,9 @@ limitations under the License.
|
||||
#define TENSORFLOW_STREAM_EXECUTOR_ROCM_ROCM_DNN_H_
|
||||
|
||||
#include "absl/synchronization/mutex.h"
|
||||
#include "tensorflow/core/platform/thread_annotations.h"
|
||||
#include "tensorflow/stream_executor/dnn.h"
|
||||
#include "tensorflow/stream_executor/lib/status.h"
|
||||
#include "tensorflow/stream_executor/platform/thread_annotations.h"
|
||||
#include "tensorflow/stream_executor/plugin_registry.h"
|
||||
#include "tensorflow/stream_executor/temporary_device_memory.h"
|
||||
|
||||
|
@ -20,12 +20,12 @@ limitations under the License.
|
||||
#include <vector>
|
||||
|
||||
#include "absl/synchronization/mutex.h"
|
||||
#include "tensorflow/core/platform/thread_annotations.h"
|
||||
#include "tensorflow/stream_executor/executor_cache.h"
|
||||
#include "tensorflow/stream_executor/lib/statusor.h"
|
||||
#include "tensorflow/stream_executor/multi_platform_manager.h"
|
||||
#include "tensorflow/stream_executor/platform.h"
|
||||
#include "tensorflow/stream_executor/platform/port.h"
|
||||
#include "tensorflow/stream_executor/platform/thread_annotations.h"
|
||||
#include "tensorflow/stream_executor/stream_executor_internal.h"
|
||||
#include "tensorflow/stream_executor/stream_executor_pimpl.h"
|
||||
#include "tensorflow/stream_executor/trace_listener.h"
|
||||
|
@ -27,6 +27,7 @@ limitations under the License.
|
||||
|
||||
#include "absl/synchronization/mutex.h"
|
||||
#include "tensorflow/core/platform/macros.h"
|
||||
#include "tensorflow/core/platform/thread_annotations.h"
|
||||
#include "tensorflow/stream_executor/blas.h"
|
||||
#include "tensorflow/stream_executor/device_memory.h"
|
||||
#include "tensorflow/stream_executor/dnn.h"
|
||||
@ -37,7 +38,6 @@ limitations under the License.
|
||||
#include "tensorflow/stream_executor/launch_dim.h"
|
||||
#include "tensorflow/stream_executor/lib/array_slice.h"
|
||||
#include "tensorflow/stream_executor/platform/port.h"
|
||||
#include "tensorflow/stream_executor/platform/thread_annotations.h"
|
||||
#include "tensorflow/stream_executor/temporary_memory_manager.h"
|
||||
|
||||
namespace stream_executor {
|
||||
|
@ -26,6 +26,7 @@ limitations under the License.
|
||||
#include "absl/memory/memory.h"
|
||||
#include "absl/synchronization/mutex.h"
|
||||
#include "absl/types/optional.h"
|
||||
#include "tensorflow/core/platform/thread_annotations.h"
|
||||
#include "tensorflow/stream_executor/device_memory_allocator.h"
|
||||
#include "tensorflow/stream_executor/lib/status.h"
|
||||
#include "tensorflow/stream_executor/lib/statusor.h"
|
||||
@ -33,7 +34,6 @@ limitations under the License.
|
||||
#include "tensorflow/stream_executor/platform.h"
|
||||
#include "tensorflow/stream_executor/platform/logging.h"
|
||||
#include "tensorflow/stream_executor/platform/port.h"
|
||||
#include "tensorflow/stream_executor/platform/thread_annotations.h"
|
||||
#include "tensorflow/stream_executor/rng.h"
|
||||
#include "tensorflow/stream_executor/shared_memory_config.h"
|
||||
#include "tensorflow/stream_executor/stream.h"
|
||||
|
@ -25,10 +25,10 @@ limitations under the License.
|
||||
#include <memory>
|
||||
|
||||
#include "absl/synchronization/mutex.h"
|
||||
#include "tensorflow/core/platform/thread_annotations.h"
|
||||
#include "tensorflow/stream_executor/device_memory.h"
|
||||
#include "tensorflow/stream_executor/lib/status.h"
|
||||
#include "tensorflow/stream_executor/lib/statusor.h"
|
||||
#include "tensorflow/stream_executor/platform/thread_annotations.h"
|
||||
#include "tensorflow/stream_executor/temporary_device_memory.h"
|
||||
|
||||
namespace stream_executor {
|
||||
|
Loading…
Reference in New Issue
Block a user