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

Function _sm_version

src/fused_mm_sampling/cuda_impl.py:35–38  ·  view source on GitHub ↗

Return the SM version string (e.g. '86' for RTX 3090).

()

Source from the content-addressed store, hash-verified

33
34
35def _sm_version() -> str:
36 """Return the SM version string (e.g. '86' for RTX 3090)."""
37 major, minor = torch.cuda.get_device_capability()
38 return f"{major}{minor}"
39
40
41TILE_V = 128

Callers 1

_get_moduleFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected