Skip to content

Commit

Permalink
[XLA:GPU] Run post-scheduling verification under the `xla_gpu_enable_…
Browse files Browse the repository at this point in the history
…pgle_accuracy_checker` flag.

PiperOrigin-RevId: 675075419
  • Loading branch information
golechwierowicz authored and Google-ML-Automation committed Sep 16, 2024
1 parent 1765b13 commit 3ad60e4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions xla/service/gpu/gpu_compiler.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2556,6 +2556,10 @@ absl::Status GpuCompiler::RunPostSchedulingPipelines(
pipeline.AddPass<SanitizeConstantNames>();
}

if (module->config().debug_options().xla_gpu_enable_pgle_accuracy_checker()) {
AddHloVerifier(&main_pipeline,
HloVerifierOpts{}.VerifyInstructionNameUnchanged());
}
return main_pipeline.Run(module).status();
}

Expand Down

0 comments on commit 3ad60e4

Please sign in to comment.