MCPcopy Create free account
hub / github.com/Project-MONAI/MONAI / _has_sm120_support

Function _has_sm120_support

tests/transforms/test_spatial_gpu_support.py:35–37  ·  view source on GitHub ↗

Return True if the compiled _C extension includes sm_120 (cc 12.0) support.

()

Source from the content-addressed store, hash-verified

33
34
35def _has_sm120_support() -> bool:
36 """Return True if the compiled _C extension includes sm_120 (cc 12.0) support."""
37 return _get_max_cc() >= 1200
38
39
40class TestCompiledUnsupported(unittest.TestCase):

Callers

nothing calls this directly

Calls 1

_get_max_ccFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…