Skip to content

Commit

Permalink
print place cost before and after move
Browse files Browse the repository at this point in the history
  • Loading branch information
amin1377 committed Sep 22, 2023
1 parent fdb089c commit a1bd6d7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion vpr/src/place/place.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1497,6 +1497,8 @@ static e_move_result try_swap(const t_annealing_state* state,
}
LOG_MOVE_STATS_PROPOSED(t, blocks_affected);

VTR_LOGV_DEBUG(g_vpr_ctx.placement().f_placer_debug, "\t\tBefore move Place cost %f, bb_cost %f, timing cost %f\n", costs->cost, costs->bb_cost, costs->timing_cost);

e_move_result move_outcome = e_move_result::ABORTED;

if (create_move_outcome == e_create_move::ABORT) {
Expand Down Expand Up @@ -1740,7 +1742,7 @@ static e_move_result try_swap(const t_annealing_state* state,
// greatly slow the placer, but can debug some issues.
check_place(*costs, delay_model, criticalities, place_algorithm, noc_opts);
#endif
VTR_LOGV_DEBUG(g_vpr_ctx.placement().f_placer_debug, "\t\tPlace cost %f, bb_cost %f, timing cost %f\n", costs->cost, costs->bb_cost, costs->timing_cost);
VTR_LOGV_DEBUG(g_vpr_ctx.placement().f_placer_debug, "\t\tAfter move Place cost %f, bb_cost %f, timing cost %f\n", costs->cost, costs->bb_cost, costs->timing_cost);
return move_outcome;
}

Expand Down

0 comments on commit a1bd6d7

Please sign in to comment.