Skip to content

Commit

Permalink
Automated Code Change
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 653923788
  • Loading branch information
tensorflower-gardener committed Jul 19, 2024
1 parent 1cd3842 commit 830dd46
Show file tree
Hide file tree
Showing 18 changed files with 191 additions and 6 deletions.
70 changes: 67 additions & 3 deletions third_party/xla/xla/service/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -1396,6 +1396,9 @@ cc_library(
":hlo_buffer",
":hlo_cost_analysis",
":hlo_pass",
":hlo_value",
"//xla:debug_options_flags",
"//xla:shape_util",
"//xla:util",
"//xla:xla_proto_cc",
"//xla/hlo/ir:hlo",
Expand All @@ -1411,6 +1414,8 @@ cc_library(
"@com_google_absl//absl/strings",
"@com_google_absl//absl/strings:str_format",
"@com_google_absl//absl/types:span",
"@local_tsl//tsl/platform:errors",
"@local_tsl//tsl/platform:statusor",
],
)

Expand All @@ -1419,11 +1424,21 @@ xla_cc_test(
srcs = ["latency_hiding_scheduler_test.cc"],
deps = [
":async_collective_creator",
":hlo_cost_analysis",
":latency_hiding_scheduler",
"//xla:shape_util",
"//xla:util",
"//xla/hlo/ir:hlo",
"//xla/tests:hlo_test_base",
"//xla/tests:xla_internal_test_main",
"@com_google_absl//absl/algorithm:container",
"@com_google_absl//absl/log",
"@com_google_absl//absl/log:check",
"@com_google_absl//absl/status:statusor",
"@com_google_absl//absl/strings:string_view",
"@com_google_absl//absl/types:span",
"@com_google_googletest//:gtest_main",
"@local_tsl//tsl/platform:statusor",
],
)

Expand Down Expand Up @@ -1718,9 +1733,17 @@ cc_library(
local_defines = if_cuda_is_configured(["GOOGLE_CUDA=1"]),
deps = [
":compiler",
":executable",
":stream_pool",
"//xla:executable_run_options",
"//xla/hlo/ir:hlo",
"//xla/hlo/ir:hlo_module_group",
"@com_google_absl//absl/log:check",
"@com_google_absl//absl/status:statusor",
"@com_google_absl//absl/strings:str_format",
"@llvm-project//llvm:Core",
"@local_tsl//tsl/platform:denormal",
"@local_tsl//tsl/platform:statusor",
"@local_tsl//tsl/profiler/lib:scoped_annotation",
],
)
Expand Down Expand Up @@ -2164,12 +2187,14 @@ cc_library(
"@com_google_absl//absl/container:flat_hash_map",
"@com_google_absl//absl/container:flat_hash_set",
"@com_google_absl//absl/log",
"@com_google_absl//absl/status:statusor",
"@com_google_absl//absl/strings",
"@com_google_absl//absl/strings:str_format",
"@com_google_absl//absl/strings:string_view",
"@com_google_absl//absl/types:span",
"@local_tsl//tsl/platform:errors",
"@local_tsl//tsl/platform:logging",
"@local_tsl//tsl/platform:macros",
"@local_tsl//tsl/platform:status",
] + if_google(["@com_google_absl//absl/types:source_location"]),
)
Expand All @@ -2180,9 +2205,13 @@ xla_cc_test(
deps = [
":hlo_parser",
":instruction_fusion",
"//xla:shape_util",
"//xla:xla_data_proto_cc",
"//xla/hlo/ir:hlo",
"//xla/hlo/utils:hlo_matchers",
"//xla/tests:hlo_test_base",
"//xla/tests:xla_internal_test_main",
"@com_google_googletest//:gtest_main",
],
)

Expand Down Expand Up @@ -4282,6 +4311,8 @@ cc_library(
"//xla:metric_table_report",
"//xla:types",
"//xla:util",
"@com_google_absl//absl/algorithm:container",
"@com_google_absl//absl/log",
"@com_google_absl//absl/strings",
"@com_google_absl//absl/strings:str_format",
"@local_tsl//tsl/platform:logging",
Expand Down Expand Up @@ -4932,6 +4963,7 @@ cc_library(
"@com_google_absl//absl/container:inlined_vector",
"@com_google_absl//absl/container:node_hash_map",
"@com_google_absl//absl/log",
"@com_google_absl//absl/log:check",
"@com_google_absl//absl/status",
"@com_google_absl//absl/status:statusor",
"@com_google_absl//absl/strings",
Expand Down Expand Up @@ -5326,9 +5358,11 @@ xla_cc_test(
":computation_layout",
":hlo_parser",
":layout_assignment",
":logical_buffer",
":pattern_matcher",
":pattern_matcher_gmock",
"//xla:literal",
"//xla:literal_util",
"//xla:shape_layout",
"//xla:shape_util",
"//xla:test",
Expand All @@ -5337,11 +5371,15 @@ xla_cc_test(
"//xla:xla_data_proto_cc",
"//xla/hlo/ir:hlo",
"//xla/tests:hlo_test_base",
"//xla/tests:test_utils",
"//xla/tests:xla_internal_test_main",
"@com_google_absl//absl/log:check",
"@com_google_absl//absl/status",
"@com_google_absl//absl/strings:string_view",
"@com_google_absl//absl/types:span",
"@local_tsl//tsl/lib/core:status_test_util",
"@local_tsl//tsl/platform:errors",
"@local_tsl//tsl/platform:status",
"@local_tsl//tsl/platform:statusor",
],
)

Expand Down Expand Up @@ -6745,14 +6783,24 @@ cc_library(
hdrs = ["indexed_array_analysis.h"],
deps = [
":hlo_pass",
"//xla:literal",
"//xla:shape_util",
"//xla:util",
"//xla:xla_data_proto_cc",
"//xla/hlo/evaluator:hlo_evaluator",
"//xla/hlo/ir:hlo",
"@com_google_absl//absl/algorithm:container",
"@com_google_absl//absl/container:flat_hash_map",
"@com_google_absl//absl/container:flat_hash_set",
"@com_google_absl//absl/container:inlined_vector",
"@com_google_absl//absl/log",
"@com_google_absl//absl/log:check",
"@com_google_absl//absl/status",
"@com_google_absl//absl/status:statusor",
"@com_google_absl//absl/strings",
"@com_google_absl//absl/types:span",
"@local_tsl//tsl/platform:errors",
"@local_tsl//tsl/platform:statusor",
],
)

Expand All @@ -6761,10 +6809,13 @@ xla_cc_test(
srcs = ["indexed_array_analysis_test.cc"],
deps = [
":indexed_array_analysis",
"//xla/hlo/ir:hlo",
"//xla/tests:hlo_test_base",
"//xla/tests:test_utils",
"//xla/tests:xla_internal_test_main",
"@com_google_absl//absl/log",
"@com_google_absl//absl/strings",
"@com_google_googletest//:gtest_main",
"@local_tsl//tsl/platform:statusor",
],
)

Expand Down Expand Up @@ -7667,15 +7718,22 @@ cc_library(
":hlo_creation_utils",
":hlo_pass",
":shape_inference",
"//xla:literal",
"//xla:permutation_util",
"//xla:shape_util",
"//xla:status_macros",
"//xla:util",
"//xla:window_util",
"//xla:xla_data_proto_cc",
"//xla/hlo/ir:hlo",
"@com_google_absl//absl/algorithm:container",
"@com_google_absl//absl/container:flat_hash_set",
"@com_google_absl//absl/log",
"@com_google_absl//absl/status",
"@com_google_absl//absl/status:statusor",
"@com_google_absl//absl/strings",
"@com_google_absl//absl/types:span",
"@local_tsl//tsl/platform:errors",
"@local_tsl//tsl/platform:statusor",
],
)

Expand All @@ -7686,6 +7744,12 @@ cc_library(
deps = [
":hlo_pass",
"//xla/hlo/ir:hlo",
"@com_google_absl//absl/algorithm:container",
"@com_google_absl//absl/container:flat_hash_set",
"@com_google_absl//absl/log:check",
"@com_google_absl//absl/status:statusor",
"@com_google_absl//absl/strings:string_view",
"@local_tsl//tsl/platform:status",
],
)

Expand Down
2 changes: 2 additions & 0 deletions third_party/xla/xla/service/human_readable_profile_builder.cc
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ limitations under the License.

#include "xla/service/human_readable_profile_builder.h"

#include "absl/algorithm/container.h"
#include "absl/log/log.h"
#include "absl/strings/str_cat.h"
#include "absl/strings/str_format.h"
#include "xla/metric_table_report.h"
Expand Down
13 changes: 13 additions & 0 deletions third_party/xla/xla/service/indexed_array_analysis.cc
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,24 @@ limitations under the License.
#include "absl/container/flat_hash_map.h"
#include "absl/container/flat_hash_set.h"
#include "absl/container/inlined_vector.h"
#include "absl/log/check.h"
#include "absl/log/log.h"
#include "absl/status/status.h"
#include "absl/status/statusor.h"
#include "absl/strings/str_cat.h"
#include "absl/strings/str_join.h"
#include "absl/strings/string_view.h"
#include "absl/types/span.h"
#include "xla/hlo/evaluator/hlo_evaluator.h"
#include "xla/hlo/ir/hlo_opcode.h"
#include "xla/literal.h"
#include "xla/map_util.h"
#include "xla/shape.h"
#include "xla/shape_util.h"
#include "xla/util.h"
#include "xla/xla_data.pb.h"
#include "tsl/platform/errors.h"
#include "tsl/platform/statusor.h"

namespace xla {

Expand Down
11 changes: 11 additions & 0 deletions third_party/xla/xla/service/indexed_array_analysis.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,20 @@ limitations under the License.
#include <type_traits>

#include "absl/container/flat_hash_map.h"
#include "absl/container/flat_hash_set.h"
#include "absl/log/check.h"
#include "absl/status/status.h"
#include "absl/status/statusor.h"
#include "absl/strings/string_view.h"
#include "absl/types/span.h"
#include "xla/hlo/ir/hlo_instruction.h"
#include "xla/hlo/ir/hlo_module.h"
#include "xla/hlo/ir/hlo_opcode.h"
#include "xla/literal.h"
#include "xla/service/hlo_pass_interface.h"
#include "xla/shape.h"
#include "xla/xla_data.pb.h"
#include "tsl/platform/statusor.h"

namespace xla {

Expand Down
5 changes: 4 additions & 1 deletion third_party/xla/xla/service/indexed_array_analysis_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,12 @@ limitations under the License.

#include "xla/service/indexed_array_analysis.h"

#include <gtest/gtest.h>
#include "absl/log/log.h"
#include "absl/strings/ascii.h"
#include "xla/hlo/ir/hlo_module.h"
#include "xla/tests/hlo_test_base.h"
#include "xla/tests/test_utils.h"
#include "tsl/platform/statusor.h"

namespace xla {
namespace {
Expand Down
6 changes: 6 additions & 0 deletions third_party/xla/xla/service/instruction_fusion.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,12 @@ limitations under the License.

#include "absl/container/flat_hash_map.h"
#include "absl/container/flat_hash_set.h"
#include "absl/status/statusor.h"
#include "absl/strings/str_cat.h"
#include "absl/strings/string_view.h"
#include "absl/types/span.h"
#include "xla/service/hlo_module_config.h"
#include "tsl/platform/macros.h"
// The source_location.h is not available in open source.
#if defined(PLATFORM_GOOGLE)
#include "absl/types/source_location.h"
Expand Down
8 changes: 8 additions & 0 deletions third_party/xla/xla/service/instruction_fusion_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,17 @@ limitations under the License.

#include "xla/service/instruction_fusion.h"

#include <gmock/gmock.h>
#include <gtest/gtest.h>
#include "xla/hlo/ir/hlo_computation.h"
#include "xla/hlo/ir/hlo_instruction.h"
#include "xla/hlo/ir/hlo_module.h"
#include "xla/hlo/ir/hlo_opcode.h"
#include "xla/hlo/utils/hlo_matchers.h"
#include "xla/service/hlo_parser.h"
#include "xla/shape_util.h"
#include "xla/tests/hlo_test_base.h"
#include "xla/xla_data.pb.h"

namespace xla {

Expand Down
12 changes: 12 additions & 0 deletions third_party/xla/xla/service/instruction_hoister.cc
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,18 @@ limitations under the License.

#include "xla/service/instruction_hoister.h"

#include "absl/algorithm/container.h"
#include "absl/container/flat_hash_set.h"
#include "absl/log/check.h"
#include "absl/status/statusor.h"
#include "absl/strings/string_view.h"
#include "xla/hlo/ir/hlo_computation.h"
#include "xla/hlo/ir/hlo_instruction.h"
#include "xla/hlo/ir/hlo_module.h"
#include "xla/hlo/ir/hlo_opcode.h"
#include "xla/hlo/ir/hlo_schedule.h"
#include "tsl/platform/status.h"

namespace xla {
namespace {

Expand Down
3 changes: 3 additions & 0 deletions third_party/xla/xla/service/instruction_hoister.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ limitations under the License.
#ifndef XLA_SERVICE_INSTRUCTION_HOISTER_H_
#define XLA_SERVICE_INSTRUCTION_HOISTER_H_

#include "absl/container/flat_hash_set.h"
#include "absl/status/statusor.h"
#include "absl/strings/string_view.h"
#include "xla/hlo/ir/hlo_module.h"
#include "xla/service/hlo_pass_interface.h"

Expand Down
7 changes: 7 additions & 0 deletions third_party/xla/xla/service/latency_hiding_scheduler.cc
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ limitations under the License.
#include "absl/strings/str_join.h"
#include "absl/strings/string_view.h"
#include "absl/types/span.h"
#include "xla/debug_options_flags.h"
#include "xla/hlo/ir/hlo_computation.h"
#include "xla/hlo/ir/hlo_instruction.h"
#include "xla/hlo/ir/hlo_instructions.h"
Expand All @@ -49,8 +50,14 @@ limitations under the License.
#include "xla/service/dump.h"
#include "xla/service/hlo_alias_analysis.h"
#include "xla/service/hlo_buffer.h"
#include "xla/service/hlo_cost_analysis.h"
#include "xla/service/hlo_value.h"
#include "xla/shape.h"
#include "xla/shape_util.h"
#include "xla/util.h"
#include "xla/xla.pb.h"
#include "tsl/platform/errors.h"
#include "tsl/platform/statusor.h"

namespace xla {
namespace {
Expand Down
12 changes: 12 additions & 0 deletions third_party/xla/xla/service/latency_hiding_scheduler.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,26 @@ limitations under the License.
#include <utility>
#include <vector>

#include "absl/algorithm/container.h"
#include "absl/container/flat_hash_map.h"
#include "absl/container/flat_hash_set.h"
#include "absl/container/inlined_vector.h"
#include "absl/log/check.h"
#include "absl/status/status.h"
#include "absl/status/statusor.h"
#include "absl/strings/str_cat.h"
#include "absl/strings/string_view.h"
#include "absl/types/span.h"
#include "xla/hlo/ir/hlo_instruction.h"
#include "xla/hlo/ir/hlo_opcode.h"
#include "xla/hlo/ir/hlo_schedule.h"
#include "xla/map_util.h"
#include "xla/service/hlo_alias_analysis.h"
#include "xla/service/hlo_buffer.h"
#include "xla/service/hlo_cost_analysis.h"
#include "xla/service/hlo_pass_interface.h"
#include "xla/service/hlo_value.h"
#include "xla/shape_util.h"
#include "xla/xla.pb.h"

namespace xla {
Expand Down
Loading

0 comments on commit 830dd46

Please sign in to comment.