Skip to content

Commit 9b8f934

Browse files
committed
[lib][rr_graph] add crr_id to emplace_back_edge
1 parent a758d0b commit 9b8f934

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

libs/librrgraph/src/base/rr_graph_builder.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
*
1313
*/
1414

15+
#include <string>
1516
#include "rr_graph_storage.h"
1617
#include "rr_spatial_lookup.h"
1718
#include "metadata_storage.h"
@@ -332,8 +333,8 @@ class RRGraphBuilder {
332333
* remap the arch switch id to rr switch id, the edge switch id of this edge shouldn't be changed. For example, when the intra-cluster graph
333334
* is built and the rr-graph related to global resources are read from a file, this parameter is true since the intra-cluster switches are
334335
* also listed in rr-graph file. So, we use that list to use the rr switch id instead of passing arch switch id for intra-cluster edges.*/
335-
inline void emplace_back_edge(RRNodeId src, RRNodeId dest, short edge_switch, bool remapped) {
336-
node_storage_.emplace_back_edge(src, dest, edge_switch, remapped);
336+
inline void emplace_back_edge(RRNodeId src, RRNodeId dest, short edge_switch, bool remapped, std::string crr_id="") {
337+
node_storage_.emplace_back_edge(src, dest, edge_switch, remapped, std::move(crr_id));
337338
}
338339
/** @brief Append 1 more RR node to the RR graph. */
339340
inline void emplace_back() {

0 commit comments

Comments
 (0)