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
2598806c
Commit
2598806c
authored
3 weeks ago
by
Russel Arbore
Browse files
Options
Downloads
Patches
Plain Diff
work on bfs
parent
3b1aa5d4
No related branches found
No related tags found
2 merge requests
!215
Large benches
,
!214
More optimizations
Pipeline
#202013
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
+6
-5
6 additions, 5 deletions
juno_samples/rodinia/bfs/src/bfs.jn
juno_samples/rodinia/bfs/src/cpu.sch
+12
-10
12 additions, 10 deletions
juno_samples/rodinia/bfs/src/cpu.sch
with
18 additions
and
15 deletions
juno_samples/rodinia/bfs/src/bfs.jn
+
6
−
5
View file @
2598806c
...
@@ -44,11 +44,12 @@ fn bfs<n, m: usize>(graph_nodes: Node[n], source: u32, edges: u32[m]) -> i32[n]
...
@@ -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
{
@
loop2
for
i
in
0
..
n
{
stop
=
stop
&&
!
updated
[
i
];
stop
=
stop
&&
!
updated
[
i
];
if
updated
[
i
]
{
}
mask
[
i
]
=
true
;
visited
[
i
]
=
true
;
@
loop3
for
i
in
0
..
n
{
updated
[
i
]
=
false
;
mask
[
i
]
=
mask
[
i
]
||
updated
[
i
];
}
visited
[
i
]
=
visited
[
i
]
||
updated
[
i
];
updated
[
i
]
=
false
;
}
}
}
}
...
...
This diff is collapsed.
Click to expand it.
juno_samples/rodinia/bfs/src/cpu.sch
+
12
−
10
View file @
2598806c
...
@@ -11,9 +11,9 @@ macro simpl!(X) {
...
@@ -11,9 +11,9 @@ macro simpl!(X) {
phi-elim(bfs);
phi-elim(bfs);
no-memset(bfs@cost);
no-memset(bfs@cost);
let init = outline(bfs@cost_init);
let init = outline(bfs@cost_init);
let
loop1
= outline(bfs@loop1);
let
traverse
= outline(bfs@loop1);
let
loop2
= outline(bfs@loop2);
let
collect
= outline(bfs@loop2
| bfs@loop3
);
parallel-reduce(
loop1
);
parallel-reduce(
traverse
);
simpl!(*);
simpl!(*);
predication(*);
predication(*);
...
@@ -27,13 +27,15 @@ fixpoint {
...
@@ -27,13 +27,15 @@ fixpoint {
simpl!(*);
simpl!(*);
predication(*);
predication(*);
simpl!(*);
simpl!(*);
reduce-slf(*);
simpl!(*);
f
ork-tile[32, 0, false, false](loop1);
f
ixpoint {
let split = fork-split(loop1
);
forkify(collect
);
let out = outline(split.bfs_1.fj1
);
fork-guard-elim(collect
);
unforkify(out);
}
inline(bfs@loop1
);
fork-fusion(collect
);
delete-uncalled(*
);
simpl!(collect
);
unforkify(init);
unforkify(init
, traverse, collect
);
gcm(*);
gcm(*);
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