Skip to content
Snippets Groups Projects
Commit 0958995e authored by Russel Arbore's avatar Russel Arbore
Browse files

unroll channel loop in gamut with intention of fusion the ctrl pts

loop across channels
parent 81f524ca
No related branches found
No related tags found
1 merge request!178Some Cava optimization
Pipeline #201651 passed
This commit is part of merge request !178. Comments created here will be created in the context of that merge request.
...@@ -153,7 +153,7 @@ fn gamut<row : usize, col : usize, num_ctrl_pts : usize>( ...@@ -153,7 +153,7 @@ fn gamut<row : usize, col : usize, num_ctrl_pts : usize>(
l2_dist[cp] = sqrt!::<f32>(v); l2_dist[cp] = sqrt!::<f32>(v);
} }
for chan = 0 to CHAN { @channel_loop for chan = 0 to CHAN {
let chan_val : f32 = 0.0; let chan_val : f32 = 0.0;
for cp = 0 to num_ctrl_pts { for cp = 0 to num_ctrl_pts {
chan_val += l2_dist[cp] * weights[cp, chan]; chan_val += l2_dist[cp] * weights[cp, chan];
......
...@@ -99,6 +99,9 @@ fixpoint { ...@@ -99,6 +99,9 @@ fixpoint {
fork-coalesce(fuse4); fork-coalesce(fuse4);
} }
simpl!(fuse4); simpl!(fuse4);
fork-unroll(fuse4@channel_loop);
simpl!(fuse4);
//fork-fusion(fuse4@channel_loop);
fork-split(fuse4); fork-split(fuse4);
unforkify(fuse4); unforkify(fuse4);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment