Skip to content

Commit 5427bcd

Browse files
author
Muhammad Haris Zafar
committed
Replacing api reserve from respective .cpp/.h files
1 parent 65c0892 commit 5427bcd

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

vpr/src/route/rr_graph.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -577,7 +577,7 @@ static void build_rr_graph(const t_graph_type graph_type,
577577
size_t expected_node_count = num_rr_nodes;
578578
if (clock_modeling == DEDICATED_NETWORK) {
579579
expected_node_count += ClockRRGraphBuilder::estimate_additional_nodes(grid);
580-
device_ctx.rr_nodes.reserve(expected_node_count);
580+
device_ctx.rr_graph_builder.reserve_nodes(expected_node_count);
581581
}
582582
device_ctx.rr_nodes.resize(num_rr_nodes);
583583

vpr/src/route/rr_graph_uxsdcxx_serializer.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -753,7 +753,7 @@ class RrGraphSerializer final : public uxsd::RrGraphBase<RrGraphContextTypes> {
753753
* </xs:complexType>
754754
*/
755755
inline void preallocate_rr_nodes_node(void*& /*ctx*/, size_t size) final {
756-
rr_nodes_->reserve(size);
756+
rr_graph_builder_->reserve_nodes(size);
757757
}
758758
inline int add_rr_nodes_node(void*& /*ctx*/, unsigned int capacity, unsigned int id, uxsd::enum_node_type type) final {
759759
// make_room_in_vector will not allocate if preallocate_rr_nodes_node

0 commit comments

Comments
 (0)