Skip to content

Conversation

@soheilshahrouz
Copy link
Contributor

This PR encapsulates simulated annealing functions and objects into a class.

@github-actions github-actions bot added VPR VPR FPGA Placement & Routing Tool lang-cpp C/C++ code labels Nov 6, 2024
Copy link
Contributor

@vaughnbetz vaughnbetz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice update! Some feedback suggestions attached.

get_bp_state_globals()->get_glob_breakpoint_state()->blocks_affected_by_move.clear();
for (size_t i = 0; i < blocksAffected.moved_blocks.size(); i++) {
//size_t conversion is required since block_num is of type ClusterBlockId and can't be cast to an int. And this vector has to be of type int to be recognized in expr_eval class
BreakpointState* bp_state = get_bp_state_globals()->get_glob_breakpoint_state();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we were able to move the breakpiont state inside a placer context it would be cleaner I think. You don't have to do that if you can't see a clean way to do it though ....

@github-actions github-actions bot added the libarchfpga Library for handling FPGA Architecture descriptions label Nov 13, 2024
@soheilshahrouz soheilshahrouz changed the title [WIP] PlacementAnnealer class PlacementAnnealer class Nov 17, 2024
@soheilshahrouz
Copy link
Contributor Author

titan_quick_qor

Metric master.txt feature.txt
vtr_flow_elapsed_time 1 0.9945140575
num_LAB 1 1
num_DSP 1 1
num_M9K 1 1
num_M144K 1 1
max_vpr_mem 1 0.9995992332
num_pre_packed_blocks 1 1
num_post_packed_blocks 1 1
device_grid_tiles 1 1
pack_time 1 0.9926495671
placed_wirelength_est 1 1
place_time 1 0.9935798316
placed_CPD_est 1 1
routed_wirelength 1 1
critical_path_delay 1 1
geomean_nonvirtual_intradomain_critical_path_delay 1 1
crit_path_route_time 1 0.9982057978

Copy link
Contributor

@AlexandreSinger AlexandreSinger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @soheilshahrouz , great PR! I have a couple of minor comments. I like the interface!

@vaughnbetz vaughnbetz merged commit e7f964e into master Nov 18, 2024
37 checks passed
@vaughnbetz vaughnbetz deleted the temp_annealer_class branch November 18, 2024 22:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

external_libs lang-cpp C/C++ code libarchfpga Library for handling FPGA Architecture descriptions VPR VPR FPGA Placement & Routing Tool

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants