Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
Hercules
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
llvm
Hercules
Commits
23b79181
Commit
23b79181
authored
3 weeks ago
by
Russel Arbore
Browse files
Options
Downloads
Patches
Plain Diff
parallelize cost init loop
parent
0107cc1c
No related branches found
No related tags found
1 merge request
!216
More optimizations
Pipeline
#202056
failed
3 weeks ago
Stage: test
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
juno_samples/rodinia/bfs/src/bfs.jn
+1
-1
1 addition, 1 deletion
juno_samples/rodinia/bfs/src/bfs.jn
juno_samples/rodinia/bfs/src/cpu.sch
+3
-4
3 additions, 4 deletions
juno_samples/rodinia/bfs/src/cpu.sch
with
4 additions
and
5 deletions
juno_samples/rodinia/bfs/src/bfs.jn
+
1
−
1
View file @
23b79181
...
...
@@ -24,7 +24,7 @@ fn bfs<n, m: usize>(graph_nodes: Node[n], source: u32, edges: u32[m]) -> i32[n]
@
cost_init
for
i
in
0
..
n
{
cost
[
i
]
=
-
1
;
}
cost
[
source
as
u64
]
=
0
;
@
cost_init
cost
[
source
as
u64
]
=
0
;
// Nodes that were updated in the current iteration
let
updated
:
bool
[
n
];
...
...
This diff is collapsed.
Click to expand it.
juno_samples/rodinia/bfs/src/cpu.sch
+
3
−
4
View file @
23b79181
...
...
@@ -48,10 +48,9 @@ let collect_body = outline(inner);
let init_body = init;
// Following code seems to generate breaking RT code
//fork-tile[32, 0, false, true](init);
//let (outer, inner) = fork-reshape[[1], [0]](init);
//let init_body = outline(inner);
//inline(bfs@cost_init);
fork-tile[32, 0, false, true](init);
let (outer, inner) = fork-reshape[[1], [0]](init);
let init_body = outline(inner);
inline(bfs@loop1, bfs@loop2);
delete-uncalled(*);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment