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

Function num_compute_units

src/fused_mm_sampling/qitra.py:27–29  ·  view source on GitHub ↗
(device_index: int | None = None)

Source from the content-addressed store, hash-verified

25
26
27def num_compute_units(device_index: int | None = None) -> int:
28 props = torch.cuda.get_device_properties(device_index)
29 return props.multi_processor_count
30
31
32_TRITON_TABLE_CACHE: dict[tuple[torch.device], tuple[torch.Tensor, torch.Tensor]] = {}

Callers 1

apply_top_k_top_p_tritonFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected