-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add some notes on how to handle spec-loops * Add some infrastructure for spec loop support * some refactoring of spec support * fix a bug * fix a bug * refactor po serialization * nit * nit * nit * serialization * A comment on how to address loops * Add wrappers to track loop id and iteration in the runtime * checkpoint * Pass loop iteration counters to scheduler from compiler * Reset the loop iter variables once we exit the loop * whitespace to trigger ci
- Loading branch information
Showing
6 changed files
with
242 additions
and
57 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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
|
||
## | ||
## Variable names used in the pash runtime | ||
## | ||
|
||
def loop_iters_var() -> str: | ||
return 'pash_loop_iters' | ||
|
||
def loop_iter_var(loop_id: int) -> str: | ||
return f'pash_loop_{loop_id}_iter' |
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.