Skip to content

Commit 491a2aa

Browse files
committed
debug: change ifndef to ifdef before using enable_placer_debug
1 parent 6aef5f5 commit 491a2aa

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

vpr/src/place/initial_placement.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -978,7 +978,7 @@ static void place_all_blocks(const t_placer_opts& placer_opts, vtr::vector<Clust
978978

979979
auto blk_id_type = cluster_ctx.clb_nlist.block_type(blk_id);
980980

981-
#ifndef VTR_ENABLE_DEBUG_LOGGING
981+
#ifdef VTR_ENABLE_DEBUG_LOGGING
982982
enable_placer_debug(placer_opts, blk_id);
983983
#endif
984984
VTR_LOGV_DEBUG(g_vpr_ctx.placement().f_placer_debug, "Popped Block %d\n", size_t(blk_id));

vpr/src/place/move_utils.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -497,7 +497,7 @@ std::set<t_pl_loc> determine_locations_emptied_by_move(t_pl_blocks_to_be_moved&
497497
return empty_locs;
498498
}
499499

500-
#ifndef VTR_ENABLE_DEBUG_LOGGING
500+
#ifdef VTR_ENABLE_DEBUG_LOGGING
501501
void enable_placer_debug(const t_placer_opts& placer_opts,
502502
ClusterBlockId blk_id) {
503503
if (!blk_id.is_valid()) {
@@ -574,7 +574,7 @@ ClusterBlockId propose_block_to_move(const t_placer_opts& placer_opts,
574574
b_from = pick_from_block(logical_blk_type_index);
575575
}
576576
}
577-
#ifndef VTR_ENABLE_DEBUG_LOGGING
577+
#ifdef VTR_ENABLE_DEBUG_LOGGING
578578
enable_placer_debug(placer_opts, b_from);
579579
#endif
580580

vpr/src/place/move_utils.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@ bool intersect_range_limit_with_floorplan_constraints(t_logical_block_type_ptr t
328328

329329
std::string e_move_result_to_string(e_move_result move_outcome);
330330

331-
#ifndef VTR_ENABLE_DEBUG_LOGGING
331+
#ifdef VTR_ENABLE_DEBUG_LOGGING
332332
void enable_placer_debug(const t_placer_opts& placer_opts,
333333
ClusterBlockId blk_id);
334334
#endif

0 commit comments

Comments
 (0)