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
Merge requests
!180
Fix reduce cycles and nodes in fork joins
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Fix reduce cycles and nodes in fork joins
fix-juno_matmul-schedule
into
main
Overview
0
Commits
3
Pipelines
2
Changes
2
Merged
rarbore2
requested to merge
fix-juno_matmul-schedule
into
main
1 month ago
Overview
0
Commits
3
Pipelines
2
Changes
2
Expand
Fix reduce cycles and nodes in fork joins analyses (weren't previously considering nodes in reduce cycle but not dependent on thread ID).
Clean up juno_matmul schedule.
@xrouth2
, this may have been causing the weird GCM issues you were running into?
0
0
Merge request reports
Viewing commit
02e4288b
Prev
Next
Show latest version
2 files
+
14
−
6
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
Search (e.g. *.vue) (Ctrl+P)
02e4288b
another fix...
· 02e4288b
Russel Arbore
authored
1 month ago
hercules_ir/src/fork_join_analysis.rs
+
9
−
5
Options
@@ -177,7 +177,7 @@ pub fn nodes_in_fork_joins(
let
mut
set
=
HashSet
::
new
();
set
.insert
(
*
fork
);
// Iterate uses of fork.
// Iterate uses of
the
fork.
while
let
Some
(
item
)
=
worklist
.pop
()
{
for
u
in
def_use
.get_users
(
item
)
{
let
terminate
=
*
u
==
*
join
@@ -189,11 +189,15 @@ pub fn nodes_in_fork_joins(
worklist
.push
(
*
u
);
}
set
.insert
(
*
u
);
}
}
assert!
(
set
.contains
(
join
));
// Nodes in reduce cycles might not depend on the thread ID.
if
terminate
&&
let
Some
(
cycle
)
=
reduce_cycles
.get
(
u
)
{
set
.extend
(
cycle
);
}
// Add all the nodes in the reduce cycle. Some of these nodes may not
// use thread IDs of the fork, so do this explicitly.
for
u
in
def_use
.get_users
(
*
join
)
{
if
let
Some
(
cycle
)
=
reduce_cycles
.get
(
u
)
{
set
.extend
(
cycle
);
}
}
Loading