Skip to content

Commit 69fc72e

Browse files
committed
if stopping after packing skip unnecessary placement setup
1 parent 49de5fb commit 69fc72e

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

vpr/src/base/vpr_api.cpp

+8-5
Original file line numberDiff line numberDiff line change
@@ -383,6 +383,9 @@ bool vpr_flow(t_vpr_setup& vpr_setup, t_arch& arch) {
383383
if (!pack_success) {
384384
return false; //Unimplementable
385385
}
386+
if (!vpr_setup.PlacerOpts.doPlacement) {
387+
return true; // skip unnecessary placer setup
388+
}
386389
}
387390

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

605-
//Load and legalizer flat placement file
606-
vpr_load_flat_placement(vpr_setup, arch);
607-
608-
//Load the result from the .net file
609-
vpr_load_packing(vpr_setup, arch);
608+
//Load and legalize flat placement file
609+
status = vpr_load_flat_placement(vpr_setup, arch);
610+
if (!status) {
611+
return status;
612+
}
610613

611614
} else {
612615

0 commit comments

Comments
 (0)