-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move globals to separate file and prefix with $ (#63)
This PR adds a dollar prefix to all private globals to avoid namespace collisions with user defined variables. Signed-off-by: Harsh Menon <harsh@nod-labs.com>
- Loading branch information
Showing
9 changed files
with
133 additions
and
135 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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,21 @@ | ||
from .._support.indexing import index_symbol | ||
|
||
# Global symbols used throughout the code. | ||
|
||
# Address spaces. | ||
GLOBAL_ADDRESS_SPACE = index_symbol("$GLOBAL_ADDRESS_SPACE") | ||
SHARED_ADDRESS_SPACE = index_symbol("$SHARED_ADDRESS_SPACE") | ||
|
||
# Distribution symbols. | ||
WORKGROUP_0 = index_symbol("$WG0") | ||
WORKGROUP_1 = index_symbol("$WG1") | ||
WORKGROUP_2 = index_symbol("$WG2") | ||
|
||
THREAD_0 = index_symbol("$T0") | ||
THREAD_1 = index_symbol("$T1") | ||
THREAD_2 = index_symbol("$T2") | ||
|
||
# MMA symbols | ||
MMA_LHS = index_symbol("$MMA_LHS") | ||
MMA_RHS = index_symbol("$MMA_RHS") | ||
MMA_ACC = index_symbol("$MMA_ACC") |
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 was deleted.
Oops, something went wrong.
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 was deleted.
Oops, something went wrong.
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