True if Hexagon can both compile and run (toolchain + attached device).
()
| 421 | |
| 422 | @functools.cache |
| 423 | def has_hexagon() -> bool: |
| 424 | """True if Hexagon can both compile and run (toolchain + attached device).""" |
| 425 | try: |
| 426 | from tvm.contrib.hexagon import ( # pylint: disable=import-outside-toplevel |
| 427 | _ci_env_check, |
| 428 | ) |
| 429 | |
| 430 | return has_hexagon_toolchain() and _ci_env_check._run_time_check() is True |
| 431 | except Exception: # pylint: disable=broad-except |
| 432 | return False |
| 433 | |
| 434 | |
| 435 | @functools.cache |
nothing calls this directly
no test coverage detected
searching dependent graphs…