MCPcopy Create free account
hub / github.com/FlashSampling/FlashSampling / alloc_fn

Function alloc_fn

src/fused_mm_sampling/tl_matmul.py:164–165  ·  view source on GitHub ↗
(size: int, alignment: int, stream: Optional[int])

Source from the content-addressed store, hash-verified

162
163 # TMA descriptors require a global memory allocation
164 def alloc_fn(size: int, alignment: int, stream: Optional[int]):
165 return torch.empty(size, device="cuda", dtype=torch.int8)
166
167 triton.set_allocator(alloc_fn)
168

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected