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
1aceb18f
Commit
1aceb18f
authored
1 month ago
by
Russel Arbore
Browse files
Options
Downloads
Patches
Plain Diff
parallelize gamut in cava on cpu
parent
87445e17
No related branches found
No related tags found
1 merge request
!198
Optimization for miranda
Pipeline
#201848
passed
1 month ago
Stage: test
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
hercules_opt/src/fork_transforms.rs
+3
-1
3 additions, 1 deletion
hercules_opt/src/fork_transforms.rs
juno_samples/cava/src/cava.jn
+1
-1
1 addition, 1 deletion
juno_samples/cava/src/cava.jn
juno_samples/cava/src/cpu.sch
+10
-2
10 additions, 2 deletions
juno_samples/cava/src/cpu.sch
with
14 additions
and
4 deletions
hercules_opt/src/fork_transforms.rs
+
3
−
1
View file @
1aceb18f
...
...
@@ -916,7 +916,9 @@ pub fn chunk_all_forks_unguarded(
};
for
(
fork
,
_
)
in
fork_join_map
{
chunk_fork_unguarded
(
editor
,
*
fork
,
dim_idx
,
dc_id
,
order
);
if
editor
.is_mutable
(
*
fork
)
{
chunk_fork_unguarded
(
editor
,
*
fork
,
dim_idx
,
dc_id
,
order
);
}
}
}
// Splits a dimension of a single fork join into multiple.
...
...
This diff is collapsed.
Click to expand it.
juno_samples/cava/src/cava.jn
+
1
−
1
View file @
1aceb18f
...
...
@@ -142,7 +142,7 @@ fn gamut<row : usize, col : usize, num_ctrl_pts : usize>(
)
->
f32
[
CHAN
,
row
,
col
]
{
@
res
let
result
:
f32
[
CHAN
,
row
,
col
];
for
r
=
0
to
row
{
@
image_loop
for
r
=
0
to
row
{
for
c
=
0
to
col
{
@
l2
let
l2_dist
:
f32
[
num_ctrl_pts
];
for
cp
=
0
to
num_ctrl_pts
{
...
...
This diff is collapsed.
Click to expand it.
juno_samples/cava/src/cpu.sch
+
10
−
2
View file @
1aceb18f
...
...
@@ -113,6 +113,14 @@ fixpoint {
simpl!(fuse4);
array-slf(fuse4);
simpl!(fuse4);
let par = fuse4@image_loop \ fuse4@channel_loop;
fork-tile[4, 1, false, false](par);
fork-tile[4, 0, false, false](par);
fork-interchange[1, 2](par);
let split = fork-split(par);
let fuse4_body = outline(split.cava_3.fj2);
fork-coalesce(fuse4, fuse4_body);
simpl!(fuse4, fuse4_body);
no-memset(fuse5@res1);
no-memset(fuse5@res2);
...
...
@@ -128,8 +136,8 @@ simpl!(fuse5);
delete-uncalled(*);
simpl!(*);
fork-split(fuse1, fuse2, fuse3, fuse4, fuse5);
unforkify(fuse1, fuse2, fuse3, fuse4, fuse5);
fork-split(fuse1, fuse2, fuse3, fuse4
_body
, fuse5);
unforkify(fuse1, fuse2, fuse3, fuse4
_body
, fuse5);
simpl!(*);
...
...
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