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

Function alloc_fn

src/fused_mm_sampling/persistent_matmul.py:644–645  ·  view source on GitHub ↗
(size: int, alignment: int, stream: Optional[int])

Source from the content-addressed store, hash-verified

642
643 # TMA descriptors require a global memory allocation
644 def alloc_fn(size: int, alignment: int, stream: Optional[int]):
645 return torch.empty(size, device="cuda", dtype=torch.int8)
646
647 triton.set_allocator(alloc_fn)
648

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected