Skip to content

Commit

Permalink
if stopping after packing skip unnecessary placement setup
Browse files Browse the repository at this point in the history
  • Loading branch information
KA7E committed Aug 8, 2024
1 parent 49de5fb commit 69fc72e
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions vpr/src/base/vpr_api.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -383,6 +383,9 @@ bool vpr_flow(t_vpr_setup& vpr_setup, t_arch& arch) {
if (!pack_success) {
return false; //Unimplementable
}
if (!vpr_setup.PlacerOpts.doPlacement) {
return true; // skip unnecessary placer setup
}
}

// For the time being, we decided to create the flat graph after placement is done. Thus, the is_flat parameter for this function
Expand Down Expand Up @@ -602,11 +605,11 @@ bool vpr_pack_flow(t_vpr_setup& vpr_setup, const t_arch& arch) {
// generate a .net file by legalizing an input flat placement file
if (packer_opts.load_flat_placement) {

//Load and legalizer flat placement file
vpr_load_flat_placement(vpr_setup, arch);

//Load the result from the .net file
vpr_load_packing(vpr_setup, arch);
//Load and legalize flat placement file
status = vpr_load_flat_placement(vpr_setup, arch);
if (!status) {
return status;
}

} else {

Expand Down

0 comments on commit 69fc72e

Please sign in to comment.