diff --git a/tensorflow/compiler/aot/BUILD b/tensorflow/compiler/aot/BUILD index 3552f96578c..4a41caf1d40 100644 --- a/tensorflow/compiler/aot/BUILD +++ b/tensorflow/compiler/aot/BUILD @@ -75,7 +75,7 @@ cc_library( "@llvm-project//llvm:Support", "@llvm-project//llvm:Target", "@llvm-project//llvm:X86CodeGen", # fixdeps: keep - "//tensorflow/core:regexp_internal", + "//tensorflow/core/platform:regexp", ] + if_llvm_system_z_available([ "@llvm-project//llvm:SystemZCodeGen", # fixdeps: keep ]) + if_llvm_aarch64_available([ diff --git a/tensorflow/compiler/aot/tests/BUILD b/tensorflow/compiler/aot/tests/BUILD index 95d20805ab9..06745de647b 100644 --- a/tensorflow/compiler/aot/tests/BUILD +++ b/tensorflow/compiler/aot/tests/BUILD @@ -336,9 +336,9 @@ tf_cc_test( "//tensorflow/compiler/xla:xla_data_proto_cc", "//tensorflow/compiler/xla/service:hlo_profile_printer", "//tensorflow/core:lib", - "//tensorflow/core:regexp_internal", "//tensorflow/core:test", "//tensorflow/core:test_main", + "//tensorflow/core/platform:regexp", "//third_party/eigen3", "@com_google_absl//absl/strings", ], @@ -559,9 +559,9 @@ tf_cc_test( "//tensorflow/compiler/xla:xla_data_proto_cc", "//tensorflow/compiler/xla/service:hlo_profile_printer", "//tensorflow/core:lib", - "//tensorflow/core:regexp_internal", "//tensorflow/core:test", "//tensorflow/core:test_main", + "//tensorflow/core/platform:regexp", "//third_party/eigen3", "@com_google_absl//absl/strings", ], diff --git a/tensorflow/compiler/jit/BUILD b/tensorflow/compiler/jit/BUILD index da3db1789b5..7d87b5f0715 100644 --- a/tensorflow/compiler/jit/BUILD +++ b/tensorflow/compiler/jit/BUILD @@ -204,7 +204,7 @@ XLA_DEVICE_DEPS = [ "//tensorflow/core:resource_variable_ops_op_lib", "//tensorflow/core:sendrecv_ops_op_lib", "//tensorflow/core:state_ops_op_lib", - "//tensorflow/core:stream_executor_no_cuda", + "//tensorflow/core/platform:stream_executor_no_cuda", "//tensorflow/core/kernels:constant_op", "//tensorflow/core/kernels:fifo_queue", "//tensorflow/core/kernels:function_ops", @@ -1023,10 +1023,10 @@ tf_cc_test( "//tensorflow/cc:ops", "//tensorflow/core:all_kernels", "//tensorflow/core:core_cpu", - "//tensorflow/core:direct_session_internal", "//tensorflow/core:framework", "//tensorflow/core:ops", "//tensorflow/core:test", + "//tensorflow/core/common_runtime:direct_session_internal", "//tensorflow/core/kernels:cwise_op", "//tensorflow/core/kernels:matmul_op", "//tensorflow/core/kernels:partitioned_function_ops", diff --git a/tensorflow/compiler/jit/kernels/BUILD b/tensorflow/compiler/jit/kernels/BUILD index be9e1d31f3b..1f400137f5b 100644 --- a/tensorflow/compiler/jit/kernels/BUILD +++ b/tensorflow/compiler/jit/kernels/BUILD @@ -34,7 +34,7 @@ XLA_OPS_DEPS = [ "//tensorflow/core:framework", "//tensorflow/core:lib", "//tensorflow/core:state_ops_op_lib", - "//tensorflow/core:stream_executor_no_cuda", + "//tensorflow/core/platform:stream_executor_no_cuda", "//tensorflow/core/profiler/lib:traceme", "//tensorflow/stream_executor:tf_allocator_adapter", ] diff --git a/tensorflow/compiler/mlir/tools/kernel_gen/BUILD b/tensorflow/compiler/mlir/tools/kernel_gen/BUILD index ec00554cd54..b4cbf765c79 100644 --- a/tensorflow/compiler/mlir/tools/kernel_gen/BUILD +++ b/tensorflow/compiler/mlir/tools/kernel_gen/BUILD @@ -57,8 +57,8 @@ cc_library( "//tensorflow/compiler/xla/service/gpu/llvm_gpu_backend", "//tensorflow/compiler/xla/service/mlir_gpu:kernel_lowering", "//tensorflow/compiler/xla/service/mlir_gpu:passes", - "//tensorflow/core:cuda_libdevice_path", "//tensorflow/core:lib", + "//tensorflow/core/platform:cuda_libdevice_path", "@llvm-project//llvm:Support", "@llvm-project//mlir:AffineToStandard", "@llvm-project//mlir:AllPassesAndDialectsNoRegistration", diff --git a/tensorflow/compiler/mlir/tools/kernel_gen/transforms/BUILD b/tensorflow/compiler/mlir/tools/kernel_gen/transforms/BUILD index caa665b2971..b2595d2ad3a 100644 --- a/tensorflow/compiler/mlir/tools/kernel_gen/transforms/BUILD +++ b/tensorflow/compiler/mlir/tools/kernel_gen/transforms/BUILD @@ -93,7 +93,7 @@ cc_library( "//tensorflow/compiler/xla:status", "//tensorflow/compiler/xla/service/gpu:target_constants", "//tensorflow/compiler/xla/service/gpu/llvm_gpu_backend", - "//tensorflow/core:cuda_libdevice_path", + "//tensorflow/core/platform:cuda_libdevice_path", "//tensorflow/core:lib", ":bufferize", ":embed_tf_framework", diff --git a/tensorflow/compiler/tf2tensorrt/BUILD b/tensorflow/compiler/tf2tensorrt/BUILD index 1c3669d6c97..e7183cd7e18 100644 --- a/tensorflow/compiler/tf2tensorrt/BUILD +++ b/tensorflow/compiler/tf2tensorrt/BUILD @@ -70,7 +70,7 @@ tf_cuda_cc_test( deps = [ "//tensorflow/core/common_runtime/gpu:gpu_init", "//tensorflow/core:lib", - "//tensorflow/core:stream_executor", + "//tensorflow/core/platform:stream_executor", "//tensorflow/core:test", "//tensorflow/core:test_main", ] + if_tensorrt([ @@ -113,7 +113,7 @@ cc_library( "//tensorflow/core:lib", "//tensorflow/core:lib_internal", "//tensorflow/core:lib_proto_parsing", - "//tensorflow/core:stream_executor", + "//tensorflow/core/platform:stream_executor", "//tensorflow/core:stream_executor_headers_lib", "//tensorflow/core/common_runtime:core_cpu_lib_no_ops", "//tensorflow/core/grappler/costs:graph_properties", diff --git a/tensorflow/compiler/tf2xla/BUILD b/tensorflow/compiler/tf2xla/BUILD index 03510701af4..1cce3424fae 100644 --- a/tensorflow/compiler/tf2xla/BUILD +++ b/tensorflow/compiler/tf2xla/BUILD @@ -449,8 +449,8 @@ cc_library( "//tensorflow/core:lib", "//tensorflow/core:protos_all_cc", "//tensorflow/core:session_options", - "//tensorflow/core:stream_executor_no_cuda", "//tensorflow/core/common_runtime:core_cpu_internal", + "//tensorflow/core/platform:stream_executor_no_cuda", ], alwayslink = 1, ) diff --git a/tensorflow/compiler/xla/BUILD b/tensorflow/compiler/xla/BUILD index c5233da6e9a..831da22e033 100644 --- a/tensorflow/compiler/xla/BUILD +++ b/tensorflow/compiler/xla/BUILD @@ -321,7 +321,7 @@ cc_library( ":xla_data_proto_cc", "//tensorflow/core:lib", "//tensorflow/core:lib_internal", - "//tensorflow/core:regexp_internal", + "//tensorflow/core/platform:regexp", "@com_google_absl//absl/algorithm:container", "@com_google_absl//absl/base:core_headers", "@com_google_absl//absl/container:inlined_vector", @@ -527,7 +527,7 @@ cc_library( visibility = ["//visibility:public"], deps = [ ":types", - "//tensorflow/core:stream_executor_no_cuda", + "//tensorflow/core/platform:stream_executor_no_cuda", "@com_google_absl//absl/strings", ], ) @@ -664,8 +664,8 @@ cc_library( ":statusor", ":types", "//tensorflow/core:lib", - "//tensorflow/core:regexp_internal", "//tensorflow/core:test", + "//tensorflow/core/platform:regexp", "@com_google_absl//absl/strings", ], ) diff --git a/tensorflow/compiler/xla/client/BUILD b/tensorflow/compiler/xla/client/BUILD index 4172de1f6e0..c05b2c8ece7 100644 --- a/tensorflow/compiler/xla/client/BUILD +++ b/tensorflow/compiler/xla/client/BUILD @@ -130,7 +130,7 @@ cc_library( "//tensorflow/compiler/xla/service:shaped_buffer", "//tensorflow/compiler/xla/service:source_map_util", "//tensorflow/compiler/xla/service:stream_pool", - "//tensorflow/core:stream_executor_no_cuda", + "//tensorflow/core/platform:stream_executor_no_cuda", "//tensorflow/stream_executor:device_memory_allocator", "@com_google_absl//absl/memory", "@com_google_absl//absl/types:span", @@ -150,7 +150,7 @@ cc_library( "//tensorflow/compiler/xla:xla_data_proto_cc", "//tensorflow/compiler/xla/service:compile_only_service", "//tensorflow/compiler/xla/service:compiler", - "//tensorflow/core:stream_executor_no_cuda", + "//tensorflow/core/platform:stream_executor_no_cuda", "@com_google_absl//absl/memory", "@llvm-project//llvm:Support", ], @@ -174,7 +174,7 @@ cc_library( "//tensorflow/compiler/xla/service:local_service", "//tensorflow/compiler/xla/service:platform_util", "//tensorflow/core:lib", - "//tensorflow/core:stream_executor_no_cuda", + "//tensorflow/core/platform:stream_executor_no_cuda", "//tensorflow/stream_executor:device_memory_allocator", "@com_google_absl//absl/memory", "@com_google_absl//absl/types:optional", diff --git a/tensorflow/compiler/xla/pjrt/BUILD b/tensorflow/compiler/xla/pjrt/BUILD index 52d89f7fbf2..43a3860e405 100644 --- a/tensorflow/compiler/xla/pjrt/BUILD +++ b/tensorflow/compiler/xla/pjrt/BUILD @@ -26,7 +26,7 @@ cc_library( "//tensorflow/compiler/xla:statusor", "//tensorflow/compiler/xla:types", "//tensorflow/core:lib", - "//tensorflow/core:stream_executor", + "//tensorflow/core/platform:stream_executor", "@com_google_absl//absl/memory", "@com_google_absl//absl/synchronization", ], @@ -109,7 +109,7 @@ cc_library( "//tensorflow/compiler/xla:util", "//tensorflow/compiler/xla/client:local_client", "//tensorflow/core:lib", - "//tensorflow/core:stream_executor", + "//tensorflow/core/platform:stream_executor", "//tensorflow/stream_executor:event", "@com_google_absl//absl/memory", "@com_google_absl//absl/synchronization", diff --git a/tensorflow/compiler/xla/service/BUILD b/tensorflow/compiler/xla/service/BUILD index c3440f1fa25..491d1d67877 100644 --- a/tensorflow/compiler/xla/service/BUILD +++ b/tensorflow/compiler/xla/service/BUILD @@ -204,7 +204,7 @@ cc_library( "//tensorflow/compiler/xla:util", "//tensorflow/compiler/xla:xla_proto_cc", "//tensorflow/core:lib", - "//tensorflow/core:regexp_internal", + "//tensorflow/core/platform:regexp", "@com_google_absl//absl/strings", ], ) @@ -880,7 +880,7 @@ cc_library( "//tensorflow/compiler/xla:types", "//tensorflow/compiler/xla:util", "//tensorflow/core:lib", - "//tensorflow/core:stream_executor_no_cuda", + "//tensorflow/core/platform:stream_executor_no_cuda", "@com_google_absl//absl/strings", ], ) @@ -900,7 +900,7 @@ cc_library( "//tensorflow/compiler/xla:types", "//tensorflow/compiler/xla:util", "//tensorflow/core:lib", - "//tensorflow/core:stream_executor_no_cuda", + "//tensorflow/core/platform:stream_executor_no_cuda", "//tensorflow/stream_executor:device_memory_allocator", "//third_party/eigen3", "@com_google_absl//absl/container:flat_hash_map", @@ -950,7 +950,7 @@ cc_library( "//tensorflow/compiler/xla:xla_proto_cc", "//tensorflow/core:lib", "//tensorflow/core:ptr_util", - "//tensorflow/core:stream_executor_no_cuda", + "//tensorflow/core/platform:stream_executor_no_cuda", "//tensorflow/stream_executor:device_memory_allocator", "@com_google_absl//absl/memory", "@com_google_absl//absl/strings", @@ -986,7 +986,7 @@ cc_library( "//tensorflow/compiler/xla/client:executable_build_options", "//tensorflow/compiler/xla/client:xla_computation", "//tensorflow/core:lib", - "//tensorflow/core:stream_executor_no_cuda", + "//tensorflow/core/platform:stream_executor_no_cuda", "//tensorflow/stream_executor:device_memory_allocator", "@com_google_absl//absl/memory", "@com_google_absl//absl/strings", @@ -1014,7 +1014,7 @@ cc_library( "//tensorflow/compiler/xla:xla_data_proto_cc", "//tensorflow/core:lib", "//tensorflow/core:lib_internal", - "//tensorflow/core:stream_executor_no_cuda", + "//tensorflow/core/platform:stream_executor_no_cuda", "@com_google_absl//absl/strings", ], ) @@ -1025,7 +1025,7 @@ cc_library( ":service", "//tensorflow/compiler/xla/service/cpu:cpu_compiler", "//tensorflow/compiler/xla/service/cpu:cpu_transfer_manager", - "//tensorflow/core:stream_executor_no_cuda", + "//tensorflow/core/platform:stream_executor_no_cuda", ], ) @@ -1058,7 +1058,7 @@ cc_library( ":service", "//tensorflow/compiler/xla/service/gpu:gpu_compiler", "//tensorflow/compiler/xla/service/gpu:gpu_transfer_manager", - "//tensorflow/core:stream_executor_no_cuda", + "//tensorflow/core/platform:stream_executor_no_cuda", ] + if_cuda_is_configured([ "//tensorflow/compiler/xla/service/gpu:nvptx_compiler", "//tensorflow/core/platform/default/build_config:stream_executor_cuda", @@ -1073,7 +1073,7 @@ cc_library( deps = [ ":service", "//tensorflow/compiler/xla/service/gpu:gpu_transfer_manager", - "//tensorflow/core:stream_executor_no_cuda", + "//tensorflow/core/platform:stream_executor_no_cuda", ] + if_cuda_is_configured([ "//tensorflow/compiler/xla/service/mlir_gpu:mlir_compiler_impl", ]) + internal_cuda_deps(), @@ -1086,7 +1086,7 @@ cc_library( "//tensorflow/compiler/xla/service/interpreter:compiler", "//tensorflow/compiler/xla/service/interpreter:interpreter_transfer_manager", "//tensorflow/compiler/xla/service/interpreter:platform", - "//tensorflow/core:stream_executor_no_cuda", + "//tensorflow/core/platform:stream_executor_no_cuda", ], ) @@ -1104,7 +1104,7 @@ cc_library( "//tensorflow/compiler/xla:util", "//tensorflow/compiler/xla:xla_data_proto_cc", "//tensorflow/core:lib", - "//tensorflow/core:stream_executor_no_cuda", + "//tensorflow/core/platform:stream_executor_no_cuda", "//tensorflow/stream_executor:device_memory_allocator", "@com_google_absl//absl/container:flat_hash_set", "@com_google_absl//absl/memory", @@ -1126,8 +1126,8 @@ tf_cc_test( "//tensorflow/compiler/xla:test_helpers", "//tensorflow/compiler/xla/tests:xla_internal_test_main", "//tensorflow/core:ptr_util", - "//tensorflow/core:stream_executor_no_cuda", "//tensorflow/core:test", + "//tensorflow/core/platform:stream_executor_no_cuda", "//tensorflow/stream_executor:device_memory_allocator", "@com_google_absl//absl/memory", ], @@ -1164,7 +1164,7 @@ cc_library( "//tensorflow/compiler/xla:xla_data_proto_cc", "//tensorflow/core:lib", "//tensorflow/core:lib_internal", - "//tensorflow/core:stream_executor_no_cuda", + "//tensorflow/core/platform:stream_executor_no_cuda", "//tensorflow/stream_executor", "//tensorflow/stream_executor:device_description", "//tensorflow/stream_executor:device_memory_allocator", @@ -1188,7 +1188,7 @@ cc_library( "//tensorflow/compiler/xla:types", "//tensorflow/compiler/xla:util", "//tensorflow/core:lib", - "//tensorflow/core:stream_executor_no_cuda", + "//tensorflow/core/platform:stream_executor_no_cuda", "@com_google_absl//absl/types:span", ], ) @@ -1221,7 +1221,7 @@ cc_library( "//tensorflow/compiler/xla:util", "//tensorflow/compiler/xla:xla_data_proto_cc", "//tensorflow/core:lib", - "//tensorflow/core:stream_executor_no_cuda", + "//tensorflow/core/platform:stream_executor_no_cuda", "//tensorflow/stream_executor:device_memory", "@com_google_absl//absl/memory", "@com_google_absl//absl/strings", @@ -1262,7 +1262,7 @@ cc_library( "//tensorflow/compiler/xla:util", "//tensorflow/compiler/xla:xla_data_proto_cc", "//tensorflow/core:lib", - "//tensorflow/core:stream_executor_no_cuda", + "//tensorflow/core/platform:stream_executor_no_cuda", "@com_google_absl//absl/memory", ], ) @@ -2855,7 +2855,7 @@ cc_library( "//tensorflow/compiler/xla:util", "//tensorflow/compiler/xla:xla_data_proto_cc", "//tensorflow/core:lib", - "//tensorflow/core:stream_executor_no_cuda", + "//tensorflow/core/platform:stream_executor_no_cuda", "@com_google_absl//absl/memory", "@com_google_absl//absl/strings", "@com_google_absl//absl/types:optional", @@ -2890,7 +2890,7 @@ cc_library( "//tensorflow/compiler/xla:util", "//tensorflow/compiler/xla:xla_data_proto_cc", "//tensorflow/core:lib", - "//tensorflow/core:stream_executor_no_cuda", + "//tensorflow/core/platform:stream_executor_no_cuda", ], alwayslink = True, # Contains per-platform transfer manager registration ) @@ -2953,7 +2953,7 @@ cc_library( "//tensorflow/compiler/xla:types", "//tensorflow/compiler/xla:util", "//tensorflow/core:lib", - "//tensorflow/core:stream_executor_no_cuda", + "//tensorflow/core/platform:stream_executor_no_cuda", "@com_google_absl//absl/algorithm:container", "@com_google_absl//absl/memory", ], @@ -4224,7 +4224,7 @@ cc_library( "//tensorflow/compiler/xla:xla_proto_cc", "//tensorflow/core:lib", "//tensorflow/core:lib_internal", - "//tensorflow/core:regexp_internal", + "//tensorflow/core/platform:regexp", "@com_google_absl//absl/container:flat_hash_map", "@com_google_absl//absl/strings", "@com_google_absl//absl/strings:str_format", @@ -4327,7 +4327,7 @@ cc_library( deps = [ "//tensorflow/compiler/xla:types", "//tensorflow/core:lib", - "//tensorflow/core:stream_executor_no_cuda", + "//tensorflow/core/platform:stream_executor_no_cuda", "@com_google_absl//absl/memory", ], ) @@ -4339,7 +4339,7 @@ tf_cc_test( ":stream_pool", "//tensorflow/compiler/xla:test_helpers", "//tensorflow/compiler/xla/tests:xla_internal_test_main", - "//tensorflow/core:stream_executor_no_cuda", + "//tensorflow/core/platform:stream_executor_no_cuda", ], ) @@ -4396,7 +4396,7 @@ cc_library( "//tensorflow/core:core_cpu_internal", "//tensorflow/core:lib", "//tensorflow/core:lib_internal", - "//tensorflow/core:stream_executor_no_cuda", + "//tensorflow/core/platform:stream_executor_no_cuda", "//third_party/eigen3", "@com_google_absl//absl/memory", "@com_google_absl//absl/types:span", @@ -4745,7 +4745,7 @@ cc_library( "//tensorflow/compiler/xla:util", "//tensorflow/compiler/xla:xla_data_proto_cc", "//tensorflow/core:lib", - "//tensorflow/core:regexp_internal", + "//tensorflow/core/platform:regexp", "@com_google_absl//absl/base", "@com_google_absl//absl/strings", "@com_google_absl//absl/types:optional", diff --git a/tensorflow/compiler/xla/service/cpu/BUILD b/tensorflow/compiler/xla/service/cpu/BUILD index bdddae43462..80c5513bb9d 100644 --- a/tensorflow/compiler/xla/service/cpu/BUILD +++ b/tensorflow/compiler/xla/service/cpu/BUILD @@ -91,7 +91,7 @@ cc_library( "//tensorflow/compiler/xla/service:generic_transfer_manager", "//tensorflow/compiler/xla/service:transfer_manager", "//tensorflow/core:lib", - "//tensorflow/core:stream_executor_no_cuda", + "//tensorflow/core/platform:stream_executor_no_cuda", "//tensorflow/stream_executor", "@com_google_absl//absl/base", "@com_google_absl//absl/memory", @@ -204,7 +204,7 @@ cc_library( "//tensorflow/compiler/xla/service:zero_sized_hlo_elimination", "//tensorflow/compiler/xla/service/llvm_ir:llvm_util", "//tensorflow/core:lib", - "//tensorflow/core:stream_executor_no_cuda", + "//tensorflow/core/platform:stream_executor_no_cuda", "@llvm-project//llvm:Core", "@llvm-project//llvm:Object", "@llvm-project//llvm:Support", @@ -321,11 +321,11 @@ cc_library( "//tensorflow/compiler/xla/service:maybe_owning_device_memory", "//tensorflow/compiler/xla/service:shaped_buffer", "//tensorflow/core:lib", - "//tensorflow/core:stream_executor_no_cuda", "//tensorflow/core/platform:logging", "//tensorflow/core/platform:macros", "//tensorflow/core/platform:mutex", "//tensorflow/core/platform:platform_port", + "//tensorflow/core/platform:stream_executor_no_cuda", "//tensorflow/core/platform:types", "//tensorflow/core/profiler/lib:traceme", "//tensorflow/stream_executor:device_memory_allocator", diff --git a/tensorflow/compiler/xla/service/gpu/BUILD b/tensorflow/compiler/xla/service/gpu/BUILD index ed39506719f..b2ec656a2ba 100644 --- a/tensorflow/compiler/xla/service/gpu/BUILD +++ b/tensorflow/compiler/xla/service/gpu/BUILD @@ -377,7 +377,7 @@ cc_library( "//tensorflow/compiler/xla/service:buffer_assignment", "//tensorflow/core:lib", "//tensorflow/core:lib_internal", - "//tensorflow/core:stream_executor_no_cuda", + "//tensorflow/core/platform:stream_executor_no_cuda", "//tensorflow/stream_executor:device_memory_allocator", "@com_google_absl//absl/container:flat_hash_map", "@com_google_absl//absl/memory", @@ -396,7 +396,7 @@ cc_library( "//tensorflow/compiler/xla/service:stream_pool", "//tensorflow/core:lib", "//tensorflow/core:ptr_util", - "//tensorflow/core:stream_executor_no_cuda", + "//tensorflow/core/platform:stream_executor_no_cuda", "@com_google_absl//absl/memory", ], ) @@ -412,7 +412,7 @@ cc_library( "//tensorflow/compiler/xla:executable_run_options", "//tensorflow/compiler/xla/service:hlo", "//tensorflow/core:lib", - "//tensorflow/core:stream_executor_no_cuda", + "//tensorflow/core/platform:stream_executor_no_cuda", ], ) @@ -462,7 +462,7 @@ tf_cuda_library( "//tensorflow/compiler/xla/service:buffer_assignment", "//tensorflow/compiler/xla/service:hlo", "//tensorflow/core:lib", - "//tensorflow/core:stream_executor_no_cuda", + "//tensorflow/core/platform:stream_executor_no_cuda", "//tensorflow/compiler/xla:xla_data_proto_cc", ] + if_cuda([ "//tensorflow/stream_executor/cuda:cuda_activation", @@ -602,7 +602,7 @@ cc_library( "//tensorflow/compiler/xla/service/llvm_ir:buffer_assignment_util", "//tensorflow/core:lib", "//tensorflow/core:lib_internal", - "//tensorflow/core:stream_executor_no_cuda", + "//tensorflow/core/platform:stream_executor_no_cuda", "//tensorflow/core/profiler/lib:traceme", "//tensorflow/core/profiler/lib:scoped_annotation", "//tensorflow/stream_executor", @@ -648,7 +648,7 @@ cc_library( "//tensorflow/compiler/xla/service:hlo", "//tensorflow/compiler/xla/service/llvm_ir:llvm_util", "//tensorflow/core:lib", - "//tensorflow/core:stream_executor_no_cuda", + "//tensorflow/core/platform:stream_executor_no_cuda", "//tensorflow/stream_executor:device_description", "@com_google_absl//absl/algorithm:container", "@llvm-project//llvm:Core", @@ -692,7 +692,7 @@ cc_library( "//tensorflow/compiler/xla/service:hlo_pass", "//tensorflow/core/protobuf:autotuning_proto_cc", "//tensorflow/core:lib", - "//tensorflow/core:stream_executor_no_cuda", + "//tensorflow/core/platform:stream_executor_no_cuda", "//tensorflow/core/util/proto:proto_utils", "//tensorflow/stream_executor:blas", "//tensorflow/stream_executor:device_memory", @@ -729,7 +729,7 @@ cc_library( "//tensorflow/core/protobuf:autotuning_proto_cc", "//tensorflow/core:lib", "//tensorflow/core:lib_internal", - "//tensorflow/core:stream_executor_no_cuda", + "//tensorflow/core/platform:stream_executor_no_cuda", "//tensorflow/core/util/proto:proto_utils", "//tensorflow/stream_executor:device_memory_allocator", ] + if_cuda_is_configured([ @@ -754,7 +754,7 @@ cc_library( "//tensorflow/compiler/xla:util", "//tensorflow/compiler/xla:xla_data_proto_cc", "//tensorflow/compiler/xla/service:hlo", - "//tensorflow/core:stream_executor_no_cuda", + "//tensorflow/core/platform:stream_executor_no_cuda", "//tensorflow/stream_executor:dnn", "@com_google_absl//absl/strings", "@com_google_absl//absl/types:optional", @@ -777,7 +777,7 @@ cc_library( "//tensorflow/compiler/xla:util", "//tensorflow/compiler/xla:xla_data_proto_cc", "//tensorflow/compiler/xla/service:hlo", - "//tensorflow/core:stream_executor_no_cuda", + "//tensorflow/core/platform:stream_executor_no_cuda", "@com_google_absl//absl/strings", "@com_google_absl//absl/types:optional", ], @@ -832,7 +832,7 @@ cc_library( "//tensorflow/compiler/xla:types", "//tensorflow/compiler/xla:util", "//tensorflow/core:lib", - "//tensorflow/core:stream_executor_no_cuda", + "//tensorflow/core/platform:stream_executor_no_cuda", "//tensorflow/stream_executor:blas", ] + if_cuda_is_configured([ "@local_config_cuda//cuda:cuda_headers", @@ -855,7 +855,7 @@ cc_library( "//tensorflow/compiler/xla/service:hlo", "//tensorflow/compiler/xla/service:hlo_pass", "//tensorflow/core:lib", - "//tensorflow/core:stream_executor_no_cuda", + "//tensorflow/core/platform:stream_executor_no_cuda", "//tensorflow/stream_executor:blas", "//tensorflow/stream_executor:device_memory_allocator", ]), @@ -1157,7 +1157,7 @@ cc_library( "//tensorflow/compiler/xla/service:generic_transfer_manager", "//tensorflow/compiler/xla/service:transfer_manager", "//tensorflow/core:lib", - "//tensorflow/core:stream_executor_no_cuda", + "//tensorflow/core/platform:stream_executor_no_cuda", "@com_google_absl//absl/memory", "@llvm-project//llvm:Core", ], @@ -1254,8 +1254,8 @@ cc_library( "//tensorflow/compiler/xla/service/llvm_ir:llvm_util", "//tensorflow/core:lib", "//tensorflow/core:lib_internal", - "//tensorflow/core:regexp_internal", - "//tensorflow/core:stream_executor_no_cuda", + "//tensorflow/core/platform:regexp", + "//tensorflow/core/platform:stream_executor_no_cuda", "//tensorflow/core/profiler/lib:traceme", "//tensorflow/stream_executor:stream_executor_headers", "@com_google_absl//absl/memory", @@ -1318,7 +1318,7 @@ cc_library( "//tensorflow/compiler/xla/service:tuple_simplifier", "//tensorflow/compiler/xla/service/gpu/llvm_gpu_backend", "//tensorflow/compiler/xla/service/llvm_ir:llvm_util", - "//tensorflow/core:cuda_libdevice_path", + "//tensorflow/core/platform:cuda_libdevice_path", "//tensorflow/core:lib", "//tensorflow/core:lib_internal", "//tensorflow/core/profiler/lib:traceme", @@ -1404,7 +1404,7 @@ cc_library( ":xfeed_queue", "//tensorflow/compiler/xla:shape_tree", "//tensorflow/compiler/xla:types", - "//tensorflow/core:stream_executor_no_cuda", + "//tensorflow/core/platform:stream_executor_no_cuda", "@com_google_absl//absl/base:core_headers", "@com_google_absl//absl/memory", ], @@ -1442,7 +1442,7 @@ cc_library( "//tensorflow/compiler/xla/service:hlo_casting_utils", "//tensorflow/compiler/xla/service:layout_assignment", "//tensorflow/core:lib", - "//tensorflow/core:stream_executor_no_cuda", + "//tensorflow/core/platform:stream_executor_no_cuda", ], ) @@ -1538,11 +1538,11 @@ cc_library( "//tensorflow/compiler/xla:xla_data_proto_cc", "//tensorflow/compiler/xla/service:hlo", "//tensorflow/compiler/xla/service:hlo_module_config", - "//tensorflow/core:cuda_libdevice_path", "//tensorflow/core:lib", "//tensorflow/core:lib_internal", - "//tensorflow/core:regexp_internal", - "//tensorflow/core:stream_executor_no_cuda", + "//tensorflow/core/platform:cuda_libdevice_path", + "//tensorflow/core/platform:regexp", + "//tensorflow/core/platform:stream_executor_no_cuda", "//tensorflow/core/profiler/lib:traceme", "//tensorflow/stream_executor:kernel_spec", "//tensorflow/stream_executor/gpu:gpu_asm_opts", @@ -1565,7 +1565,7 @@ cc_library( "//tensorflow/compiler/xla:status_macros", "//tensorflow/compiler/xla:util", "//tensorflow/compiler/xla/service:hlo_module_config", - "//tensorflow/core:stream_executor_no_cuda", + "//tensorflow/core/platform:stream_executor_no_cuda", "//tensorflow/stream_executor:stream_executor_headers", "//tensorflow/stream_executor/gpu:asm_compiler", ]), @@ -1624,7 +1624,7 @@ cc_library( "//tensorflow/compiler/xla/service:hlo_casting_utils", "//tensorflow/compiler/xla/service:hlo_pass", "//tensorflow/compiler/xla/service:pattern_matcher", - "//tensorflow/core:stream_executor_no_cuda", + "//tensorflow/core/platform:stream_executor_no_cuda", ], ) @@ -1718,7 +1718,7 @@ cc_library( deps = [ ":gpu_autotuning_proto_cc", "//tensorflow/compiler/xla:debug_options_flags", - "//tensorflow/core:stream_executor_no_cuda", + "//tensorflow/core/platform:stream_executor_no_cuda", "//tensorflow/core/protobuf:autotuning_proto_cc", "@com_google_absl//absl/container:flat_hash_map", ], diff --git a/tensorflow/compiler/xla/service/interpreter/BUILD b/tensorflow/compiler/xla/service/interpreter/BUILD index 4b58a0cb04a..c134b7ba6a6 100644 --- a/tensorflow/compiler/xla/service/interpreter/BUILD +++ b/tensorflow/compiler/xla/service/interpreter/BUILD @@ -121,9 +121,9 @@ cc_library( "//tensorflow/compiler/xla/service:shaped_buffer", "//tensorflow/compiler/xla/service:transfer_manager", "//tensorflow/core:lib", - "//tensorflow/core:stream_executor_no_cuda", "//tensorflow/core/platform:macros", "//tensorflow/core/platform:mutex", + "//tensorflow/core/platform:stream_executor_no_cuda", "//tensorflow/core/platform:types", "@com_google_absl//absl/memory", "@com_google_absl//absl/types:span", diff --git a/tensorflow/compiler/xla/service/mlir_gpu/BUILD b/tensorflow/compiler/xla/service/mlir_gpu/BUILD index 1a67ab2c6f0..4eaed3a12e6 100644 --- a/tensorflow/compiler/xla/service/mlir_gpu/BUILD +++ b/tensorflow/compiler/xla/service/mlir_gpu/BUILD @@ -76,7 +76,7 @@ cc_library( ":emission_context", "//tensorflow/compiler/xla/service:compiler", "//tensorflow/compiler/xla/service/gpu:target_constants", - "//tensorflow/core:stream_executor_no_cuda", + "//tensorflow/core/platform:stream_executor_no_cuda", "@llvm-project//llvm:Core", "@llvm-project//mlir:IR", "@llvm-project//mlir:LLVMDialect", @@ -117,7 +117,7 @@ cc_library( "//tensorflow/compiler/xla/service/gpu:stream_executor_util", "//tensorflow/compiler/xla/service/gpu:target_constants", "//tensorflow/compiler/xla/service/gpu/llvm_gpu_backend", - "//tensorflow/core:cuda_libdevice_path", + "//tensorflow/core/platform:cuda_libdevice_path", "//tensorflow/core:lib", "//tensorflow/stream_executor/gpu:asm_compiler", ]), diff --git a/tensorflow/compiler/xla/tests/BUILD b/tensorflow/compiler/xla/tests/BUILD index 25b8520809e..98ed49ad76a 100644 --- a/tensorflow/compiler/xla/tests/BUILD +++ b/tensorflow/compiler/xla/tests/BUILD @@ -71,9 +71,9 @@ cc_library( hdrs = ["manifest_checking_test.h"], deps = [ ":test_macros_header", - "//tensorflow/core:regexp_internal", "//tensorflow/core:test", "//tensorflow/core/platform:logging", + "//tensorflow/core/platform:regexp", "@com_google_absl//absl/container:flat_hash_map", "@com_google_absl//absl/strings", ], @@ -171,8 +171,8 @@ cc_library( "//tensorflow/compiler/xla/service:interpreter_plugin", # reference backend "//tensorflow/compiler/xla/service:platform_util", "//tensorflow/core:lib", - "//tensorflow/core:stream_executor_no_cuda", "//tensorflow/core:test", + "//tensorflow/core/platform:stream_executor_no_cuda", "@com_google_absl//absl/algorithm:container", "@com_google_absl//absl/base:core_headers", "@com_google_absl//absl/memory", @@ -233,8 +233,8 @@ cc_library( "//tensorflow/compiler/xla/tests:literal_test_util", "//tensorflow/compiler/xla/tests:test_utils", "//tensorflow/core:lib", - "//tensorflow/core:stream_executor_no_cuda", "//tensorflow/core:test", + "//tensorflow/core/platform:stream_executor_no_cuda", "@com_google_absl//absl/memory", "@com_google_absl//absl/strings", "@com_google_absl//absl/types:span", @@ -312,7 +312,7 @@ cc_library( "//tensorflow/compiler/xla/service:transfer_manager", "//tensorflow/core:core_cpu_internal", "//tensorflow/core:lib", - "//tensorflow/core:stream_executor_no_cuda", + "//tensorflow/core/platform:stream_executor_no_cuda", "//tensorflow/stream_executor:device_memory_allocator", "//third_party/eigen3", "@com_google_absl//absl/memory", @@ -509,8 +509,8 @@ xla_test( "//tensorflow/compiler/xla/service:platform_util", "//tensorflow/compiler/xla/service:stream_pool", "//tensorflow/core:lib", - "//tensorflow/core:regexp_internal", "//tensorflow/core:test", + "//tensorflow/core/platform:regexp", "@com_google_absl//absl/algorithm:container", "@com_google_absl//absl/container:flat_hash_map", "@com_google_absl//absl/strings", @@ -555,8 +555,8 @@ xla_test( "//tensorflow/compiler/xla/tests:test_utils", "//tensorflow/compiler/xla/tests:xla_internal_test_main", "//tensorflow/core:lib", - "//tensorflow/core:stream_executor_no_cuda", "//tensorflow/core:test", + "//tensorflow/core/platform:stream_executor_no_cuda", ], ) @@ -1458,8 +1458,8 @@ xla_test( "//tensorflow/compiler/xla/service:shaped_buffer", "//tensorflow/compiler/xla/service:transfer_manager", "//tensorflow/core:lib", - "//tensorflow/core:stream_executor_no_cuda", "//tensorflow/core:test", + "//tensorflow/core/platform:stream_executor_no_cuda", "//tensorflow/stream_executor:device_memory_allocator", ], ) @@ -1915,8 +1915,8 @@ xla_test( "//tensorflow/compiler/xla/tests:literal_test_util", "//tensorflow/compiler/xla/tests:xla_internal_test_main", "//tensorflow/core:lib", - "//tensorflow/core:stream_executor_no_cuda", "//tensorflow/core:test", + "//tensorflow/core/platform:stream_executor_no_cuda", ], ) @@ -1956,8 +1956,8 @@ xla_test( "//tensorflow/compiler/xla/tests:literal_test_util", "//tensorflow/compiler/xla/tests:xla_internal_test_main", "//tensorflow/core:lib", - "//tensorflow/core:stream_executor_no_cuda", "//tensorflow/core:test", + "//tensorflow/core/platform:stream_executor_no_cuda", "@com_google_absl//absl/algorithm:container", "@com_google_absl//absl/base", ], @@ -1986,8 +1986,8 @@ xla_test( "//tensorflow/compiler/xla/client:xla_builder", "//tensorflow/compiler/xla/client:xla_computation", "//tensorflow/core:lib", - "//tensorflow/core:stream_executor_no_cuda", "//tensorflow/core:test", + "//tensorflow/core/platform:stream_executor_no_cuda", ], ) @@ -2047,8 +2047,8 @@ xla_test( "//tensorflow/compiler/xla/tests:literal_test_util", "//tensorflow/compiler/xla/tests:xla_internal_test_main", "//tensorflow/core:lib", - "//tensorflow/core:stream_executor_no_cuda", "//tensorflow/core:test", + "//tensorflow/core/platform:stream_executor_no_cuda", ], ) @@ -2402,8 +2402,8 @@ xla_test( "//tensorflow/compiler/xla/service:shaped_buffer", "//tensorflow/compiler/xla/service:transfer_manager", "//tensorflow/core:lib", - "//tensorflow/core:stream_executor_no_cuda", "//tensorflow/core:test", + "//tensorflow/core/platform:stream_executor_no_cuda", "//tensorflow/stream_executor:device_memory_allocator", ], ) @@ -2525,8 +2525,8 @@ xla_test( "//tensorflow/compiler/xla/service:shaped_buffer", "//tensorflow/compiler/xla/service:stream_pool", "//tensorflow/core:lib", - "//tensorflow/core:stream_executor_no_cuda", "//tensorflow/core:test", + "//tensorflow/core/platform:stream_executor_no_cuda", "//tensorflow/stream_executor:device_memory_allocator", ], ) diff --git a/tensorflow/compiler/xla/tools/BUILD b/tensorflow/compiler/xla/tools/BUILD index bdbf7044fe2..aa02deb7bca 100644 --- a/tensorflow/compiler/xla/tools/BUILD +++ b/tensorflow/compiler/xla/tools/BUILD @@ -266,7 +266,7 @@ cc_library( "//tensorflow/compiler/xla/service:hlo", "//tensorflow/compiler/xla/service:hlo_parser", "//tensorflow/core:lib", - "//tensorflow/core:regexp_internal", + "//tensorflow/core/platform:regexp", "@com_google_absl//absl/strings", "@com_google_protobuf//:protobuf_headers", ], diff --git a/tensorflow/compiler/xrt/BUILD b/tensorflow/compiler/xrt/BUILD index c3d3689b587..1b699e7d8df 100644 --- a/tensorflow/compiler/xrt/BUILD +++ b/tensorflow/compiler/xrt/BUILD @@ -74,7 +74,7 @@ cc_library( "//tensorflow/core:framework", "//tensorflow/core:lib", "//tensorflow/core:lib_internal", - "//tensorflow/core:regexp_internal", + "//tensorflow/core/platform:regexp", "//tensorflow/core/profiler/lib:traceme", "//tensorflow/stream_executor", "//tensorflow/stream_executor:device_memory_allocator",