File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1-
21def _strip_and_remove_comment (line ):
32 line = line .strip ()
43 if not line :
@@ -7,6 +6,7 @@ def _strip_and_remove_comment(line):
76 line = line .split (";" , 1 )[0 ].strip ()
87 return line
98
9+
1010def _collect_labels (lines ):
1111 labels = {}
1212 pc = 0
@@ -21,6 +21,7 @@ def _collect_labels(lines):
2121 pc += 1
2222 return labels
2323
24+
2425def _parse_args (parts , labels ):
2526 args = []
2627 for token in parts [1 :]:
@@ -32,6 +33,7 @@ def _parse_args(parts, labels):
3233 args .append (labels .get (token , token ))
3334 return args
3435
36+
3537def assemble_file (path ):
3638 """
3739 Assembles .tgpu file with label support.
Original file line number Diff line number Diff line change @@ -114,8 +114,8 @@ def _record_state(self):
114114 # increment to next instruction
115115 self .pc [tid ] = before_pc + 1
116116
117- # handle global barrier:
118- # if any thread is waiting at a sync point, check if we can release
117+ # handle global barrier:
118+ # if any thread is waiting at a sync point, check if we can release
119119 if self .sync_waiting .any ():
120120 # crude policy: release when all active threads have sync_waiting True
121121 # only consider threads that are still active
You can’t perform that action at this time.
0 commit comments