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
634e17e9
Commit
634e17e9
authored
3 weeks ago
by
Aaron Councilman
Browse files
Options
Downloads
Patches
Plain Diff
More parallelism for backprop
parent
be6c3a90
No related branches found
No related tags found
2 merge requests
!215
Large benches
,
!214
More optimizations
Pipeline
#202029
passed
3 weeks ago
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
juno_samples/rodinia/backprop/src/cpu.sch
+14
-1
14 additions, 1 deletion
juno_samples/rodinia/backprop/src/cpu.sch
with
14 additions
and
1 deletion
juno_samples/rodinia/backprop/src/cpu.sch
+
14
−
1
View file @
634e17e9
...
@@ -42,12 +42,25 @@ let (outer, inner) = fork-reshape[[1], [0]](forward_input@outer_loop \ forward_i
...
@@ -42,12 +42,25 @@ let (outer, inner) = fork-reshape[[1], [0]](forward_input@outer_loop \ forward_i
let forward_input = outline(inner);
let forward_input = outline(inner);
inline(backprop@forward_input);
inline(backprop@forward_input);
// The first call to adjust_weights has total loop dimensions of 1 * 17, so not
// worth parallelizing (given that the body is trivial)
// The second call to adjust_weights has a total dimension of 16 * (input + 1)
// which is worth parallelizing, we'll do it by 16
inline(backprop@adjust_hidden, backprop@adjust_input);
let adjust_hidden = outline(backprop@adjust_hidden);
let adjust_input = outline(backprop@adjust_input);
fork-tile[16, 0, false, true](adjust_input);
let (outer, inner) = fork-reshape[[1], [0, 2]](adjust_input);
let adjust_input = outline(inner);
inline(backprop@adjust_input);
delete-uncalled(*);
delete-uncalled(*);
const-inline(*);
const-inline(*);
simpl!(*);
simpl!(*);
fork-split(*);
fork-split(*);
unforkify(output_error, hidden_error, adjust_
weights
, forward_hidden, forward_input);
unforkify(output_error, hidden_error, adjust_
hidden, adjust_input
, forward_hidden, forward_input);
simpl!(*);
simpl!(*);
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