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

warp add reduction works

parent 71c8e41d
No related branches found
No related tags found
1 merge request!190Set up cava benchmark
Pipeline #201757 failed
...@@ -152,7 +152,7 @@ fn gamut<row : usize, col : usize, num_ctrl_pts : usize>( ...@@ -152,7 +152,7 @@ fn gamut<row : usize, col : usize, num_ctrl_pts : usize>(
let v = v1 * v1 + v2 * v2 + v3 * v3; let v = v1 * v1 + v2 * v2 + v3 * v3;
l2_dist[cp] = sqrt!::<f32>(v); l2_dist[cp] = sqrt!::<f32>(v);
} }
@channel_loop 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 {
......
...@@ -117,6 +117,9 @@ fixpoint { ...@@ -117,6 +117,9 @@ fixpoint {
simpl!(fuse4); simpl!(fuse4);
array-slf(fuse4); array-slf(fuse4);
simpl!(fuse4); simpl!(fuse4);
fork-tile[2, 0, false, true](fuse4@channel_loop);
fork-split(fuse4@channel_loop);
clean-monoid-reduces(fuse4);
no-memset(fuse5@res1); no-memset(fuse5@res1);
no-memset(fuse5@res2); no-memset(fuse5@res2);
......
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