Skip to content

Commit

Permalink
Make heaps bigger!
Browse files Browse the repository at this point in the history
- both pifo and fifo tests pass with large heaps
  • Loading branch information
polybeandip committed Jun 18, 2024
1 parent 194a012 commit 00f7bbb
Show file tree
Hide file tree
Showing 4 changed files with 120,004 additions and 8 deletions.
6 changes: 4 additions & 2 deletions calyx-py/test/correctness/queues/binheap/fifo.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# pylint: disable=import-error
import sys
import calyx.builder as cb
import calyx.queue_call as qc
from stable_binheap import insert_stable_binheap
Expand Down Expand Up @@ -35,9 +36,10 @@ def insert_binheap_fifo(prog, name, factor):

def build():
"""Top-level function to build the program."""
num_cmds = int(sys.argv[1])
prog = cb.Builder()
fifo = insert_binheap_fifo(prog, "fifo", 5)
qc.insert_main(prog, fifo)
fifo = insert_binheap_fifo(prog, "fifo", 6)
qc.insert_main(prog, fifo, num_cmds)
return prog.program


Expand Down
Loading

0 comments on commit 00f7bbb

Please sign in to comment.