diff --git a/xla/service/gpu/gpu_compiler.cc b/xla/service/gpu/gpu_compiler.cc index 6cb0d4d37ecd1..725556404b47b 100644 --- a/xla/service/gpu/gpu_compiler.cc +++ b/xla/service/gpu/gpu_compiler.cc @@ -2556,6 +2556,10 @@ absl::Status GpuCompiler::RunPostSchedulingPipelines( pipeline.AddPass(); } + if (module->config().debug_options().xla_gpu_enable_pgle_accuracy_checker()) { + AddHloVerifier(&main_pipeline, + HloVerifierOpts{}.VerifyInstructionNameUnchanged()); + } return main_pipeline.Run(module).status(); }