mirror of
https://github.com/NVIDIA/cutlass.git
synced 2026-05-11 17:00:05 +00:00
[CuTeDSL] Fix loop carried target scope (#3200)
* [CuTeDSL] Bug fix for scf.for's write_args analysis * [CuTeDSL] Add for loop test
This commit is contained in:
@@ -1645,10 +1645,10 @@ class DSLPreprocessor(ast.NodeTransformer):
|
||||
target_var_is_active_before_loop = False
|
||||
if isinstance(node.target, ast.Name):
|
||||
target_var_name = node.target.id
|
||||
for active_symbol in active_symbols:
|
||||
for idx, active_symbol in enumerate(active_symbols):
|
||||
if target_var_name in active_symbol:
|
||||
target_var_is_active_before_loop = True
|
||||
active_symbols.remove(active_symbol)
|
||||
active_symbols[idx] = active_symbol - {target_var_name}
|
||||
break
|
||||
|
||||
# Add necessary exprs to handle this
|
||||
|
||||
Reference in New Issue
Block a user