MCPcopy Create free account
hub / github.com/NVIDIA/TensorRT-LLM / get_sm_version

Function get_sm_version

tensorrt_llm/_utils.py:754–756  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

752
753@lru_cache(maxsize=1)
754def get_sm_version():
755 prop = torch.cuda.get_device_properties(0)
756 return prop.major * 10 + prop.minor
757
758
759@lru_cache(maxsize=1)

Calls

no outgoing calls