Skip to content

Remove atom_net global context mutation from packer #2984

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 22, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 1 addition & 5 deletions vpr/src/pack/pack.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -250,12 +250,8 @@ bool try_pack(const t_packer_opts& packer_opts,
VPR_FATAL_ERROR(VPR_ERROR_OTHER, "Failed to find device which satisfies resource requirements required: %s (available %s)", resource_reqs.c_str(), resource_avail.c_str());
}

//Reset clustering for re-packing
for (auto net : g_vpr_ctx.atom().netlist().nets()) {
g_vpr_ctx.mutable_atom().mutable_lookup().remove_atom_net(net);
}
//Reset floorplanning constraints for re-packing
g_vpr_ctx.mutable_floorplanning().cluster_constraints.clear();
//attraction_groups.reset_attraction_groups();

// Reset the cluster legalizer for re-clustering.
cluster_legalizer.reset();
Expand Down