Skip to content

Commit 830dd46

Browse files
Automated Code Change
PiperOrigin-RevId: 653923788
1 parent 1cd3842 commit 830dd46

18 files changed

+191
-6
lines changed

third_party/xla/xla/service/BUILD

Lines changed: 67 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1396,6 +1396,9 @@ cc_library(
13961396
":hlo_buffer",
13971397
":hlo_cost_analysis",
13981398
":hlo_pass",
1399+
":hlo_value",
1400+
"//xla:debug_options_flags",
1401+
"//xla:shape_util",
13991402
"//xla:util",
14001403
"//xla:xla_proto_cc",
14011404
"//xla/hlo/ir:hlo",
@@ -1411,6 +1414,8 @@ cc_library(
14111414
"@com_google_absl//absl/strings",
14121415
"@com_google_absl//absl/strings:str_format",
14131416
"@com_google_absl//absl/types:span",
1417+
"@local_tsl//tsl/platform:errors",
1418+
"@local_tsl//tsl/platform:statusor",
14141419
],
14151420
)
14161421

@@ -1419,11 +1424,21 @@ xla_cc_test(
14191424
srcs = ["latency_hiding_scheduler_test.cc"],
14201425
deps = [
14211426
":async_collective_creator",
1427+
":hlo_cost_analysis",
14221428
":latency_hiding_scheduler",
1429+
"//xla:shape_util",
1430+
"//xla:util",
14231431
"//xla/hlo/ir:hlo",
14241432
"//xla/tests:hlo_test_base",
14251433
"//xla/tests:xla_internal_test_main",
14261434
"@com_google_absl//absl/algorithm:container",
1435+
"@com_google_absl//absl/log",
1436+
"@com_google_absl//absl/log:check",
1437+
"@com_google_absl//absl/status:statusor",
1438+
"@com_google_absl//absl/strings:string_view",
1439+
"@com_google_absl//absl/types:span",
1440+
"@com_google_googletest//:gtest_main",
1441+
"@local_tsl//tsl/platform:statusor",
14271442
],
14281443
)
14291444

@@ -1718,9 +1733,17 @@ cc_library(
17181733
local_defines = if_cuda_is_configured(["GOOGLE_CUDA=1"]),
17191734
deps = [
17201735
":compiler",
1736+
":executable",
1737+
":stream_pool",
1738+
"//xla:executable_run_options",
1739+
"//xla/hlo/ir:hlo",
1740+
"//xla/hlo/ir:hlo_module_group",
1741+
"@com_google_absl//absl/log:check",
17211742
"@com_google_absl//absl/status:statusor",
1743+
"@com_google_absl//absl/strings:str_format",
17221744
"@llvm-project//llvm:Core",
17231745
"@local_tsl//tsl/platform:denormal",
1746+
"@local_tsl//tsl/platform:statusor",
17241747
"@local_tsl//tsl/profiler/lib:scoped_annotation",
17251748
],
17261749
)
@@ -2164,12 +2187,14 @@ cc_library(
21642187
"@com_google_absl//absl/container:flat_hash_map",
21652188
"@com_google_absl//absl/container:flat_hash_set",
21662189
"@com_google_absl//absl/log",
2190+
"@com_google_absl//absl/status:statusor",
21672191
"@com_google_absl//absl/strings",
21682192
"@com_google_absl//absl/strings:str_format",
21692193
"@com_google_absl//absl/strings:string_view",
21702194
"@com_google_absl//absl/types:span",
21712195
"@local_tsl//tsl/platform:errors",
21722196
"@local_tsl//tsl/platform:logging",
2197+
"@local_tsl//tsl/platform:macros",
21732198
"@local_tsl//tsl/platform:status",
21742199
] + if_google(["@com_google_absl//absl/types:source_location"]),
21752200
)
@@ -2180,9 +2205,13 @@ xla_cc_test(
21802205
deps = [
21812206
":hlo_parser",
21822207
":instruction_fusion",
2208+
"//xla:shape_util",
2209+
"//xla:xla_data_proto_cc",
2210+
"//xla/hlo/ir:hlo",
21832211
"//xla/hlo/utils:hlo_matchers",
21842212
"//xla/tests:hlo_test_base",
21852213
"//xla/tests:xla_internal_test_main",
2214+
"@com_google_googletest//:gtest_main",
21862215
],
21872216
)
21882217

@@ -4282,6 +4311,8 @@ cc_library(
42824311
"//xla:metric_table_report",
42834312
"//xla:types",
42844313
"//xla:util",
4314+
"@com_google_absl//absl/algorithm:container",
4315+
"@com_google_absl//absl/log",
42854316
"@com_google_absl//absl/strings",
42864317
"@com_google_absl//absl/strings:str_format",
42874318
"@local_tsl//tsl/platform:logging",
@@ -4932,6 +4963,7 @@ cc_library(
49324963
"@com_google_absl//absl/container:inlined_vector",
49334964
"@com_google_absl//absl/container:node_hash_map",
49344965
"@com_google_absl//absl/log",
4966+
"@com_google_absl//absl/log:check",
49354967
"@com_google_absl//absl/status",
49364968
"@com_google_absl//absl/status:statusor",
49374969
"@com_google_absl//absl/strings",
@@ -5326,9 +5358,11 @@ xla_cc_test(
53265358
":computation_layout",
53275359
":hlo_parser",
53285360
":layout_assignment",
5361+
":logical_buffer",
53295362
":pattern_matcher",
53305363
":pattern_matcher_gmock",
53315364
"//xla:literal",
5365+
"//xla:literal_util",
53325366
"//xla:shape_layout",
53335367
"//xla:shape_util",
53345368
"//xla:test",
@@ -5337,11 +5371,15 @@ xla_cc_test(
53375371
"//xla:xla_data_proto_cc",
53385372
"//xla/hlo/ir:hlo",
53395373
"//xla/tests:hlo_test_base",
5340-
"//xla/tests:test_utils",
53415374
"//xla/tests:xla_internal_test_main",
5375+
"@com_google_absl//absl/log:check",
5376+
"@com_google_absl//absl/status",
5377+
"@com_google_absl//absl/strings:string_view",
53425378
"@com_google_absl//absl/types:span",
53435379
"@local_tsl//tsl/lib/core:status_test_util",
5380+
"@local_tsl//tsl/platform:errors",
53445381
"@local_tsl//tsl/platform:status",
5382+
"@local_tsl//tsl/platform:statusor",
53455383
],
53465384
)
53475385

@@ -6745,14 +6783,24 @@ cc_library(
67456783
hdrs = ["indexed_array_analysis.h"],
67466784
deps = [
67476785
":hlo_pass",
6786+
"//xla:literal",
6787+
"//xla:shape_util",
67486788
"//xla:util",
6789+
"//xla:xla_data_proto_cc",
67496790
"//xla/hlo/evaluator:hlo_evaluator",
67506791
"//xla/hlo/ir:hlo",
67516792
"@com_google_absl//absl/algorithm:container",
67526793
"@com_google_absl//absl/container:flat_hash_map",
67536794
"@com_google_absl//absl/container:flat_hash_set",
67546795
"@com_google_absl//absl/container:inlined_vector",
6796+
"@com_google_absl//absl/log",
6797+
"@com_google_absl//absl/log:check",
6798+
"@com_google_absl//absl/status",
6799+
"@com_google_absl//absl/status:statusor",
67556800
"@com_google_absl//absl/strings",
6801+
"@com_google_absl//absl/types:span",
6802+
"@local_tsl//tsl/platform:errors",
6803+
"@local_tsl//tsl/platform:statusor",
67566804
],
67576805
)
67586806

@@ -6761,10 +6809,13 @@ xla_cc_test(
67616809
srcs = ["indexed_array_analysis_test.cc"],
67626810
deps = [
67636811
":indexed_array_analysis",
6812+
"//xla/hlo/ir:hlo",
67646813
"//xla/tests:hlo_test_base",
6765-
"//xla/tests:test_utils",
67666814
"//xla/tests:xla_internal_test_main",
6815+
"@com_google_absl//absl/log",
67676816
"@com_google_absl//absl/strings",
6817+
"@com_google_googletest//:gtest_main",
6818+
"@local_tsl//tsl/platform:statusor",
67686819
],
67696820
)
67706821

@@ -7667,15 +7718,22 @@ cc_library(
76677718
":hlo_creation_utils",
76687719
":hlo_pass",
76697720
":shape_inference",
7721+
"//xla:literal",
76707722
"//xla:permutation_util",
76717723
"//xla:shape_util",
7724+
"//xla:status_macros",
76727725
"//xla:util",
7673-
"//xla:window_util",
76747726
"//xla:xla_data_proto_cc",
76757727
"//xla/hlo/ir:hlo",
76767728
"@com_google_absl//absl/algorithm:container",
7729+
"@com_google_absl//absl/container:flat_hash_set",
7730+
"@com_google_absl//absl/log",
7731+
"@com_google_absl//absl/status",
76777732
"@com_google_absl//absl/status:statusor",
76787733
"@com_google_absl//absl/strings",
7734+
"@com_google_absl//absl/types:span",
7735+
"@local_tsl//tsl/platform:errors",
7736+
"@local_tsl//tsl/platform:statusor",
76797737
],
76807738
)
76817739

@@ -7686,6 +7744,12 @@ cc_library(
76867744
deps = [
76877745
":hlo_pass",
76887746
"//xla/hlo/ir:hlo",
7747+
"@com_google_absl//absl/algorithm:container",
7748+
"@com_google_absl//absl/container:flat_hash_set",
7749+
"@com_google_absl//absl/log:check",
7750+
"@com_google_absl//absl/status:statusor",
7751+
"@com_google_absl//absl/strings:string_view",
7752+
"@local_tsl//tsl/platform:status",
76897753
],
76907754
)
76917755

third_party/xla/xla/service/human_readable_profile_builder.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ limitations under the License.
1515

1616
#include "xla/service/human_readable_profile_builder.h"
1717

18+
#include "absl/algorithm/container.h"
19+
#include "absl/log/log.h"
1820
#include "absl/strings/str_cat.h"
1921
#include "absl/strings/str_format.h"
2022
#include "xla/metric_table_report.h"

third_party/xla/xla/service/indexed_array_analysis.cc

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,24 @@ limitations under the License.
2525
#include "absl/container/flat_hash_map.h"
2626
#include "absl/container/flat_hash_set.h"
2727
#include "absl/container/inlined_vector.h"
28+
#include "absl/log/check.h"
29+
#include "absl/log/log.h"
30+
#include "absl/status/status.h"
31+
#include "absl/status/statusor.h"
2832
#include "absl/strings/str_cat.h"
2933
#include "absl/strings/str_join.h"
34+
#include "absl/strings/string_view.h"
35+
#include "absl/types/span.h"
3036
#include "xla/hlo/evaluator/hlo_evaluator.h"
37+
#include "xla/hlo/ir/hlo_opcode.h"
38+
#include "xla/literal.h"
3139
#include "xla/map_util.h"
40+
#include "xla/shape.h"
41+
#include "xla/shape_util.h"
3242
#include "xla/util.h"
43+
#include "xla/xla_data.pb.h"
44+
#include "tsl/platform/errors.h"
45+
#include "tsl/platform/statusor.h"
3346

3447
namespace xla {
3548

third_party/xla/xla/service/indexed_array_analysis.h

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,20 @@ limitations under the License.
1919
#include <type_traits>
2020

2121
#include "absl/container/flat_hash_map.h"
22+
#include "absl/container/flat_hash_set.h"
23+
#include "absl/log/check.h"
24+
#include "absl/status/status.h"
25+
#include "absl/status/statusor.h"
26+
#include "absl/strings/string_view.h"
27+
#include "absl/types/span.h"
2228
#include "xla/hlo/ir/hlo_instruction.h"
2329
#include "xla/hlo/ir/hlo_module.h"
30+
#include "xla/hlo/ir/hlo_opcode.h"
31+
#include "xla/literal.h"
2432
#include "xla/service/hlo_pass_interface.h"
33+
#include "xla/shape.h"
34+
#include "xla/xla_data.pb.h"
35+
#include "tsl/platform/statusor.h"
2536

2637
namespace xla {
2738

third_party/xla/xla/service/indexed_array_analysis_test.cc

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,12 @@ limitations under the License.
1515

1616
#include "xla/service/indexed_array_analysis.h"
1717

18+
#include <gtest/gtest.h>
19+
#include "absl/log/log.h"
1820
#include "absl/strings/ascii.h"
21+
#include "xla/hlo/ir/hlo_module.h"
1922
#include "xla/tests/hlo_test_base.h"
20-
#include "xla/tests/test_utils.h"
23+
#include "tsl/platform/statusor.h"
2124

2225
namespace xla {
2326
namespace {

third_party/xla/xla/service/instruction_fusion.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,12 @@ limitations under the License.
2323

2424
#include "absl/container/flat_hash_map.h"
2525
#include "absl/container/flat_hash_set.h"
26+
#include "absl/status/statusor.h"
27+
#include "absl/strings/str_cat.h"
28+
#include "absl/strings/string_view.h"
29+
#include "absl/types/span.h"
30+
#include "xla/service/hlo_module_config.h"
31+
#include "tsl/platform/macros.h"
2632
// The source_location.h is not available in open source.
2733
#if defined(PLATFORM_GOOGLE)
2834
#include "absl/types/source_location.h"

third_party/xla/xla/service/instruction_fusion_test.cc

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,17 @@ limitations under the License.
1515

1616
#include "xla/service/instruction_fusion.h"
1717

18+
#include <gmock/gmock.h>
19+
#include <gtest/gtest.h>
20+
#include "xla/hlo/ir/hlo_computation.h"
21+
#include "xla/hlo/ir/hlo_instruction.h"
22+
#include "xla/hlo/ir/hlo_module.h"
23+
#include "xla/hlo/ir/hlo_opcode.h"
1824
#include "xla/hlo/utils/hlo_matchers.h"
1925
#include "xla/service/hlo_parser.h"
26+
#include "xla/shape_util.h"
2027
#include "xla/tests/hlo_test_base.h"
28+
#include "xla/xla_data.pb.h"
2129

2230
namespace xla {
2331

third_party/xla/xla/service/instruction_hoister.cc

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,18 @@ limitations under the License.
1515

1616
#include "xla/service/instruction_hoister.h"
1717

18+
#include "absl/algorithm/container.h"
19+
#include "absl/container/flat_hash_set.h"
20+
#include "absl/log/check.h"
21+
#include "absl/status/statusor.h"
22+
#include "absl/strings/string_view.h"
23+
#include "xla/hlo/ir/hlo_computation.h"
24+
#include "xla/hlo/ir/hlo_instruction.h"
25+
#include "xla/hlo/ir/hlo_module.h"
26+
#include "xla/hlo/ir/hlo_opcode.h"
27+
#include "xla/hlo/ir/hlo_schedule.h"
28+
#include "tsl/platform/status.h"
29+
1830
namespace xla {
1931
namespace {
2032

third_party/xla/xla/service/instruction_hoister.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ limitations under the License.
1616
#ifndef XLA_SERVICE_INSTRUCTION_HOISTER_H_
1717
#define XLA_SERVICE_INSTRUCTION_HOISTER_H_
1818

19+
#include "absl/container/flat_hash_set.h"
20+
#include "absl/status/statusor.h"
21+
#include "absl/strings/string_view.h"
1922
#include "xla/hlo/ir/hlo_module.h"
2023
#include "xla/service/hlo_pass_interface.h"
2124

third_party/xla/xla/service/latency_hiding_scheduler.cc

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ limitations under the License.
3939
#include "absl/strings/str_join.h"
4040
#include "absl/strings/string_view.h"
4141
#include "absl/types/span.h"
42+
#include "xla/debug_options_flags.h"
4243
#include "xla/hlo/ir/hlo_computation.h"
4344
#include "xla/hlo/ir/hlo_instruction.h"
4445
#include "xla/hlo/ir/hlo_instructions.h"
@@ -49,8 +50,14 @@ limitations under the License.
4950
#include "xla/service/dump.h"
5051
#include "xla/service/hlo_alias_analysis.h"
5152
#include "xla/service/hlo_buffer.h"
53+
#include "xla/service/hlo_cost_analysis.h"
54+
#include "xla/service/hlo_value.h"
55+
#include "xla/shape.h"
56+
#include "xla/shape_util.h"
5257
#include "xla/util.h"
5358
#include "xla/xla.pb.h"
59+
#include "tsl/platform/errors.h"
60+
#include "tsl/platform/statusor.h"
5461

5562
namespace xla {
5663
namespace {

0 commit comments

Comments
 (0)