Skip to content

Commit

Permalink
PR #18948: [GPU][NFC] Improve error messages.
Browse files Browse the repository at this point in the history
Imported from GitHub PR #18948

Copybara import of the project:

--
80e717c by Ilia Sergachev <isergachev@nvidia.com>:

[GPU][NFC] Improve error messages.

Merging this change closes #18948

FUTURE_COPYBARA_INTEGRATE_REVIEW=#18948 from openxla:improve_error_messages 80e717c
PiperOrigin-RevId: 693279083
  • Loading branch information
sergachev authored and Google-ML-Automation committed Nov 5, 2024
1 parent 75e226a commit def8cf1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion xla/service/gpu/autotuning/gemm_fusion_autotuner.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1039,7 +1039,7 @@ GemmFusionAutotunerImpl::CompileAll(AutotunerCompileUtil& compile_util,
absl::StatusOr<bool> has_executable =
compile(fusion, config, gemm_config_set.size() > 1);
TF_CHECK_OK(has_executable.status())
<< "Failure occured when compiling fusion " << fusion->name()
<< " - Failure occured when compiling fusion " << fusion->name()
<< " with config '" << ToString(config)
<< "'\nFused HLO computation:\n"
<< fusion->fused_instructions_computation()->ToString();
Expand Down
3 changes: 2 additions & 1 deletion xla/service/gpu/triton_fusion_analysis.cc
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,8 @@ absl::Status FusionContext::PropagateDimensionOrdersToParameters(

if (!std::holds_alternative<DimOrdersAndReqs>(result)) {
return FailedPrecondition(
"Can not propagate dim orders and requirements.");
"Can not propagate dim orders and requirements: %s",
std::get<FusionDecision>(result).Explain());
}

if (!CombineDimOrdersAndReqs(std::get<DimOrdersAndReqs>(result))) {
Expand Down

0 comments on commit def8cf1

Please sign in to comment.