Skip to content

Commit e351047

Browse files
author
Ethan Che
committed
Remove dead codegen_atomic_add from BlockPtrIndexingStrategy
block_ptr is never a valid atomic_indexing choice, so this fallback method is unreachable.
1 parent fa82199 commit e351047

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

helion/_compiler/indexing_strategy.py

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -393,18 +393,6 @@ def codegen_store(
393393
value=store_value,
394394
)
395395

396-
def codegen_atomic_add(
397-
self,
398-
state: CodegenState,
399-
fake_tensor: torch.Tensor,
400-
subscript: list[object],
401-
value: ast.AST,
402-
sem: ast.AST,
403-
) -> ast.AST:
404-
# block_ptr does not support atomics, fall back to pointer
405-
return PointerIndexingStrategy().codegen_atomic_add(
406-
state, fake_tensor, subscript, value, sem
407-
)
408396

409397

410398
class TensorDescriptorIndexingStrategy(IndexingStrategy):

0 commit comments

Comments
 (0)