-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Queues: Test Oracles for PIEOs and PCQs (#2192)
This PR introduces Python test oracles for Push-In-Extract-Out (PIEO) Queues and Programmable Calendar Queues (PCQs). It also generalizes parts of the oracle generation framework to account for parameters like time and rank being passed in directly. For further info on these structures, please consult the notes that I and @anshumanmohan's have put together on [PIEOs](cucapra/packet-scheduling#12), [PCQs](cucapra/packet-scheduling#15) and [PIEO Trees](cucapra/packet-scheduling#16) which also discuss the PIEO-PCQ implementation I have gone for here.
- Loading branch information
1 parent
907bcd1
commit 9135b6f
Showing
20 changed files
with
600,737 additions
and
94 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -60,3 +60,6 @@ tools/profiler/tmp/ | |
tools/profiler/logs | ||
|
||
temp/ | ||
|
||
# for running a venv | ||
.venv |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import sys | ||
import calyx.queues as queues | ||
from calyx import queue_util | ||
|
||
if __name__ == "__main__": | ||
commands, values, ranks, times = queue_util.parse_json(True, True) | ||
max_cmds, len = int(sys.argv[1]), int(sys.argv[2]) | ||
keepgoing = "--keepgoing" in sys.argv | ||
queue = queues.NWCSimple(len) | ||
ans = queues.operate_queue(queue, max_cmds, commands, values, ranks, times=times, keepgoing=keepgoing) | ||
queue_util.dump_json(commands, values, ans, ranks, times) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import sys | ||
import calyx.queues as queues | ||
from calyx import queue_util | ||
|
||
if __name__ == "__main__": | ||
commands, values, ranks, times = queue_util.parse_json(True, True) | ||
max_cmds, len = int(sys.argv[1]), int(sys.argv[2]) | ||
keepgoing = "--keepgoing" in sys.argv | ||
pcq = queues.PCQ(len) | ||
ans = queues.operate_queue(pcq, max_cmds, commands, values, ranks, times=times, keepgoing=keepgoing) | ||
queue_util.dump_json(commands, values, ans, ranks, times) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import sys | ||
import calyx.queues as queues | ||
from calyx import queue_util | ||
|
||
if __name__ == "__main__": | ||
commands, values, ranks, times = queue_util.parse_json(True, True) | ||
max_cmds, len = int(sys.argv[1]), int(sys.argv[2]) | ||
keepgoing = "--keepgoing" in sys.argv | ||
pieo = queues.Pieo(len) | ||
ans = queues.operate_queue(pieo, max_cmds, commands, values, ranks, times=times, keepgoing=keepgoing) | ||
queue_util.dump_json(commands, values, ans, ranks, times) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.