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

Function unpack_grid

src/fused_mm_sampling/core.py:417–423  ·  view source on GitHub ↗
(grid)

Source from the content-addressed store, hash-verified

415
416
417def metadata_fn(
418 grid: tuple,
419 metadata: NamedTuple,
420 args: dict,
421):
422 """Copied from https://github.com/triton-lang/triton/blob/main/third_party/proton/tutorials/matmul.py"""
423 grid_x, grid_y, grid_z = unpack_grid(grid)
424 num_warps = metadata.num_warps
425 num_stages = metadata.num_stages
426 cluster_x, cluster_y, cluster_z = unpack_grid((metadata.num_ctas,))

Callers 1

metadata_fnFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected