8000 Fix hlo_opt_dump.hlo test failing internally. · IBMZ-Linux-OSS-Python/tensorflow@f2910a9 · GitHub
[go: up one dir, main page]

Skip to content

Commit f2910a9

Browse files
reedwmtensorflower-gardener
authored andcommitted
Fix hlo_opt_dump.hlo test failing internally.
Internally, XLA dumps include the changelist number, which the test did not take into account: https://github.com/openxla/xla/blob/45b774acafb04cdc9f08495b404f9a427e64b8b9/xla/service/dump.cc#L656-L661. PiperOrigin-RevId: 766433337
1 parent 1d6e51e commit f2910a9

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

third_party/xla/xla/hlo/tools/tests/hlo_opt_dump.hlo

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
// RUN: hlo-opt %s --xla_dump_to=%t_dump_dir --passes=dce,algsimp
22
// RUN: ls %t_dump_dir | sort | FileCheck %s --check-prefix="DUMP"
3-
// RUN: hlo-opt --xla_dump_to=%t_dump_dir_with_passes --xla_dump_hlo_pass_re=".*" --passes=dce,algsimp %s
3+
// RUN: hlo-opt --xla_dump_to=%t_dump_dir_with_passes --xla_dump_hlo_pass_re=".*" --passes=dce,algsimp %s
44
// RUN: ls %t_dump_dir_with_passes | sort | FileCheck %s --check-prefix="DUMP_WITH_PASSES"
55

6-
// DUMP: module_0000.m.after_optimization.txt
7-
// DUMP-NEXT: module_0000.m.before_optimization.txt
8-
// DUMP-NEXT: module_0000.m.debug_options
6+
// DUMP: module_0000.m.{{.*}}after_optimization.txt
7+
// DUMP-NEXT: module_0000.m.{{.*}}before_optimization.txt
8+
// DUMP-NEXT: module_0000.m.{{.*}}debug_options
99

10-
// DUMP_WITH_PASSES: module_0000.m.0000.transforms_pipeline.after_pipeline-start.before_dce.txt
11-
// DUMP_WITH_PASSES-NEXT: module_0000.m.0001.transforms_pipeline.after_algsimp.before_pipeline-end.txt
12-
// DUMP_WITH_PASSES-NEXT: module_0000.m.after_optimization.txt
13-
// DUMP_WITH_PASSES-NEXT: module_0000.m.before_optimization.txt
14-
// DUMP_WITH_PASSES-NEXT: module_0000.m.debug_options
10+
// DUMP_WITH_PASSES: module_0000.m.{{.*}}0000.transforms_pipeline.after_pipeline-start.before_dce.txt
11+
// DUMP_WITH_PASSES-NEXT: module_0000.m.{{.*}}0001.transforms_pipeline.after_algsimp.before_pipeline-end.txt
12+
// DUMP_WITH_PASSES-NEXT: module_0000.m.{{.*}}after_optimization.txt
13+
// DUMP_WITH_PASSES-NEXT: module_0000.m.{{.*}}before_optimization.txt
14+
// DUMP_WITH_PASSES-NEXT: module_0000.m.{{.*}}debug_options
1515

1616
HloModule m
1717
test {

0 commit comments

Comments
 (0)
0