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

Function grid

src/fused_mm_sampling/tl_matmul.py:172–176  ·  view source on GitHub ↗
(meta)

Source from the content-addressed store, hash-verified

170 # This enables processing many N blocks for the same M block,
171 # allowing A matrix (small M dimension) to be reused from L2 cache.
172 def grid(meta):
173 return (
174 triton.cdiv(N, meta["BLOCK_SIZE_N"]),
175 triton.cdiv(M, meta["BLOCK_SIZE_M"]),
176 )
177
178 matmul_kernel[grid](
179 a,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected