Return the max compute capability (major*100+minor) the _C extension was compiled for, or 0 if the extension is not available (no build info).
()
| 22 | |
| 23 | |
| 24 | def _get_max_cc() -> int: |
| 25 | """Return the max compute capability (major*100+minor) the _C extension was compiled for, |
| 26 | or 0 if the extension is not available (no build info).""" |
| 27 | try: |
| 28 | from monai._C import max_compute_capability |
| 29 | |
| 30 | return int(max_compute_capability()) |
| 31 | except (ImportError, AttributeError): |
| 32 | return 0 |
| 33 | |
| 34 | |
| 35 | def _has_sm120_support() -> bool: |
no outgoing calls
no test coverage detected
searching dependent graphs…