Checks if 'mx-smi' is available on the system's PATH.
()
| 75 | |
| 76 | |
| 77 | def _is_maca_platform(): |
| 78 | """Checks if 'mx-smi' is available on the system's PATH.""" |
| 79 | if shutil.which("mx-smi"): |
| 80 | print("--- MACA platform detected (mx-smi found) ---") |
| 81 | return True |
| 82 | else: |
| 83 | print("--- MACA platform NOT detected ---") |
| 84 | return False |
| 85 | |
| 86 | |
| 87 | def _is_ascend_platform(): |
no outgoing calls
no test coverage detected