Skip to content

Commit ed3c099

Browse files
authored
Remove cache around set_triton_allocator (#912)
1 parent f370fa5 commit ed3c099

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

helion/runtime/__init__.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
from __future__ import annotations
22

33
import contextvars
4-
import functools
54
from typing import TYPE_CHECKING
65

76
import torch
@@ -21,7 +20,6 @@ def _alloc_fn(size: int, alignment: int, stream: int | None) -> torch.Tensor:
2120
return torch.empty(size, device="cuda", dtype=torch.int8)
2221

2322

24-
@functools.cache
2523
def set_triton_allocator() -> None:
2624
try:
2725
from triton import set_allocator

0 commit comments

Comments
 (0)