Skip to content

Commit

Permalink
fixup! feat(hydroflow_lang): subgraph partitioning handling (ignoring…
Browse files Browse the repository at this point in the history
…) reference edges (#929)
  • Loading branch information
MingweiSamuel committed Jan 29, 2024
1 parent 30a8b4f commit b4bc22d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions hydroflow_lang/src/graph/flat_to_partitioned.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ use crate::diagnostic::{Diagnostic, Level};
use crate::union_find::UnionFind;

/// Return a map containing all barrier crossers.
fn find_barrier_crossers(flat_graph: &HydroflowGraph) -> SecondaryMap<GraphEdgeId, DelayType> {
flat_graph
fn find_barrier_crossers(partitioned_graph: &HydroflowGraph) -> SecondaryMap<GraphEdgeId, DelayType> {
partitioned_graph
.edges()
.filter_map(|(edge_id, (_src, dst))| {
let (_src_port, dst_port) = flat_graph.edge_ports(edge_id);
let op_constraints = flat_graph.node_op_inst(dst)?.op_constraints;
let (_src_port, dst_port) = partitioned_graph.edge_ports(edge_id);
let op_constraints = partitioned_graph.node_op_inst(dst)?.op_constraints;
let input_barrier = (op_constraints.input_delaytype_fn)(dst_port)?;
Some((edge_id, input_barrier))
})
Expand Down

0 comments on commit b4bc22d

Please sign in to comment.