Skip to content

Commit

Permalink
changing color and adding paragraph to explain the animation
Browse files Browse the repository at this point in the history
  • Loading branch information
Ravenwater committed Jan 5, 2025
1 parent 518ba68 commit 3863475
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
5 changes: 5 additions & 0 deletions content/introduction/linearschedule.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,11 @@ This constrained, _linear_ schedule is shown in the next animation.
<canvas id="c" style="border:5px solid #000;">browser doesn't support canvas tags</canvas>
</div>

In this animation we show the result wavefront in green: it is the cumulative activity of the three
recurrence equations evolving along the _scheduling vector_ {{< math >}}$S = [1 1 1]^T${{< /math >}}.
The wavefronts are _sequenced_ in time by the _dot_ product between the scheduling vector _S_ and the
index space coordinate, defined in domain flow as the _signature_ of the activity.

This particular schedule is called _memoryless_, that is, no memory is required to execute along this
evolution. Another way to look at this is that the memory function is provided by the network and the act of
communicating operands between locations in the lattice. From an energy perspective, this is attractive as
Expand Down
10 changes: 5 additions & 5 deletions static/js/dfa/linearschedule_matmul.js
Original file line number Diff line number Diff line change
Expand Up @@ -442,9 +442,9 @@ function nextAnimationFrame() {
// size of the index point sphere of the wavefront
attributes.size.array[i] = 32;
// color of the B propagation wavefront
attributes.ca.array[i*3+0] = 0;
attributes.ca.array[i*3+1] = 1;
attributes.ca.array[i*3+2] = 0;
attributes.ca.array[i*3+0] = 0.5;
attributes.ca.array[i*3+1] = 0;
attributes.ca.array[i*3+2] = 1;
// alternate wavefronts
//showPropagationOfB = false;
//showPropagationOfC = true;
Expand All @@ -453,8 +453,8 @@ function nextAnimationFrame() {
// size of the index point sphere of the wavefront
attributes.size.array[i] = 32;
// color of the C propagation wavefront
attributes.ca.array[i*3+0] = 1;
attributes.ca.array[i*3+1] = 0;
attributes.ca.array[i*3+0] = 0;
attributes.ca.array[i*3+1] = 1; // green
attributes.ca.array[i*3+2] = 0;
// alternate wavefronts
//showPropagationOfC = false;
Expand Down

0 comments on commit 3863475

Please sign in to comment.