Skip to content
Snippets Groups Projects

Large benches

Merged rarbore2 requested to merge large-benches into main
2 files
+ 18
15
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -44,11 +44,12 @@ fn bfs<n, m: usize>(graph_nodes: Node[n], source: u32, edges: u32[m]) -> i32[n]
@loop2 for i in 0..n {
stop = stop && !updated[i];
if updated[i] {
mask[i] = true;
visited[i] = true;
updated[i] = false;
}
}
@loop3 for i in 0..n {
mask[i] = mask[i] || updated[i];
visited[i] = visited[i] || updated[i];
updated[i] = false;
}
}
Loading