Skip to content

Commit

Permalink
Logs max departures (if specified) along with all the other solver pa…
Browse files Browse the repository at this point in the history
…rameters & problem stats.

PiperOrigin-RevId: 686638788
  • Loading branch information
Google-ML-Automation committed Oct 16, 2024
1 parent a0a21d1 commit 3634a45
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions xla/hlo/experimental/auto_sharding/auto_sharding_solver.cc
Original file line number Diff line number Diff line change
Expand Up @@ -777,10 +777,14 @@ absl::StatusOr<AutoShardingSolverOutput> FormulateAndSolveMIPFromSolverRequest(
<< "Number variables for ILP: " << solver->NumVariables() << "\n"
<< "Number of ILP constraints: " << solver->NumConstraints() << "\n"
<< "Deterministic mode: " << request.deterministic_mode() << "\n"
<< "Minimize departures: " << request.minimize_departures() << "\n"
<< "Module name: " << request.module_name();
if (request.has_max_cost()) {
VLOG(0) << "Max cost: " << request.max_cost().coeff();
}
if (request.has_max_departures()) {
VLOG(0) << "Max departures: " << request.max_departures().coeff();
}
auto result = SolveAndExtractSolution(request, s, e, overbudget_var,
makespan_var, *solver);
if (result.ok()) {
Expand Down

0 comments on commit 3634a45

Please sign in to comment.